Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 41
Default LOOKUP across a whole table and not just first row or column

I am attempting to look up a particular value in a table and then identify
the number in the first column of that table which corresponds to that row.

For example:

111 678 666 475 987
232 565 687 4888 242
4543 123 3334 2727 590

From the above table, be able to enter a value in a formula within a cell
which in turn, would return the value in the first column of the row which
contains that value.
For example, if I enter the value 687 in the cell against which the formula
is applied, I wish the formula to provide the value "232" as the response.
Similarly, if the value 2727 is entered, the value 4543 should be the value
response.

Unfortunately, the lookup function doesn't work against a whole table nor
does it provide a value in the same column.

Suggestions? Many thanks.

  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 47
Default LOOKUP across a whole table and not just first row or column

You'll need to use Index and Match. There's a good explanation at Contextures:

http://www.contextures.com/xlFunctions03.html

"Eric_G" wrote:

I am attempting to look up a particular value in a table and then identify
the number in the first column of that table which corresponds to that row.

For example:

111 678 666 475 987
232 565 687 4888 242
4543 123 3334 2727 590

From the above table, be able to enter a value in a formula within a cell
which in turn, would return the value in the first column of the row which
contains that value.
For example, if I enter the value 687 in the cell against which the formula
is applied, I wish the formula to provide the value "232" as the response.
Similarly, if the value 2727 is entered, the value 4543 should be the value
response.

Unfortunately, the lookup function doesn't work against a whole table nor
does it provide a value in the same column.

Suggestions? Many thanks.

  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 15,768
Default LOOKUP across a whole table and not just first row or column

Maybe this...

A10 = 687

=SUMPRODUCT((B2:E4=A10)*A2:A4)

Note this will only work if the table data is unique, In other words, there
is only one instance of 687 in the table.

--
Biff
Microsoft Excel MVP


"Eric_G" wrote in message
...
I am attempting to look up a particular value in a table and then identify
the number in the first column of that table which corresponds to that
row.

For example:

111 678 666 475 987
232 565 687 4888 242
4543 123 3334 2727 590

From the above table, be able to enter a value in a formula within a cell
which in turn, would return the value in the first column of the row which
contains that value.
For example, if I enter the value 687 in the cell against which the
formula
is applied, I wish the formula to provide the value "232" as the response.
Similarly, if the value 2727 is entered, the value 4543 should be the
value
response.

Unfortunately, the lookup function doesn't work against a whole table nor
does it provide a value in the same column.

Suggestions? Many thanks.



  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 41
Default LOOKUP across a whole table and not just first row or column

Thanks for your assistance, but not all the values are, in fact, numeric.
Some are text values so the SUMPRODUCT function does not work. Any other
suggestions?

"T. Valko" wrote:

Maybe this...

A10 = 687

=SUMPRODUCT((B2:E4=A10)*A2:A4)

Note this will only work if the table data is unique, In other words, there
is only one instance of 687 in the table.

--
Biff
Microsoft Excel MVP


"Eric_G" wrote in message
...
I am attempting to look up a particular value in a table and then identify
the number in the first column of that table which corresponds to that
row.

For example:

111 678 666 475 987
232 565 687 4888 242
4543 123 3334 2727 590

From the above table, be able to enter a value in a formula within a cell
which in turn, would return the value in the first column of the row which
contains that value.
For example, if I enter the value 687 in the cell against which the
formula
is applied, I wish the formula to provide the value "232" as the response.
Similarly, if the value 2727 is entered, the value 4543 should be the
value
response.

Unfortunately, the lookup function doesn't work against a whole table nor
does it provide a value in the same column.

Suggestions? Many thanks.



.

  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 15,768
Default LOOKUP across a whole table and not just first row or column

Try this array formula** :

A10 = lookup value

=INDEX(A2:A4,MAX((B2:E4=A10)*ROW(B2:E4))-MIN(ROW(B2:E4))+1)

** array formulas need to be entered using the key combination of
CTRL,SHIFT,ENTER (not just ENTER). Hold down both the CTRL key and the SHIFT
key then hit ENTER.

--
Biff
Microsoft Excel MVP


"Eric_G" wrote in message
...
Thanks for your assistance, but not all the values are, in fact, numeric.
Some are text values so the SUMPRODUCT function does not work. Any other
suggestions?

"T. Valko" wrote:

Maybe this...

A10 = 687

=SUMPRODUCT((B2:E4=A10)*A2:A4)

Note this will only work if the table data is unique, In other words,
there
is only one instance of 687 in the table.

--
Biff
Microsoft Excel MVP


"Eric_G" wrote in message
...
I am attempting to look up a particular value in a table and then
identify
the number in the first column of that table which corresponds to that
row.

For example:

111 678 666 475 987
232 565 687 4888 242
4543 123 3334 2727 590

From the above table, be able to enter a value in a formula within a
cell
which in turn, would return the value in the first column of the row
which
contains that value.
For example, if I enter the value 687 in the cell against which the
formula
is applied, I wish the formula to provide the value "232" as the
response.
Similarly, if the value 2727 is entered, the value 4543 should be the
value
response.

Unfortunately, the lookup function doesn't work against a whole table
nor
does it provide a value in the same column.

Suggestions? Many thanks.



.





  #6   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1
Default Alternative of Vlookup

Thanks! Great Work!!Excellent!!!

Vlookup has shortcoming and it would realy overcome that shortcoming. I was looking it several time and did not get it. Then I used VBA and succeed but I wanted functions.


Would you please explain TOTAL FUNCTIONS, specially Max(B2:E4=10)?





T. Valko wrote:

Try this array formula** :A10 = lookup
18-Dec-09

Try this array formula** :

A10 = lookup value

=INDEX(A2:A4,MAX((B2:E4=A10)*ROW(B2:E4))-MIN(ROW(B2:E4))+1)

** array formulas need to be entered using the key combination of
CTRL,SHIFT,ENTER (not just ENTER). Hold down both the CTRL key and the SHIFT
key then hit ENTER.

--
Biff
Microsoft Excel MVP

Previous Posts In This Thread:

On Thursday, December 17, 2009 2:20 PM
Eric_G wrote:

LOOKUP across a whole table and not just first row or column
I am attempting to look up a particular value in a table and then identify
the number in the first column of that table which corresponds to that row.

For example:

111 678 666 475 987
232 565 687 4888 242
4543 123 3334 2727 590

From the above table, be able to enter a value in a formula within a cell
which in turn, would return the value in the first column of the row which
contains that value.
For example, if I enter the value 687 in the cell against which the formula
is applied, I wish the formula to provide the value "232" as the response.
Similarly, if the value 2727 is entered, the value 4543 should be the value
response.

Unfortunately, the lookup function does not work against a whole table nor
does it provide a value in the same column.

Suggestions? Many thanks.

On Thursday, December 17, 2009 3:22 PM
berniean wrote:

You'll need to use Index and Match.
You'll need to use Index and Match. There is a good explanation at Contextures:

http://www.contextures.com/xlFunctions03.html

"Eric_G" wrote:

On Thursday, December 17, 2009 3:53 PM
T. Valko wrote:

Maybe this...
Maybe this...

A10 = 687

=SUMPRODUCT((B2:E4=A10)*A2:A4)

Note this will only work if the table data is unique, In other words, there
is only one instance of 687 in the table.

--
Biff
Microsoft Excel MVP

On Friday, December 18, 2009 7:30 AM
Eric_G wrote:

Thanks for your assistance, but not all the values are, in fact, numeric.
Thanks for your assistance, but not all the values are, in fact, numeric.
Some are text values so the SUMPRODUCT function does not work. Any other
suggestions?

"T. Valko" wrote:

On Friday, December 18, 2009 11:35 AM
T. Valko wrote:

Try this array formula** :A10 = lookup
Try this array formula** :

A10 = lookup value

=INDEX(A2:A4,MAX((B2:E4=A10)*ROW(B2:E4))-MIN(ROW(B2:E4))+1)

** array formulas need to be entered using the key combination of
CTRL,SHIFT,ENTER (not just ENTER). Hold down both the CTRL key and the SHIFT
key then hit ENTER.

--
Biff
Microsoft Excel MVP


Submitted via EggHeadCafe - Software Developer Portal of Choice
Build a Cross-Browser ASP.NET CSS-Only Menu UserControl
http://www.eggheadcafe.com/tutorials...owser-asp.aspx
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 value in a table and return value in first column of same r Eric_G Excel Worksheet Functions 2 December 12th 09 02:51 AM
Lookup looks to the prior column if zero appears in the lookup col kenbquik Excel Discussion (Misc queries) 2 March 12th 09 03:41 AM
V-Lookup, column index number indicator in table array Karen.Robertson@PMI Excel Worksheet Functions 0 May 17th 06 10:51 PM
Pivot table doing a lookup without using the lookup function? NGASGELI Excel Discussion (Misc queries) 0 August 2nd 05 05:08 AM
Calculating totals in a column based on a lookup in another column Michael Wright via OfficeKB.com Excel Worksheet Functions 1 April 15th 05 09:52 AM


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