Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.excel.misc
|
|||
|
|||
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
Posted to microsoft.public.excel.misc
|
|||
|
|||
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? |
#3
Posted to microsoft.public.excel.misc
|
|||
|
|||
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? |
#4
Posted to microsoft.public.excel.misc
|
|||
|
|||
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
Posted to microsoft.public.excel.misc
|
|||
|
|||
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
Posted to microsoft.public.excel.misc
|
|||
|
|||
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 |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
Picking up part of a formula from another cell | Excel Worksheet Functions | |||
Picking specific rows from database | Excel Discussion (Misc queries) | |||
Picking specific records from a table | New Users to Excel | |||
Picking figures out of a cell | Excel Discussion (Misc queries) | |||
how do i sort a list from cells by picking a specific letter? | Excel Discussion (Misc queries) |