Using HLOOKUP in calculations
Let's see if I can describe my issue.
I'm doing something in an ugly, sloppy way, and I'm sure there's a better way (probably using HLOOKUP) but I'm not sure what it is.
I have a lookup table with prices. I have a main table with a list of quantities. My calculation field looks like (Quantity1 x Price1 + Quantity2 x Price2 + Quantity3 x Price3…)
The headers for each table are identical…Item1, Item2, etc.
The problem, if course, is that if I move columns around or add or delete columns in the main table, everything breaks and I have to go in and fix my long and ugly calculation field by hand.
What's the "right" way to do this?
MacBook Air 13", macOS 10.14