Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 12
Default picking out a specific cell in a row

I need to use a cell number in a function that will update itself for each
new row it is in. For example, my function looks like this: VLOOKUP(B3, name,
2, FALSE), where "B3" is the number of the cell I need to use because I'm in
row 3. If I were in row 4 the cell number I would use is "B4". I don't want
to hard code all of these locations in so I'm wondering if someone knows a
way for excel to just update that cell number for each new row I'm in? I
tried =VLOOKUP("B"&ROW(), name, 2, FALSE) but that didn't work. I'm using
excel 2002. Can anyone help me?
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 15,768
Default picking out a specific cell in a row

Try this:

=VLOOKUP(INDIRECT("B"&ROW()),name,2,0)

Or a non-volatile version:

=VLOOKUP(INDEX(B:B,ROW()),name,2,0)

--
Biff
Microsoft Excel MVP


"Gluefoot" wrote in message
...
I need to use a cell number in a function that will update itself for each
new row it is in. For example, my function looks like this: VLOOKUP(B3,
name,
2, FALSE), where "B3" is the number of the cell I need to use because I'm
in
row 3. If I were in row 4 the cell number I would use is "B4". I don't
want
to hard code all of these locations in so I'm wondering if someone knows a
way for excel to just update that cell number for each new row I'm in? I
tried =VLOOKUP("B"&ROW(), name, 2, FALSE) but that didn't work. I'm using
excel 2002. Can anyone help me?



  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 1,091
Default picking out a specific cell in a row

Have you tried dragging your formula down from row 3 to copy it? Excel will
adjust the formula for you - when you drag the formula to row 4, Excel will
change the B3 to B4

Tyro

"Gluefoot" wrote in message
...
I need to use a cell number in a function that will update itself for each
new row it is in. For example, my function looks like this: VLOOKUP(B3,
name,
2, FALSE), where "B3" is the number of the cell I need to use because I'm
in
row 3. If I were in row 4 the cell number I would use is "B4". I don't
want
to hard code all of these locations in so I'm wondering if someone knows a
way for excel to just update that cell number for each new row I'm in? I
tried =VLOOKUP("B"&ROW(), name, 2, FALSE) but that didn't work. I'm using
excel 2002. Can anyone help me?



  #5   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 12
Default picking out a specific cell in a row

Thank you very much. I got it to work now.

"T. Valko" wrote:

Try this:

=VLOOKUP(INDIRECT("B"&ROW()),name,2,0)

Or a non-volatile version:

=VLOOKUP(INDEX(B:B,ROW()),name,2,0)

--
Biff
Microsoft Excel MVP


"Gluefoot" wrote in message
...
I need to use a cell number in a function that will update itself for each
new row it is in. For example, my function looks like this: VLOOKUP(B3,
name,
2, FALSE), where "B3" is the number of the cell I need to use because I'm
in
row 3. If I were in row 4 the cell number I would use is "B4". I don't
want
to hard code all of these locations in so I'm wondering if someone knows a
way for excel to just update that cell number for each new row I'm in? I
tried =VLOOKUP("B"&ROW(), name, 2, FALSE) but that didn't work. I'm using
excel 2002. Can anyone help me?






  #6   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 15,768
Default picking out a specific cell in a row

You're welcome. Thanks for the feedback!

--
Biff
Microsoft Excel MVP


"Gluefoot" wrote in message
...
Thank you very much. I got it to work now.

"T. Valko" wrote:

Try this:

=VLOOKUP(INDIRECT("B"&ROW()),name,2,0)

Or a non-volatile version:

=VLOOKUP(INDEX(B:B,ROW()),name,2,0)

--
Biff
Microsoft Excel MVP


"Gluefoot" wrote in message
...
I need to use a cell number in a function that will update itself for
each
new row it is in. For example, my function looks like this: VLOOKUP(B3,
name,
2, FALSE), where "B3" is the number of the cell I need to use because
I'm
in
row 3. If I were in row 4 the cell number I would use is "B4". I don't
want
to hard code all of these locations in so I'm wondering if someone
knows a
way for excel to just update that cell number for each new row I'm in?
I
tried =VLOOKUP("B"&ROW(), name, 2, FALSE) but that didn't work. I'm
using
excel 2002. Can anyone help me?






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
Picking up part of a formula from another cell david Excel Worksheet Functions 6 October 2nd 07 07:00 PM
Picking specific rows from database Buzz Sawyer Excel Discussion (Misc queries) 1 July 11th 07 02:44 PM
Picking specific records from a table Rick Ball New Users to Excel 1 January 24th 07 04:30 AM
Picking figures out of a cell Vince Excel Discussion (Misc queries) 3 November 15th 06 12:52 AM
how do i sort a list from cells by picking a specific letter? abecus Excel Discussion (Misc queries) 2 July 4th 06 02:47 PM


All times are GMT +1. The time now is 10:19 AM.

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

About Us

"It's about Microsoft Excel"