#1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 9
Default Lookup

We use Excel 2003 for staff scheduling. Under each date (col C, D) we enter
the facility they are working at. At the bottom we want to return the
initials (col B) of who is working at the facility JE. I tried
=LOOKUP("JE",C2:C6,B2:B6) - that doesn't work correctly. My example should
display BB, not MT. Any direction would be very appreciated.

A B C D
Name Initials 11/12 11/13
Bob B. BB JE JE
Cathy K CK DT DT
Bob S BS DT DT
Mary MT DT DT
Ann AM MO MO

who JE MT

  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 9
Default Lookup

Wonderful! That worked! Can you tell me what the Match type =0 means? I
have other applications for this function and I don't understand that part.
Thanks so much.

"Elkar" wrote:

Try this:

=INDEX(B2:B6,MATCH("JE",C2:C6,0))

HTH,
Elkar



"Machel" wrote:

We use Excel 2003 for staff scheduling. Under each date (col C, D) we enter
the facility they are working at. At the bottom we want to return the
initials (col B) of who is working at the facility JE. I tried
=LOOKUP("JE",C2:C6,B2:B6) - that doesn't work correctly. My example should
display BB, not MT. Any direction would be very appreciated.

A B C D
Name Initials 11/12 11/13
Bob B. BB JE JE
Cathy K CK DT DT
Bob S BS DT DT
Mary MT DT DT
Ann AM MO MO

who JE MT

  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 964
Default Lookup

Try this:

=INDEX(B2:B6,MATCH("JE",C2:C6,0))

HTH,
Elkar



"Machel" wrote:

We use Excel 2003 for staff scheduling. Under each date (col C, D) we enter
the facility they are working at. At the bottom we want to return the
initials (col B) of who is working at the facility JE. I tried
=LOOKUP("JE",C2:C6,B2:B6) - that doesn't work correctly. My example should
display BB, not MT. Any direction would be very appreciated.

A B C D
Name Initials 11/12 11/13
Bob B. BB JE JE
Cathy K CK DT DT
Bob S BS DT DT
Mary MT DT DT
Ann AM MO MO

who JE MT

  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 964
Default Lookup

A Match Type of 0 looks for an exact match to the lookup value. Since you
are looking for a specific text string, this is the only option that works.
Other types 1 or -1 look for the closest match that is either greater than or
less than the lookup value. These options really only make sense for numbers.

You can find more info on this in the Excel Help file under the MATCH
Function.

HTH,
Elkar


"Machel" wrote:

Wonderful! That worked! Can you tell me what the Match type =0 means? I
have other applications for this function and I don't understand that part.
Thanks so much.

"Elkar" wrote:

Try this:

=INDEX(B2:B6,MATCH("JE",C2:C6,0))

HTH,
Elkar



"Machel" wrote:

We use Excel 2003 for staff scheduling. Under each date (col C, D) we enter
the facility they are working at. At the bottom we want to return the
initials (col B) of who is working at the facility JE. I tried
=LOOKUP("JE",C2:C6,B2:B6) - that doesn't work correctly. My example should
display BB, not MT. Any direction would be very appreciated.

A B C D
Name Initials 11/12 11/13
Bob B. BB JE JE
Cathy K CK DT DT
Bob S BS DT DT
Mary MT DT DT
Ann AM MO MO

who JE MT

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
Get Cell Address From Lookup (Alternative to Lookup) ryguy7272 Excel Worksheet Functions 12 September 28th 07 10:36 PM
Join 2 Lists - Lookup value in 1 list & use result in 2nd lookup JBush Excel Worksheet Functions 3 January 3rd 07 11:14 PM
Sumproduct - Condition based on lookup of a Lookup Hari Excel Discussion (Misc queries) 12 May 31st 06 09:28 AM
Advanced Lookup (lookup for 2 values) 0-0 Wai Wai ^-^ Excel Worksheet Functions 2 March 30th 06 07:09 PM
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 04:36 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"