Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 2
Default Backwards? lookup function

I have two lists of items. The first is, for example 50 items - List A. I
want to look at another list (shorter, say 10 items - List B). I want to see
what items in List A have a matching item in List B and return a value in
that row.
I have not been able to match items from lists of different sizes, unless
List A is shorter than List B, rather than the other way around? Is there a
way I can do this?

Thanks for your help
--
Cards Fan
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 7,247
Default Backwards? lookup function

Select the range of cells where you want the values from ListA to appear
(this should be at least as large as the larger of ListA and ListB), type in
the following formula and press CTRL SHIFT ENTER rather than just ENTER. If
you do this properly, Excel will enter the formula into all selected cells
and display the formula enclosed in curly braces { }.

=IF(NOT(ISERROR(MATCH(ListA,ListB,0))),ListA,"")

See www.cpearson.com/excel/ArrayFormulas.aspx and
www.cpearson.com/excel/ListFunctions.aspx


--
Cordially,
Chip Pearson
Microsoft MVP - Excel
Pearson Software Consulting
www.cpearson.com
(email on the web site)


"cardsfan" wrote in message
...
I have two lists of items. The first is, for example 50 items - List A. I
want to look at another list (shorter, say 10 items - List B). I want to
see
what items in List A have a matching item in List B and return a value in
that row.
I have not been able to match items from lists of different sizes, unless
List A is shorter than List B, rather than the other way around? Is there
a
way I can do this?

Thanks for your help
--
Cards Fan


  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 2
Default Backwards? lookup function

Thank you. I will try this. I think it will work for what I want to do.
--
Cards Fan


"Chip Pearson" wrote:

Select the range of cells where you want the values from ListA to appear
(this should be at least as large as the larger of ListA and ListB), type in
the following formula and press CTRL SHIFT ENTER rather than just ENTER. If
you do this properly, Excel will enter the formula into all selected cells
and display the formula enclosed in curly braces { }.

=IF(NOT(ISERROR(MATCH(ListA,ListB,0))),ListA,"")

See www.cpearson.com/excel/ArrayFormulas.aspx and
www.cpearson.com/excel/ListFunctions.aspx


--
Cordially,
Chip Pearson
Microsoft MVP - Excel
Pearson Software Consulting
www.cpearson.com
(email on the web site)


"cardsfan" wrote in message
...
I have two lists of items. The first is, for example 50 items - List A. I
want to look at another list (shorter, say 10 items - List B). I want to
see
what items in List A have a matching item in List B and return a value in
that row.
I have not been able to match items from lists of different sizes, unless
List A is shorter than List B, rather than the other way around? Is there
a
way I can do this?

Thanks for your help
--
Cards Fan


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
Excel is Backwards! Randy Rich Setting up and Configuration of Excel 9 February 15th 07 05:25 PM
Excel is Backwards! Randy Rich Excel Discussion (Misc queries) 8 February 14th 07 06:18 PM
populate backwards Lp12 Excel Worksheet Functions 1 December 12th 06 02:57 PM
Pivot table doing a lookup without using the lookup function? NGASGELI Excel Discussion (Misc queries) 0 August 2nd 05 05:08 AM
Backwards lookup Derek Excel Worksheet Functions 3 April 1st 05 05:53 PM


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