You could use the column() function which returns the column of cell that contains the formula.
=IF($BZ$4=column(),HLOOKUP($BZ$5,$AM$4:$BR$39,36,0),"")
or if you start in Column B:
=IF($BZ$4=column()-1,HLOOKUP($BZ$5,$AM$4:$BR$39,36,0),"")
John, The formula starts in CA7 and goes to CL7,
the formula I showed you does work, except that I have to keep changing the 1 to 2 ETC in BZ4=1 everytime I move it to a different column.
When I tried your formula it would not work. any
suggestions?
AL
If you have room in your spreadsheet - insert a row above your data. Put a 1 above jan, 2 above feb, etc.... Then in your formula change the "=1" to the cell reference above. That way when you copy across, the cell reference changes, as does the number.
Good Luck
Good Luck
:Paul, here is my problem, the formula you suggested is getting its information from a chart in AM4: BR59, which changes every month. So when this chart changes to February, everything in January disappears, and the new chart is reflected in February. How do I solve this problem?
AL