Flag the latest correct value from grouped rows with criteria

dazmisc

New Member
Joined
Dec 12, 2023
Messages
3
Office Version
  1. 365
Platform
  1. Windows
Help please.

Looking for a formula to define col D.
I want to know the latest known 'Value' from colC (where it is not 0, UNLESS there is no other value). Grouped by 'ID' (ColA), and ordered by date (ColB)

To get the latest date I can use "=IF(MAXIFS(B:B,A:A,A2)=B2,"Current","")", but I need to exclude any rows that have a 0 value, unless there are no rows in a group that have anything other than a zero!?

1702397744621.png
 

Excel Facts

Will the fill handle fill 1, 2, 3?
Yes! Type 1 in a cell. Hold down Ctrl while you drag the fill handle.
How about
Excel Formula:
=IF(AND(C2=MAXIFS(C:C,A:A,A2),COUNTIFS(A$2:A2,A2,C$2:C2,C2)=1),"Correct","")
 
Upvote 0
Thanks Fluff, sorry I should have inlcuded another scenario in this to show why the Date col is important...

1702401850285.png
 
Upvote 0
Ok, how about
Excel Formula:
=IF(B2=MAXIFS(B:B,A:A,A2,C:C,IF(SUMIFS(C:C,A:A,A2),">0",">=0")),"Correct","")
 
Upvote 0
Solution
You're welcome & thanks for the feedback.
 
Upvote 0

Forum statistics

Threads
1,223,893
Messages
6,175,240
Members
452,621
Latest member
Laura_PinksBTHFT

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