Is there a better formula than this Q

  • Thread starter Thread starter Sean
  • Start date Start date
S

Sean

I want to effect the following formula

=VLOOKUP((SheetA!B5-364),Data!A77:AD128,4)

But I wish to drag this accross 30 other columns, how would I
construct a fomula that would not require me to change the last digt
from 4 to 5; 6; 7; 8... etc 30 times?


Thanks
 
Instead of the 4, use COLUMN() plus or minus something. For example, if the formula is in Column F, use COLUMN()-2 to get 4.


--
Kind regards,

Niek Otten
Microsoft MVP - Excel

|I want to effect the following formula
|
| =VLOOKUP((SheetA!B5-364),Data!A77:AD128,4)
|
| But I wish to drag this accross 30 other columns, how would I
| construct a fomula that would not require me to change the last digt
| from 4 to 5; 6; 7; 8... etc 30 times?
|
|
| Thanks
|
 
Change it to this:

=VLOOKUP((SheetA!$B5-364),Data!$A77:$AD128,COLUMN(D1))

and then copy it across.

COLUMN(D1) returns 4 - when copied into the next column it becomes
COLUMN(E1) which returns 5, etc. Note also the use of the $ symbols so
the cell references don't change when you copy it across.

Hope this helps.

Pete
 
Change it to this:

=VLOOKUP((SheetA!$B5-364),Data!$A77:$AD128,COLUMN(D1))

and then copy it across.

COLUMN(D1) returns 4 - when copied into the next column it becomes
COLUMN(E1) which returns 5, etc. Note also the use of the $ symbols so
the cell references don't change when you copy it across.

Hope this helps.

Pete




- Show quoted text -

Thanks guys
 

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

Back
Top