Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 1
Default how do i use the text in a cell as a named range in a vlookup form

I have a list of data that is refreshed from a system and i wish to use the
text returned in each cell as the named range reference in a vlookup so that
i can fill down the formula against the full list.
For example:
Cell Text in cell Deesired Formula
A1 Yellow = vlookup(c1,Yellow,2,false)
A2 Red = vlookup(c2,Red,2,false)
A3 Blue = vlookup(c2,Blue,2,false)
But using the text in the cell as the named range e.g =vlookup(c1,a1,2,false)

Is there anyway to do this?
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 11,058
Default how do i use the text in a cell as a named range in a vlookup form

Say we have a table from I2 thru J4:

1 rose
2 bud
3 tree

and we assign the Name plant to the table.

say we enter 2 in A1 and plant in A2.

=VLOOKUP(A1,I2:J4,2)
=VLOOKUP(A1,plant,2)
=VLOOKUP(A1,INDIRECT(A2),2)

will all work and all return bud.

So as long as the proper Table Name gets in A2 you can use it in the VLOOKUP()
--
Gary''s Student - gsnu200832


"SB_2009" wrote:

I have a list of data that is refreshed from a system and i wish to use the
text returned in each cell as the named range reference in a vlookup so that
i can fill down the formula against the full list.
For example:
Cell Text in cell Deesired Formula
A1 Yellow = vlookup(c1,Yellow,2,false)
A2 Red = vlookup(c2,Red,2,false)
A3 Blue = vlookup(c2,Blue,2,false)
But using the text in the cell as the named range e.g =vlookup(c1,a1,2,false)

Is there anyway to do this?

  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 3
Default how do i use the text in a cell as a named range in a vlookup

Brilliant - that works exactly as i wanted.

Cheers!

"Gary''s Student" wrote:

Say we have a table from I2 thru J4:

1 rose
2 bud
3 tree

and we assign the Name plant to the table.

say we enter 2 in A1 and plant in A2.

=VLOOKUP(A1,I2:J4,2)
=VLOOKUP(A1,plant,2)
=VLOOKUP(A1,INDIRECT(A2),2)

will all work and all return bud.

So as long as the proper Table Name gets in A2 you can use it in the VLOOKUP()
--
Gary''s Student - gsnu200832


"SB_2009" wrote:

I have a list of data that is refreshed from a system and i wish to use the
text returned in each cell as the named range reference in a vlookup so that
i can fill down the formula against the full list.
For example:
Cell Text in cell Deesired Formula
A1 Yellow = vlookup(c1,Yellow,2,false)
A2 Red = vlookup(c2,Red,2,false)
A3 Blue = vlookup(c2,Blue,2,false)
But using the text in the cell as the named range e.g =vlookup(c1,a1,2,false)

Is there anyway to do this?

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
VLOOKUP with a Named Range argument modernminstrel Excel Worksheet Functions 1 October 13th 08 04:11 PM
using a dynamic named range in a VLOOKUP Dave F Excel Discussion (Misc queries) 3 January 19th 07 08:38 PM
HOW TO EXTRACT CELL REFERENCE AS TEXT FROM NAMED RANGE romelsb Excel Worksheet Functions 0 November 3rd 06 09:49 PM
inserting a named range into new cells based on a named cell Peter S. Excel Discussion (Misc queries) 1 June 4th 06 03:53 AM
Vlookup in a named range tuph Excel Worksheet Functions 7 May 29th 06 02:23 AM


All times are GMT +1. The time now is 09:19 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"