# copy formula across and increase VLOOKUP Column reference by 1 using "COLUMNS" formula

1. ## copy formula across and increase VLOOKUP Column reference by 1 using "COLUMNS" formula

I am trying to incorporate COLUMNS to automatically increase the lookup column reference by one when I copy the formula across (in this example, I want the "7s" to increase to 8, 9, 10, etc when I copy across). Can you please show me how this should look in the formula below, or if there is a better way to do this?? thank you!
=IF(VLOOKUP(C63,'results'!\$B\$6:\$AE\$5000,7,0)=0,"",VLOOKUP(C63,'results'!\$B\$6:\$AE\$5000,7,0))  Register To Reply

2. ## Re: copy formula across and increase VLOOKUP Column reference by 1 using "COLUMNS" formula

Perhaps ``Please Login or Register  to view this content.``
You may need to add a number to the Column() to get it lined up correctly (like: Column() +7 )  Register To Reply

3. ## Re: copy formula across and increase VLOOKUP Column reference by 1 using "COLUMNS" formula

thanks for the quick reply - I am able to get it to line up properly by putting in -4 where you suggested the +7, however when I copy the formula across, it just keeps the -4, instead of changing to -3, -2, etc. Is there a way to make this change automatic?  Register To Reply

4. ## Re: copy formula across and increase VLOOKUP Column reference by 1 using "COLUMNS" formula

Column() returns the column the formula is in. So if you pull a formula of = Column() - 4 across it should do what I think you want.  Register To Reply

5. ## Re: copy formula across and increase VLOOKUP Column reference by 1 using "COLUMNS" formula

Yay! It works. I needed to change C63 to \$C63 so the VLOOKUP column source stayed the same when I copied across. Thank you!  Register To Reply