Finding Max/Min dates from a table

ramon75

New Member
Joined
Oct 23, 2016
Messages
1
Hello,

I hope someone can help me.
How can I get the max/min dates from a table based on a person's data.
For instance, I have the table as in the table below, where I am trying to get each person max and min date that they got paid.
In red on the right are values that I typed based on the table for Person 1.
But how to make a formula for this please?
Thank you in advance.

ABCDEFGHIJKLMNOPQRS
1Earnings01-Jan-1602-Jan-1603-Jan-1604-Jan-1605-Jan-1606-Jan-1607-Jan-1608-Jan-1609-Jan-1610-Jan-1611-Jan-1612-Jan-1613-Jan-1614-Jan-1615-Jan-16 Minimum DateMaximum Date
2Peron 1$500$550$578$606$637$669$702$737$774$813$853$896 01-Jan-1612-Jan-16
3Peron 2 $300$315$331$347$365$383$402
4Peron 3 $200$210$221$232$243$255
5Peron 4 $100$100$200
6Peron 5 $500 $500
7Peron 6$300 $400 $600 $400
8Peron 7 $200$200$200
9Peron 8 $700
10Peron 9 $100$100$100$100$100$100$100$100$100$100$100$100$100
11Peron 10$150$150$150$150$150$150$150$150$150$150$150$150$150$150$150

<tbody>
</tbody><colgroup><col span="2"><col span="15"><col><col><col></colgroup>
 

Excel Facts

Why does 9 mean SUM in SUBTOTAL?
It is because Sum is the 9th alphabetically in Average, Count, CountA, Max, Min, Product, StDev.S, StDev.P, Sum, VAR.S, VAR.P.
for Min

<style type="text/css">p.p1 {margin: 0.0px 0.0px 0.0px 0.0px; font: 12.0px 'Lucida Grande'}span.s1 {color: #0057d6}span.s2 {color: #006107}span.s3 {color: #ab30d6}</style>=INDEX($B$1:$P$1, MATCH(AGGREGATE(5,3,$B2:$P2), $B2:$P2,0))

for Max

=INDEX($B$1:$P$1, MATCH(AGGREGATE(4,3,$B2:$P2), $B2:$P2,0))


(only will work with Excel 2010 or higher versions)
 
Upvote 0
Cell R2 =MIN(IF($C2:$Q2 < > "",$C$1:$Q$1))
Cell S2 =MAX(IF($C2:$Q2 < > "",$C$1:$Q$1))
Both formulas should be entered with Ctrl+Shift+Enter
 
Upvote 0
Cell R2 =INDEX($B$1:$P$1,MATCH(MIN($B2:$P2),$B2:$P2,0))
Cell S2 =INDEX($B$1:$P$1,MATCH(MAX($B2:$P2),$B2:$P2,0))

Both formulas copied down.

igold
 
Upvote 0
How can I find the next minimum date from a table? I have a table of dates that are arranged out of sequence and many are the same date. I want to find the minimum date and in next cell, the next minimum date, and so on until all dates are arranged. I tried ranking the dates in ascending order but ranking skips numbers based on the number of same dates.
 
Upvote 0

Forum statistics

Threads
1,216,116
Messages
6,128,933
Members
449,480
Latest member
yesitisasport

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