ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Worksheet Functions (https://www.excelbanter.com/excel-worksheet-functions/)
-   -   copying vlookup (https://www.excelbanter.com/excel-worksheet-functions/163831-copying-vlookup.html)

Jane

copying vlookup
 
my formula:

=VLOOKUP($D18,'Data$A$1:$D$500'!,2,FALSE)

how can I copy the formula without having to change the hard-coded column 2
to column 3, coulmn 4, etc?

thanks in advance! jane

T. Valko

copying vlookup
 
If you're copying across:

=VLOOKUP($D18,Data!$A$1:$D$500,COLUMNS($A1:B1),0)

If you're copying down:

=VLOOKUP(D$18,Data!$A$1:$D$500,ROWS(A$1:A2),0)



--
Biff
Microsoft Excel MVP


"jane" wrote in message
...
my formula:

=VLOOKUP($D18,'Data$A$1:$D$500'!,2,FALSE)

how can I copy the formula without having to change the hard-coded column
2
to column 3, coulmn 4, etc?

thanks in advance! jane




Jane

copying vlookup
 
you are awesome!
thank you!
jane

"T. Valko" wrote:

If you're copying across:

=VLOOKUP($D18,Data!$A$1:$D$500,COLUMNS($A1:B1),0)

If you're copying down:

=VLOOKUP(D$18,Data!$A$1:$D$500,ROWS(A$1:A2),0)



--
Biff
Microsoft Excel MVP


"jane" wrote in message
...
my formula:

=VLOOKUP($D18,'Data$A$1:$D$500'!,2,FALSE)

how can I copy the formula without having to change the hard-coded column
2
to column 3, coulmn 4, etc?

thanks in advance! jane





T. Valko

copying vlookup
 
You're welcome. Thanks for the feedback!

--
Biff
Microsoft Excel MVP


"jane" wrote in message
...
you are awesome!
thank you!
jane

"T. Valko" wrote:

If you're copying across:

=VLOOKUP($D18,Data!$A$1:$D$500,COLUMNS($A1:B1),0)

If you're copying down:

=VLOOKUP(D$18,Data!$A$1:$D$500,ROWS(A$1:A2),0)



--
Biff
Microsoft Excel MVP


"jane" wrote in message
...
my formula:

=VLOOKUP($D18,'Data$A$1:$D$500'!,2,FALSE)

how can I copy the formula without having to change the hard-coded
column
2
to column 3, coulmn 4, etc?

thanks in advance! jane








All times are GMT +1. The time now is 04:08 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com