Help needed please, I want to have incremental number 1 2 3 ...... in column A but this should restart from 1 again if the value in column B changed, as below.
![]()
Please Login or Register to view this content.
Help needed please, I want to have incremental number 1 2 3 ...... in column A but this should restart from 1 again if the value in column B changed, as below.
![]()
Please Login or Register to view this content.
Last edited by razaas; 09-05-2011 at 04:16 AM. Reason: Moderator advised
Enter the three first values - Copy the range -Select the range to copy to - Paste
If you have headers, in cell A2:
=IF(B2=B1,A1+1,1)
And fill down
try this: =COUNTIF($B$2:B2, B2)
What you expect if some number appear latter?
Check what this formula will retun. In case of number 7 it will continue at number 4
![]()
Please Login or Register to view this content.
While above appraoch will return 1.
![]()
Please Login or Register to view this content.
Last edited by zbor; 09-05-2011 at 04:05 AM.
Never use Merged Cells in Excel
Tone640 & Zbor, Thanks a lot for such great help, not only my problem solved but also I learned two new formulas. As the number in ColB not going to repeat again later, therefore Tone640's formula is suitable. Thanks again and have a great day.
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks