#1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 10
Default advanced lookup?

Good morning to all:

I have a spreadsheet S1 where a cell B1 contains the value "MN" and a cell
A2 contains the value "AB"

I have a spreadsheet S2 where I have a cell A2 containing the value "MN" and
cell B2 contains "AB" and the cells C2 to L2 contain prices and the cells
above C1 to L1 contain the names of the suppliers.

I am trying to put in the cell B2 of the spreadsheet S1 a formula that would
retrieve the smallest price (obtained from the cells C2 to L2 in spreadsheet
S2) and the name of the supplier who has the smallest price (obtained from
the cells C1 to L1 in the spreadsheet S2). Ideal would be to eliminate the
zero or blank values from the formula

I tried to combine SMALL and INDEX with no success... hairs are getting
grayer by the minute here.

Can anyone assist?

Thanks a bunch for your time

MK


  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 2,836
Default advanced lookup?

I think this will give you what you want (or it should get you very close):
=INDEX(C1:L1,MATCH(MIN(C2:L2),C2:L2,0))
Modify to suit your needs.

Regards,
Ryan--

--
RyGuy


"Michel Khennafi" wrote:

Good morning to all:

I have a spreadsheet S1 where a cell B1 contains the value "MN" and a cell
A2 contains the value "AB"

I have a spreadsheet S2 where I have a cell A2 containing the value "MN" and
cell B2 contains "AB" and the cells C2 to L2 contain prices and the cells
above C1 to L1 contain the names of the suppliers.

I am trying to put in the cell B2 of the spreadsheet S1 a formula that would
retrieve the smallest price (obtained from the cells C2 to L2 in spreadsheet
S2) and the name of the supplier who has the smallest price (obtained from
the cells C1 to L1 in the spreadsheet S2). Ideal would be to eliminate the
zero or blank values from the formula

I tried to combine SMALL and INDEX with no success... hairs are getting
grayer by the minute here.

Can anyone assist?

Thanks a bunch for your time

MK



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
Advanced lookup or match? xexex Excel Discussion (Misc queries) 1 October 17th 07 10:34 PM
Advanced IF statement / LOOKUP Jane Excel Worksheet Functions 4 December 8th 06 03:14 PM
Advanced Lookup (lookup for 2 values) 0-0 Wai Wai ^-^ Excel Worksheet Functions 2 March 30th 06 07:09 PM
Advanced Lookup problem timmyc Excel Worksheet Functions 1 February 8th 06 08:31 PM
Advanced Lookup w/Dates Steve_C Excel Worksheet Functions 2 February 8th 06 07:18 PM


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