H Hans Knudsen Member Mar 19, 2024 #1 In the attached workbook I have made some comments in column AB which I hope explain the task. Attachments MAX_per_ID.xlsx 24.5 KB · Views: 7
Hui Excel Ninja Staff member Mar 19, 2024 #2 Z2: =IF(COUNTIF($A$2:$A2,A2)>1,"",COUNTIFS($A$2:$A$14,A2)) copy Z2 down
H Hans Knudsen Member Mar 19, 2024 #3 Thank you, but your formula returns exactly the same as the one I already had in column B. What I was after was something better than my formulas in column Z, if possible.
Thank you, but your formula returns exactly the same as the one I already had in column B. What I was after was something better than my formulas in column Z, if possible.
p45cal Well-Known Member Mar 19, 2024 #4 In attached, see cell AA2, copy down: Code: =IF(COUNT(d[@['#]])=1,MAX(FILTER(d[[Over- skridelse 5-6 min.]:[Over- skridelse > 7 min.]],d[ID]=A2)),"") Independently, see Power Query table at cell AF2. Needs refreshing if the source data changes by right-clicking the table and choosing Refresh. Attachments 1710867822541.png 3.2 KB · Views: 0 Chandoo56452MAX_per_ID.xlsx 33.2 KB · Views: 3
In attached, see cell AA2, copy down: Code: =IF(COUNT(d[@['#]])=1,MAX(FILTER(d[[Over- skridelse 5-6 min.]:[Over- skridelse > 7 min.]],d[ID]=A2)),"") Independently, see Power Query table at cell AF2. Needs refreshing if the source data changes by right-clicking the table and choosing Refresh.
H Hans Knudsen Member Mar 20, 2024 #5 @p45cal Thank you very much. I like the MAX(FILTER solution and will see if I am able to understand the code in Power Query's Advanced Editor.
@p45cal Thank you very much. I like the MAX(FILTER solution and will see if I am able to understand the code in Power Query's Advanced Editor.