Hi all,
I need this expeted result
without VBA, please
Thanks
8.gif
Hi all,
I need this expeted result
without VBA, please
Thanks
8.gif
Last edited by Yaghoub61; 12-15-2021 at 11:27 AM.
Notice:
my main language is not English
You can use this in C2:
=IF(COUNTIF(B$2:B2,B2)=1,1,IF(B2=B1,C1,MAXIFS(C$1:C1,B$1:B1,B2)+1))
If you are still using XL2010 as your profile states, then you won't have access to the MAXIFS function, so you will need to use an array formula instead.
Hope this helps.
Pete
2010 array formula
=IF(COUNTIF(B$2:B2,B2)=1,1,IF(B2=B1,C1,MAX(IF(B$1:B1=B2,$C$1:$C1)+1)))
Enter with Ctrl+Shift+Enter
If that takes care of your original question, please select Thread Tools from the menu link above and mark this thread as SOLVED.
This MIGHT be an ordinary formula in Excel 2010... but I am not 100% sure.
IF(COUNTIF(B$2:B2,B2)=1,1,IF(B2=B1,C1,AGGREGATE(14,6,$C$1:$C1/(B$1:B1=B2),1)+1))
Glenn
None of us get paid for helping you... we do this for fun. So DON'T FORGET to say "Thank You" to all who have freely given some of their time to help YOU
@Glenn,
MIGHTy right! works in 2010.
Woo Hoo! It's amazing how quickly you forget what does/does not require array entry...
AGGREGATE is like SUMPRODUCT - they work on arrays, but don't need to be array-entered.
Pete
Please try
=IF(B2=B1,C1,IFERROR(LOOKUP(99,C$1:C1/(B$1:B1=B2)),0)+1)
Thank you all
Glad to help, and thanks for the rep.
Pete
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks