Formula to calculate largest value, only when applicable

fairchance

Board Regular
Joined
Jan 4, 2015
Messages
110
Dear All

Hi

We would like to come up with latest date for each site , but we only need the largest date to show up in the summary section only when all dates are completed for each site, otherwise it should show "Pending")

See thel link below for further details

https://www.dropbox.com/s/72le2f7kdugv90a/Dates.xlsx?dl=0

Kindly help me out

Regards

Shehbaz H.
 
Ok ok... I see what happened. In cell B5 on Sheet2, enter the following formula and CTRL+SHIFT+ENTER:

=IF(COUNTIFS($B$11:$B$58,"dd-mmm-yyyy",$A$11:$A$58,A5)>0,"pending",MAX(IF($A$11:$A$58=A5,$B$11:$B$58)))
 
Upvote 0

Excel Facts

Enter current date or time
Ctrl+: enters current time. Ctrl+; enters current date. Use Ctrl+: Ctrl+; Enter for current date & time.
Dear All

This formula is without Ctrl+Shift+Enter

=IF(COUNTIFS($A$11:$A$58,A3,$B$11:$B$58,"dd-mmm-yyyy")>0,"pending",AGGREGATE(14,6,$B$11:$B$58/($A$11:$A$58=A3),1))

Cheers up
 
Upvote 0

Forum statistics

Threads
1,214,601
Messages
6,120,462
Members
448,965
Latest member
grijken

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