Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 30
Default Lookup & named cells

I am trying to use a named cell group as the table array in a lookup
function. It works when I type the name into the function, but not when I
have a cell reference to it, ie.

it works as =HLOOKUP(E14,white,4)

but not as
cell C6 contains word white.
=HLOOKUP(E14,C6,4)

Any suggestions?

  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 30
Default Lookup & named cells

THANK YOU! YOU ARE A STAR!!

"Teethless mama" wrote:

=HLOOKUP(A14,INDIRECT(C6),4)


"Eddie" wrote:

Sorry I was not clear enough in my question.

I have a defined group of cells called white. I want the lookup formula to
use the cell C6, not the name, so if I vary what is written in cell C6 it can
look up other named groups eg red or blue.

Does this make more sense?

Eddiw

"Teethless mama" wrote:

I don't think both of your formula work at all, unless you have a define name
"white" of your data range not just on cell C6. What is your data table look
like?


"Eddie" wrote:

I am trying to use a named cell group as the table array in a lookup
function. It works when I type the name into the function, but not when I
have a cell reference to it, ie.

it works as =HLOOKUP(E14,white,4)

but not as
cell C6 contains word white.
=HLOOKUP(E14,C6,4)

Any suggestions?

  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 3,718
Default Lookup & named cells

You are welcome!

"Eddie" wrote:

THANK YOU! YOU ARE A STAR!!

"Teethless mama" wrote:

=HLOOKUP(A14,INDIRECT(C6),4)


"Eddie" wrote:

Sorry I was not clear enough in my question.

I have a defined group of cells called white. I want the lookup formula to
use the cell C6, not the name, so if I vary what is written in cell C6 it can
look up other named groups eg red or blue.

Does this make more sense?

Eddiw

"Teethless mama" wrote:

I don't think both of your formula work at all, unless you have a define name
"white" of your data range not just on cell C6. What is your data table look
like?


"Eddie" wrote:

I am trying to use a named cell group as the table array in a lookup
function. It works when I type the name into the function, but not when I
have a cell reference to it, ie.

it works as =HLOOKUP(E14,white,4)

but not as
cell C6 contains word white.
=HLOOKUP(E14,C6,4)

Any suggestions?

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
Lookup & named cells Teethless mama Excel Worksheet Functions 2 March 28th 07 02:48 AM
Trying to use Lookup with Named Columns San Excel Worksheet Functions 1 January 23rd 07 09:35 AM
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
lookup on named formula ViMuTo Excel Discussion (Misc queries) 4 March 9th 06 04:54 AM
lookup on named formula ViMuTo Excel Discussion (Misc queries) 0 March 8th 06 03:51 PM


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