ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Discussion (Misc queries) (https://www.excelbanter.com/excel-discussion-misc-queries/)
-   -   picking out a specific cell in a row (https://www.excelbanter.com/excel-discussion-misc-queries/175184-picking-out-specific-cell-row.html)

Gluefoot

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?

T. Valko

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?




Don Guillett

picking out a specific cell in a row
 
Have a look in the help index for INDIRECT

--
Don Guillett
Microsoft MVP Excel
SalesAid Software

"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?



Tyro[_2_]

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?




Gluefoot

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?





T. Valko

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?








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

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