Set prices with tables and variables?

Instead of pricing every single product and every single variant individually I’d like to create some kind of table with variables I can insert in the price field such that when I change a value in the table the change in price propagates throughout my product line. How can I do this?