#1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 913
Default Lookup unsorted list

On Thu, 24 Jul 2008 00:22:01 -0700, why-J
wrote:

I have a very simple two column list. Col-A is "Products" col-B is "Date
Purchase". Col-A is un-sorted and various products are repeated several
times. I want a lookup formula that would tell me the most recent date when a
particular product was purchased.

If col-A was sorted ascending, I could use
=LOOKUP(1E+100,INDEX(A2:B8,MATCH(A12,A2:A8,1),0)) . Can someone please help.


Try this formula:
(Note: This is an array formula that has to be confirmed with
CTRL+SHIFT+ENTER rather than just ENTER)

=MAX((A2:A8=A12)*(B2:B8))

Hope this helps / Lars-Åke
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 11,501
Default Lookup unsorted list

This returns the second instance, not the last

"Lars-Ã…ke Aspelin" wrote:

On Thu, 24 Jul 2008 00:22:01 -0700, why-J
wrote:

I have a very simple two column list. Col-A is "Products" col-B is "Date
Purchase". Col-A is un-sorted and various products are repeated several
times. I want a lookup formula that would tell me the most recent date when a
particular product was purchased.

If col-A was sorted ascending, I could use
=LOOKUP(1E+100,INDEX(A2:B8,MATCH(A12,A2:A8,1),0)) . Can someone please help.


Try this formula:
(Note: This is an array formula that has to be confirmed with
CTRL+SHIFT+ENTER rather than just ENTER)

=MAX((A2:A8=A12)*(B2:B8))

Hope this helps / Lars-Ã…ke

  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 913
Default Lookup unsorted list

My interpretation of "the most recent date" is the date with the
highest value, not the date placed on the highest row number.
The most recent date may be placed on any row I guess.

Lars-Åke


On Thu, 24 Jul 2008 01:13:08 -0700, Mike H
wrote:

This returns the second instance, not the last

"Lars-Åke Aspelin" wrote:

On Thu, 24 Jul 2008 00:22:01 -0700, why-J
wrote:

I have a very simple two column list. Col-A is "Products" col-B is "Date
Purchase". Col-A is un-sorted and various products are repeated several
times. I want a lookup formula that would tell me the most recent date when a
particular product was purchased.

If col-A was sorted ascending, I could use
=LOOKUP(1E+100,INDEX(A2:B8,MATCH(A12,A2:A8,1),0)) . Can someone please help.


Try this formula:
(Note: This is an array formula that has to be confirmed with
CTRL+SHIFT+ENTER rather than just ENTER)

=MAX((A2:A8=A12)*(B2:B8))

Hope this helps / Lars-Åke


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
returning values from an unsorted list. Gef Excel Discussion (Misc queries) 3 March 12th 08 09:03 PM
How do I find top 3 in an unsorted list? RLind Excel Worksheet Functions 3 June 22nd 07 11:26 PM
lookup unsorted list sslenterprises Excel Discussion (Misc queries) 2 October 25th 05 09:24 AM
An unsorted list in vlookup Traima Excel Worksheet Functions 2 August 8th 05 01:10 PM
Matching unsorted lookup values chrisrowe_cr Excel Worksheet Functions 4 July 25th 05 04:57 AM


All times are GMT +1. The time now is 08:31 AM.

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"