Hi,
in the attached file i would like to replace the "YES" in column C by a formula
The formula will check for each "code" (column A) which is the date that is most recent (max), and assign "YES" next to it..
Any idea?
Thanks a lot!
Hi,
in the attached file i would like to replace the "YES" in column C by a formula
The formula will check for each "code" (column A) which is the date that is most recent (max), and assign "YES" next to it..
Any idea?
Thanks a lot!
enter in C2 and copy down.
=IF(MAX(IF((A2=$A$2:$A$10)*($B$2:$B$10),$B$2:$B$10))=B2,"YES","")
How aboutFormula:Please Login or Register to view this content.
This should work;
Formula:Please Login or Register to view this content.
You'll need to use "Shift, CTRL and Enter" to use it, it's an array formula - If done correctly you'll see "{" and "}" at the start and end of the formula - Don't try and enter these yourself
An alternative solution if you have a lot of records and are looking for speed is to employ power query.
the attached demos your issue and a power query solution.
Alan עַם יִשְׂרָאֵל חַי
Change an Ugly Report with Power Query
Database Normalization
Complete Guide to Power Query
Man's Mind Stretched to New Dimensions Never Returns to Its Original Form
Thanks Greg - I didn't know that.
I also forgot about MAXIFS as per Fluffs answer - Still getting used to some of these new fangled things LOL
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks