MIN and MAX

perrin

New Member
Joined
Jul 1, 2002
Messages
8
I have a spreadsheet that tells me the highest and lowest expenses for
each month using the MIN and MAX formulas but how do I get it to tell
the month that the highest and lowest expenses occured. Right now it
just give the dollar amounts for each. Waht would the forlumla be to
do
that right now in cell B25 I have =MAX(B21:M21) and in B26 I have
=MIN(B21:M21) my months are listed in cells B2 through M2. Any Ideas
on
how to display the month with the amount. Thanks
 

Excel Facts

Links? Where??
If Excel says you have links but you can't find them, go to Formulas, Name Manager. Look for old links to dead workbooks & delete.
right now in cell B25 I have =MAX(B21:M21) and in B26 I have
=MIN(B21:M21) my months are listed in cells B2 through M2. Any Ideas
on
how to display the month with the amount. Thanks

Try:
=INDEX(B2:M2,1,MATCH(MAX(B21:M21),B21:M21,0))

for the max,

=INDEX(B2:M2,1,MATCH(MIN(B21:M21),B21:M21,0))

for the min.

You could replace the min / max calculations with cell references if you've already got the values calculated.

Note - no attempt has been made to deal with duplicate instances of the max / min values - what should happen in such cases?

Paddy
This message was edited by PaddyD on 2002-09-22 17:59
 
Upvote 0

Forum statistics

Threads
1,214,574
Messages
6,120,327
Members
448,956
Latest member
Adamsxl

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top