Return maximum

SAIVAR

New Member
Joined
Jul 10, 2013
Messages
2
I have a excel file contain with client no., invoice amount and no of days. My requirement is to get the maximum days out of the multiple invoices in the last column (D). example shown below.

1623180001209.png
 

Excel Facts

Create a Pivot Table on a Map
If your data has zip codes, postal codes, or city names, select the data and use Insert, 3D Map. (Found to right of chart icons).
Welcome to Mr. Excel:

Please update your profile to reflect the version of Excel you run and use XL2BB to show your example so that retyping isn't required by someone trying to help you. Thanks.
 
Upvote 0
365 doesn't require the array function (Ctrl+Shift+Enter)

Book9
CDE
1DaysMAX (pre 365)MAX (365)
2555
3000
4888
5011
6111
7888
8666
9666
10888
11888
12044
13444
14344
15888
16777
17044
18444
Sheet1
Cell Formulas
RangeFormula
D2:D18D2=MAX((A2=$A$2:$A$18)*$C$2:$C$18)
E2:E18E2=MAX((A2=$A$2:$A$18)*$C$2:$C$18)
Press CTRL+SHIFT+ENTER to enter array formulas.
 
Upvote 0
Book1
ABCDE
1ClientNoinvoice amountdaysDesired answer
21697271555
36945042000
48313813888
58692124011
68692125111
73174466888
87789417666
92751698666
106522759888
1176167910888
1282632311044
1382632312444
1482632313344
1558463614888
1670003015777
1760583616044
1860583617444
Sheet26
Cell Formulas
RangeFormula
D2:D18D2=MAXIFS(C:C,A:A,A2)
E2:E18E2=AGGREGATE(14,6,C$2:C$18/(A$2:A$18=A2),1)


Excel 2019 and later have MAXIFS (column D). If you have an earlier version, use the column E formula. Neither requires array entry.
 
Upvote 0

Forum statistics

Threads
1,215,652
Messages
6,126,033
Members
449,281
Latest member
redwine77

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