Inserting Formula

V

vcprabhu

Hi,
I have insereted a If function in a cell, eg
=IF(H5<>"",VLOOKUP(H5,AJ5:AK79,2,0),""). Now I want the IF function applied
to all the cells in that cloumn with the same vlookup function. The vlookup
function keeps changing with the cell number, for eg it becomes
=IF(H6<>"",VLOOKUP(H6, AJ6:AK80,2,0),""). I need the VLOOKUP function to
calculate AJ5:AK79 for all the cells.

Thanks.
 
D

dhstein

=IF(H5<>"",VLOOKUP(H5,$AJ$5:$AK$79,2,0),"")

Use the "$" symbol to anchor your range
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top