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

Return population for a City
If you have a list of cities in A2:A100, use Data, Geography. Then =A2.Population and copy down.

plettieri

Well-known Member
Joined
Sep 4, 2002
Messages
1,556
Platform
  1. MacOS
Did you try looking at the lookup techniques?

ie vlookup or hlookup?
 

PaddyD

MrExcel MVP
Joined
May 1, 2002
Messages
14,234
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
 
Master Excel Bundle

Excel contains over 450 functions, with more added every year. That’s a huge number, so where should you start? Right here with this bundle.

Forum statistics

Threads
1,163,982
Messages
5,834,686
Members
430,310
Latest member
Excelorate3305

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
Top