Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
Phil
 
Posts: n/a
Default Finding Smallest Value

I am doing a cost comparison of four numbers. I need to find the smallest
value, so I use the MINA function. Is it possible to take this solution and
tell me what row it is from, or return the corresponding category?
Ex.

A1- United A2- $1
B1- Mart B2- $2
C1- Horizon C2- $3
D1- MS Walker D2- $4

So, after the smallest value is found, is there a way to produce as the
solution the corresponding purveyor? So, if A2 is lowest value can I have
the solution refer back to A1?
  #2   Report Post  
Posted to microsoft.public.excel.misc
daddylonglegs
 
Posts: n/a
Default Finding Smallest Value


Try

=INDEX(A1:D1,MATCH(MAX(A2:D2),A2:D2,0))


--
daddylonglegs
------------------------------------------------------------------------
daddylonglegs's Profile: http://www.excelforum.com/member.php...o&userid=30486
View this thread: http://www.excelforum.com/showthread...hreadid=546311

  #3   Report Post  
Posted to microsoft.public.excel.misc
JE McGimpsey
 
Posts: n/a
Default Finding Smallest Value

One way:

=INDEX(A:A,MATCH(MIN(B:B),B:B,FALSE))

In article ,
Phil wrote:

I am doing a cost comparison of four numbers. I need to find the smallest
value, so I use the MINA function. Is it possible to take this solution and
tell me what row it is from, or return the corresponding category?
Ex.

A1- United A2- $1
B1- Mart B2- $2
C1- Horizon C2- $3
D1- MS Walker D2- $4

So, after the smallest value is found, is there a way to produce as the
solution the corresponding purveyor? So, if A2 is lowest value can I have
the solution refer back to A1?

  #4   Report Post  
Posted to microsoft.public.excel.misc
Ron Coderre
 
Posts: n/a
Default Finding Smallest Value

Try something like this, Phil:

With your table of information in A1:D2

This formula finds the lowest value in A2:D2 and returns the corresponding
purveyor in A1:D1.
F1: =INDEX(A1:D1,1,MATCH(MINA(A2:D2),A2:D2,0))

Is that something you can work with?

***********
Regards,
Ron

XL2002, WinXP


"Phil" wrote:

I am doing a cost comparison of four numbers. I need to find the smallest
value, so I use the MINA function. Is it possible to take this solution and
tell me what row it is from, or return the corresponding category?
Ex.

A1- United A2- $1
B1- Mart B2- $2
C1- Horizon C2- $3
D1- MS Walker D2- $4

So, after the smallest value is found, is there a way to produce as the
solution the corresponding purveyor? So, if A2 is lowest value can I have
the solution refer back to A1?

  #5   Report Post  
Posted to microsoft.public.excel.misc
Phil
 
Posts: n/a
Default Finding Smallest Value

Thanks... this was perfect. One other question, how can I copy and paste
this all the way down my spreadsheet without having to go thru and manually
adjust all the formulas, so it references the same cells?...A1:D1

"Ron Coderre" wrote:

Try something like this, Phil:

With your table of information in A1:D2

This formula finds the lowest value in A2:D2 and returns the corresponding
purveyor in A1:D1.
F1: =INDEX(A1:D1,1,MATCH(MINA(A2:D2),A2:D2,0))

Is that something you can work with?

***********
Regards,
Ron

XL2002, WinXP


"Phil" wrote:

I am doing a cost comparison of four numbers. I need to find the smallest
value, so I use the MINA function. Is it possible to take this solution and
tell me what row it is from, or return the corresponding category?
Ex.

A1- United A2- $1
B1- Mart B2- $2
C1- Horizon C2- $3
D1- MS Walker D2- $4

So, after the smallest value is found, is there a way to produce as the
solution the corresponding purveyor? So, if A2 is lowest value can I have
the solution refer back to A1?



  #6   Report Post  
Posted to microsoft.public.excel.misc
Ron Coderre
 
Posts: n/a
Default Finding Smallest Value

Try something like this:

F1: =INDEX($A$1:$D$1,1,MATCH(MINA(A2:D2),A2:D2,0))

Note: Dollar Signs ($) in a reference "lock in" that part of the reference.
For more on how they work....

See Excel Help:
About cell and range references
-The difference between relative and absolute references.

Does that help?
***********
Regards,
Ron

XL2002, WinXP


"Phil" wrote:

Thanks... this was perfect. One other question, how can I copy and paste
this all the way down my spreadsheet without having to go thru and manually
adjust all the formulas, so it references the same cells?...A1:D1

"Ron Coderre" wrote:

Try something like this, Phil:

With your table of information in A1:D2

This formula finds the lowest value in A2:D2 and returns the corresponding
purveyor in A1:D1.
F1: =INDEX(A1:D1,1,MATCH(MINA(A2:D2),A2:D2,0))

Is that something you can work with?

***********
Regards,
Ron

XL2002, WinXP


"Phil" wrote:

I am doing a cost comparison of four numbers. I need to find the smallest
value, so I use the MINA function. Is it possible to take this solution and
tell me what row it is from, or return the corresponding category?
Ex.

A1- United A2- $1
B1- Mart B2- $2
C1- Horizon C2- $3
D1- MS Walker D2- $4

So, after the smallest value is found, is there a way to produce as the
solution the corresponding purveyor? So, if A2 is lowest value can I have
the solution refer back to A1?

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
trying to find the smallest with dynamic column changes Andy Excel Discussion (Misc queries) 1 February 24th 06 09:07 PM
Finding Asymptotes from a set of data in Excel WAYNEL Excel Worksheet Functions 1 January 7th 06 01:28 AM
Finding Asymptotes from a set of data in Excel WAYNEL Excel Discussion (Misc queries) 0 January 6th 06 10:48 PM
Finding Duplicate Names from Different Lists... PokerZan Excel Discussion (Misc queries) 1 July 8th 05 09:58 AM
Getting the 2nd largest or smallest valuesin a range Michael Rekas Excel Discussion (Misc queries) 5 January 31st 05 07:48 AM


All times are GMT +1. The time now is 12:32 AM.

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"