Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 10,593
Default VLOOKUP Newbie Question

If you are dragging it across

=VLOOKUP(A2,Products!$A$2:$Z$100,COLUMN(B1),FALSE)


--
---
HTH

Bob

(there's no email, no snail mail, but somewhere should be gmail in my addy)



"Mike C" wrote in message
...
I would like to pull back all the columns that match the lookup_value by
copying and pasting the VLOOKUP formula, but the column_index_num stays the
same. Instead of changing the column_index_num manually in each cell is
there a formula or value that will increase it by 1 when I drag the formula
to the adjacent cells?

=VLOOKUP(A2,Products!$A$2:$Z$100,2,FALSE)
=VLOOKUP(A2,Products!$A$2:$Z$100,3,FALSE)
=VLOOKUP(A2,Products!$A$2:$Z$100,4,FALSE)
=VLOOKUP(A2,Products!$A$2:$Z$100,5,FALSE)

Thanks for the help.

Mike



  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 3,718
Default VLOOKUP Newbie Question

Assuming you're dragging down

=VLOOKUP($A$2,Products!$A$2:$Z$100,ROW(A2),FALSE)


"Mike C" wrote:

I would like to pull back all the columns that match the lookup_value by
copying and pasting the VLOOKUP formula, but the column_index_num stays
the same. Instead of changing the column_index_num manually in each
cell is there a formula or value that will increase it by 1 when I drag
the formula to the adjacent cells?

=VLOOKUP(A2,Products!$A$2:$Z$100,2,FALSE)
=VLOOKUP(A2,Products!$A$2:$Z$100,3,FALSE)
=VLOOKUP(A2,Products!$A$2:$Z$100,4,FALSE)
=VLOOKUP(A2,Products!$A$2:$Z$100,5,FALSE)

Thanks for the help.

Mike

  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 4,624
Default VLOOKUP Newbie Question

Are your "adjacent cells" to the right?

Then you could use COLUMN()

for instance, if the VLOOKUP is in cell D4:

D4: =VLOOKUP($A2,Products!$A$2:$Z$100,COLUMN(B1),FALSE )

Then copy to the right.


In article , Mike C
wrote:

I would like to pull back all the columns that match the lookup_value by
copying and pasting the VLOOKUP formula, but the column_index_num stays
the same. Instead of changing the column_index_num manually in each
cell is there a formula or value that will increase it by 1 when I drag
the formula to the adjacent cells?

=VLOOKUP(A2,Products!$A$2:$Z$100,2,FALSE)
=VLOOKUP(A2,Products!$A$2:$Z$100,3,FALSE)
=VLOOKUP(A2,Products!$A$2:$Z$100,4,FALSE)
=VLOOKUP(A2,Products!$A$2:$Z$100,5,FALSE)

Thanks for the help.

Mike

  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 8,856
Default VLOOKUP Newbie Question

Instead of putting 2, 3, 4 etc you can use COLUMN(). This will return
2 if the formula is in column B, 3 for column C etc, so you may need
to add or subtract a constant to make it return 2 for the first column
you use it in.

Hope this helps.

Pete

On Apr 18, 1:02 am, Mike C wrote:
I would like to pull back all the columns that match the lookup_value by
copying and pasting the VLOOKUP formula, but the column_index_num stays
the same. Instead of changing the column_index_num manually in each
cell is there a formula or value that will increase it by 1 when I drag
the formula to the adjacent cells?

=VLOOKUP(A2,Products!$A$2:$Z$100,2,FALSE)
=VLOOKUP(A2,Products!$A$2:$Z$100,3,FALSE)
=VLOOKUP(A2,Products!$A$2:$Z$100,4,FALSE)
=VLOOKUP(A2,Products!$A$2:$Z$100,5,FALSE)

Thanks for the help.

Mike



  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1
Default VLOOKUP Newbie Question

I would like to pull back all the columns that match the lookup_value by
copying and pasting the VLOOKUP formula, but the column_index_num stays
the same. Instead of changing the column_index_num manually in each
cell is there a formula or value that will increase it by 1 when I drag
the formula to the adjacent cells?

=VLOOKUP(A2,Products!$A$2:$Z$100,2,FALSE)
=VLOOKUP(A2,Products!$A$2:$Z$100,3,FALSE)
=VLOOKUP(A2,Products!$A$2:$Z$100,4,FALSE)
=VLOOKUP(A2,Products!$A$2:$Z$100,5,FALSE)

Thanks for the help.

Mike


  #6   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 22,906
Default VLOOKUP Newbie Question

One more method.

Select 4 cells. Type this is active cell.

=VLOOKUP(A2,Products!$A$2:$Z$100,{2,3,4,5},FALSE)

CTRL + SHIFT + ENTER to enter.


Gord Dibben MS Excel MVP


On Tue, 17 Apr 2007 19:02:36 -0500, Mike C wrote:

I would like to pull back all the columns that match the lookup_value by
copying and pasting the VLOOKUP formula, but the column_index_num stays
the same. Instead of changing the column_index_num manually in each
cell is there a formula or value that will increase it by 1 when I drag
the formula to the adjacent cells?

=VLOOKUP(A2,Products!$A$2:$Z$100,2,FALSE)
=VLOOKUP(A2,Products!$A$2:$Z$100,3,FALSE)
=VLOOKUP(A2,Products!$A$2:$Z$100,4,FALSE)
=VLOOKUP(A2,Products!$A$2:$Z$100,5,FALSE)

Thanks for the help.

Mike


Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Real Newbie newbie question Dave New Users to Excel 0 January 10th 07 07:55 PM
Newbie question: Berra Charts and Charting in Excel 2 December 11th 06 10:00 PM
newbie question [email protected] Excel Worksheet Functions 5 July 12th 06 01:25 PM
Newbie Question - Subtraction Formula Question [email protected] Excel Discussion (Misc queries) 3 May 5th 06 05:50 PM
Newbie With A Question Michael Excel Worksheet Functions 0 July 28th 05 11:50 PM


All times are GMT +1. The time now is 12:29 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"