Excel Formula help
Discussion
I have a sheet of data that I need to create a sequence counter based on the result of another column.
If Column A has numbers sorted numerically but repeats itself I want the column alongside it start counting and reset and the change in column A i.e:
Is this easily done?
If Column A has numbers sorted numerically but repeats itself I want the column alongside it start counting and reset and the change in column A i.e:
| A | B |
|---|---|
| 1 | 1 |
| 1 | 2 |
| 1 | 3 |
| 1 | 4 |
| 2 | 1 |
| 2 | 2 |
| 2 | 3 |
| 3 | 1 |
| 3 | 2 |
| 4 | 1 |
| 4 | 2 |
| 4 | 3 |
| 4 | 4 |
Is this easily done?
DaveH23 said:
Jasey_ said:
=IF(A2=A3, B2+1,1)
That's not working unfortunately.I can half understand how its reading but the ,1 at the end is throwing me.
If there's a lot of data I think this one will calculate faster than the COUNTIF approach as COUNTIF has to a bigger check with each successive line, but unless you have thousands of lines it's not likely to be an issue.
Gassing Station | Computers, Gadgets & Stuff | Top of Page | What's New | My Stuff


