Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 17
Default Lookup value in table

Need to determine column of the lookup value in a table.
Lookup value = 6/1/06

Table A B C
row 1 7/1/05 7/1/06 7/1/07
row 2 6/1/05 6/1/06 6/1/07
row 3 5/1/05 5/1/06 5/1/07

The answer should column 2.

Your help is greatly appreciated.


--
Bonita
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1,688
Default Lookup value in table

Is the column number relative or absolute?

If your table is in the range A1:C3 this array formula entered using the key
combination of CTRL,SHIFT,ENTER (not just ENTER) will return the ABSOLUTE
column number:

=MAX((A1:C3=A10)*COLUMN(A1:C3)) Returns: 2

If your table is in the range D1:F3 this array formula entered using the key
combination of CTRL,SHIFT,ENTER (not just ENTER) will return the RELATIVE
column number:

=MAX((D1:F3=A10)*COLUMN(D1:F3)-COLUMN(D1)+1) Returns: 2

Biff

"Bonita" wrote in message
...
Need to determine column of the lookup value in a table.
Lookup value = 6/1/06

Table A B C
row 1 7/1/05 7/1/06 7/1/07
row 2 6/1/05 6/1/06 6/1/07
row 3 5/1/05 5/1/06 5/1/07

The answer should column 2.

Your help is greatly appreciated.


--
Bonita



  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1,688
Default Lookup value in table

P.S.

In the formulas A10 holds the lookup value.

Biff

"Biff" wrote in message
...
Is the column number relative or absolute?

If your table is in the range A1:C3 this array formula entered using the
key combination of CTRL,SHIFT,ENTER (not just ENTER) will return the
ABSOLUTE column number:

=MAX((A1:C3=A10)*COLUMN(A1:C3)) Returns: 2

If your table is in the range D1:F3 this array formula entered using the
key combination of CTRL,SHIFT,ENTER (not just ENTER) will return the
RELATIVE column number:

=MAX((D1:F3=A10)*COLUMN(D1:F3)-COLUMN(D1)+1) Returns: 2

Biff

"Bonita" wrote in message
...
Need to determine column of the lookup value in a table.
Lookup value = 6/1/06

Table A B C
row 1 7/1/05 7/1/06 7/1/07
row 2 6/1/05 6/1/06 6/1/07
row 3 5/1/05 5/1/06 5/1/07

The answer should column 2.

Your help is greatly appreciated.


--
Bonita





  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 17
Default Lookup value in table

Relative
The column location will be used to lookup another value.
Thanks for the solution.
--
Bonita


"Biff" wrote:

P.S.

In the formulas A10 holds the lookup value.

Biff

"Biff" wrote in message
...
Is the column number relative or absolute?

If your table is in the range A1:C3 this array formula entered using the
key combination of CTRL,SHIFT,ENTER (not just ENTER) will return the
ABSOLUTE column number:

=MAX((A1:C3=A10)*COLUMN(A1:C3)) Returns: 2

If your table is in the range D1:F3 this array formula entered using the
key combination of CTRL,SHIFT,ENTER (not just ENTER) will return the
RELATIVE column number:

=MAX((D1:F3=A10)*COLUMN(D1:F3)-COLUMN(D1)+1) Returns: 2

Biff

"Bonita" wrote in message
...
Need to determine column of the lookup value in a table.
Lookup value = 6/1/06

Table A B C
row 1 7/1/05 7/1/06 7/1/07
row 2 6/1/05 6/1/06 6/1/07
row 3 5/1/05 5/1/06 5/1/07

The answer should column 2.

Your help is greatly appreciated.


--
Bonita






  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 17
Default Lookup value in table

Thanks. It works great
--
Bonita


"Bonita" wrote:

Relative
The column location will be used to lookup another value.
Thanks for the solution.
--
Bonita


"Biff" wrote:

P.S.

In the formulas A10 holds the lookup value.

Biff

"Biff" wrote in message
...
Is the column number relative or absolute?

If your table is in the range A1:C3 this array formula entered using the
key combination of CTRL,SHIFT,ENTER (not just ENTER) will return the
ABSOLUTE column number:

=MAX((A1:C3=A10)*COLUMN(A1:C3)) Returns: 2

If your table is in the range D1:F3 this array formula entered using the
key combination of CTRL,SHIFT,ENTER (not just ENTER) will return the
RELATIVE column number:

=MAX((D1:F3=A10)*COLUMN(D1:F3)-COLUMN(D1)+1) Returns: 2

Biff

"Bonita" wrote in message
...
Need to determine column of the lookup value in a table.
Lookup value = 6/1/06

Table A B C
row 1 7/1/05 7/1/06 7/1/07
row 2 6/1/05 6/1/06 6/1/07
row 3 5/1/05 5/1/06 5/1/07

The answer should column 2.

Your help is greatly appreciated.


--
Bonita







  #6   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1,688
Default Lookup value in table

You're welcome. Thanks for the feedback!

Biff

"Bonita" wrote in message
...
Thanks. It works great
--
Bonita


"Bonita" wrote:

Relative
The column location will be used to lookup another value.
Thanks for the solution.
--
Bonita


"Biff" wrote:

P.S.

In the formulas A10 holds the lookup value.

Biff

"Biff" wrote in message
...
Is the column number relative or absolute?

If your table is in the range A1:C3 this array formula entered using
the
key combination of CTRL,SHIFT,ENTER (not just ENTER) will return the
ABSOLUTE column number:

=MAX((A1:C3=A10)*COLUMN(A1:C3)) Returns: 2

If your table is in the range D1:F3 this array formula entered using
the
key combination of CTRL,SHIFT,ENTER (not just ENTER) will return the
RELATIVE column number:

=MAX((D1:F3=A10)*COLUMN(D1:F3)-COLUMN(D1)+1) Returns: 2

Biff

"Bonita" wrote in message
...
Need to determine column of the lookup value in a table.
Lookup value = 6/1/06

Table A B C
row 1 7/1/05 7/1/06 7/1/07
row 2 6/1/05 6/1/06 6/1/07
row 3 5/1/05 5/1/06 5/1/07

The answer should column 2.

Your help is greatly appreciated.


--
Bonita







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 multiple lookup value in table array [email protected] Excel Worksheet Functions 2 September 26th 06 04:12 PM
Inverse Table Lookup Dave White Excel Worksheet Functions 4 September 20th 06 06:40 PM
formatting a cell the same as the source cell from a lookup table hot dogs Excel Discussion (Misc queries) 2 August 24th 06 11:07 AM
Need to Improve Code Copying/Pasting Between Workbooks David Excel Discussion (Misc queries) 1 January 6th 06 03:56 AM
Pivot table doing a lookup without using the lookup function? NGASGELI Excel Discussion (Misc queries) 0 August 2nd 05 05:08 AM


All times are GMT +1. The time now is 07:55 PM.

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"