#1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 18
Default unsorted lookup

I need a formula, such as lookup, to extract data from an unsorted column. In
this case i'm tring to find the start time for the lunch period.

A B C
random text 7:00a 10:00a
random text 10:00a 12:00p
Lunch 12:00p 1:00p
random text 1:00p 3:00p

=lookup("lunch",A:A,B:B) wont work because A:A is not sorted.

Thanks
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 3,718
Default unsorted lookup

=VLOOKUP("lunch",A:B,2,0)


"j.ruderman" wrote:

I need a formula, such as lookup, to extract data from an unsorted column. In
this case i'm tring to find the start time for the lunch period.

A B C
random text 7:00a 10:00a
random text 10:00a 12:00p
Lunch 12:00p 1:00p
random text 1:00p 3:00p

=lookup("lunch",A:A,B:B) wont work because A:A is not sorted.

Thanks

  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1,766
Default unsorted lookup

Hi,

Try the following formula:

=index(A1:C4,match("Lunch",A1:A4,0),1)

Hope this helps.

--
Regards,

Ashsih Mathur
Microsoft Excel MVP
www.ashishmathur.com

"j.ruderman" wrote in message
...
I need a formula, such as lookup, to extract data from an unsorted column.
In
this case i'm tring to find the start time for the lunch period.

A B C
random text 7:00a 10:00a
random text 10:00a 12:00p
Lunch 12:00p 1:00p
random text 1:00p 3:00p

=lookup("lunch",A:A,B:B) wont work because A:A is not sorted.

Thanks


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 unsorted list why-J Excel Discussion (Misc queries) 7 July 24th 08 10:57 AM
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 11:14 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"