Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
Kim Kim is offline
external usenet poster
 
Posts: 284
Default Finding name of a coumn that returned min value

Hi

Please can you help

I have 4 columns with the name of labs as the headers, below the is a number
of costs for certain tests. What I would like to do is have two columns, one
that returns the minimum value (hence min function) and the next column to
return the name of the lab the minium value comes from. E.g.

STL NIRAS GSL Scien. Min Name
Cu 12 13 6 8 6 GSL
As 12 13 6 8 6 GSL
pH 10 10 11 12 10 STL NIRAS

Any ideas?

Thank you

  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 35,218
Default Finding name of a coumn that returned min value

in F2:
=min($b2:$e2)

in g2:
=index($b$1:$e$1,match(f2,$b2:$e2,0))

Select F2:G2 and drag down as far as you need.

This will return the first minimum value--ties are not included.



Kim wrote:

Hi

Please can you help

I have 4 columns with the name of labs as the headers, below the is a number
of costs for certain tests. What I would like to do is have two columns, one
that returns the minimum value (hence min function) and the next column to
return the name of the lab the minium value comes from. E.g.

STL NIRAS GSL Scien. Min Name
Cu 12 13 6 8 6 GSL
As 12 13 6 8 6 GSL
pH 10 10 11 12 10 STL NIRAS

Any ideas?

Thank you


--

Dave Peterson
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
Coumn/Row highlight tracker axled Excel Worksheet Functions 0 September 25th 06 03:23 AM
need to know how to get the sum of right product returned farmer Excel Worksheet Functions 5 March 7th 06 01:10 PM
Using the returned value of a function adombrowski New Users to Excel 1 December 21st 05 07:01 AM
Error being returned Pat Excel Worksheet Functions 4 January 17th 05 04:33 PM
#Value! Returned ? John Excel Worksheet Functions 2 December 6th 04 08:55 PM


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