Originally Posted by
FDibbins
That formula I used...
=IF($B5="","",$B5*INDEX(lists!$D$2:$F$4,MATCH($C5,lists!$C$2:$C$4,0),MATCH(D$4,lists!$D$1:$F$1,0)))
1st part...=IF($B5="","", is just used to error-trap so you can copy it down past where you have data (so you can grow the table). If there is no data in column B of that row, the cell with the formula in it will show as blank
For the rest...
$B5*INDEX(lists!$D$2:$F$4,MATCH($C5,lists!$C$2:$C$4,0),MATCH(D$4,lists!$D$1:$F$1,0))
I am using the INDEX/MATCH to ID the factor needed, and then applying that to whateverthe value in B is.
Index returns the contents at the intersection of a specified row and column, the syntax is =INDEX(range,row number,column number)
To find the row and column, I used 2 MATCH() functions...
MATCH finds which row (or column) a specified value is, in a given range, the syntax is =MATCH(find what, column to search down, 0) 0 is for an exact match. This version finds the row number, that would change to =MATCH(find what, row to search across, 0) to find the column number
MATCH($C5,lists!$C$2:$C$4,0) to find the row
MATCH(D$4,lists!$D$1:$F$1,0) to find the column
So we then plug the 2 MATCH's into the INDEX to give the factor
Hope that helped, if not, shout again, and I will try to explain differently
Bookmarks