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
 

Some videos you may like

Excel Facts

Lock one reference in a formula
Need 1 part of a formula to always point to the same range? use $ signs: $V$2:$Z$99 will always point to V2:Z99, even after copying

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
 

Watch MrExcel Video

Forum statistics

Threads
1,122,333
Messages
5,595,560
Members
413,996
Latest member
mabelO

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