excel_2009
Active Member
- Joined
- Sep 14, 2009
- Messages
- 318
Hi Excel gurus,
I have the following formula which assigns a number to a cell
It works great however I have a small issue in relation to when a blank value is in a cell, I'd like for the numbers to reset to 1 and increment (instead of continuing to increment irresepctive of coming across a blank cell):
Desired result:
[TABLE="width: 500"]
<tbody>[TR]
[TD]COLUMN E
[/TD]
[TD]FORMULA COLUMN
[/TD]
[/TR]
[TR]
[TD]A
[/TD]
[TD]1
[/TD]
[/TR]
[TR]
[TD]B
[/TD]
[TD]2
[/TD]
[/TR]
[TR]
[TD]C
[/TD]
[TD]3
[/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]E
[/TD]
[TD]1
[/TD]
[/TR]
[TR]
[TD]D
[/TD]
[TD]2
[/TD]
[/TR]
[TR]
[TD]G
[/TD]
[TD]3
[/TD]
[/TR]
[TR]
[TD]H
[/TD]
[TD]4
[/TD]
[/TR]
[TR]
[TD]I
[/TD]
[TD]5
[/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]Y
[/TD]
[TD]1
[/TD]
[/TR]
[TR]
[TD]U
[/TD]
[TD]2
[/TD]
[/TR]
[TR]
[TD]I
[/TD]
[TD]3
[/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[/TR]
</tbody>[/TABLE]
Instead of the following current issue:
[TABLE="width: 500"]
<tbody>[TR]
[TD]COLUMN E
[/TD]
[TD]FORMULA COLUMN
[/TD]
[/TR]
[TR]
[TD]A
[/TD]
[TD]1
[/TD]
[/TR]
[TR]
[TD]B
[/TD]
[TD]2
[/TD]
[/TR]
[TR]
[TD]C
[/TD]
[TD]3
[/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]E
[/TD]
[TD]4
[/TD]
[/TR]
[TR]
[TD]D
[/TD]
[TD]5
[/TD]
[/TR]
[TR]
[TD]G
[/TD]
[TD]6
[/TD]
[/TR]
[TR]
[TD]H
[/TD]
[TD]7
[/TD]
[/TR]
[TR]
[TD]I
[/TD]
[TD]8
[/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]Y
[/TD]
[TD]9
[/TD]
[/TR]
[TR]
[TD]U
[/TD]
[TD]10
[/TD]
[/TR]
[TR]
[TD]I
[/TD]
[TD]11
[/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[/TR]
</tbody>[/TABLE]
Please can someone help?
I have the following formula which assigns a number to a cell
Code:
=IF(E2="","",COUNTA($E$2:E2))
It works great however I have a small issue in relation to when a blank value is in a cell, I'd like for the numbers to reset to 1 and increment (instead of continuing to increment irresepctive of coming across a blank cell):
Desired result:
[TABLE="width: 500"]
<tbody>[TR]
[TD]COLUMN E
[/TD]
[TD]FORMULA COLUMN
[/TD]
[/TR]
[TR]
[TD]A
[/TD]
[TD]1
[/TD]
[/TR]
[TR]
[TD]B
[/TD]
[TD]2
[/TD]
[/TR]
[TR]
[TD]C
[/TD]
[TD]3
[/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]E
[/TD]
[TD]1
[/TD]
[/TR]
[TR]
[TD]D
[/TD]
[TD]2
[/TD]
[/TR]
[TR]
[TD]G
[/TD]
[TD]3
[/TD]
[/TR]
[TR]
[TD]H
[/TD]
[TD]4
[/TD]
[/TR]
[TR]
[TD]I
[/TD]
[TD]5
[/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]Y
[/TD]
[TD]1
[/TD]
[/TR]
[TR]
[TD]U
[/TD]
[TD]2
[/TD]
[/TR]
[TR]
[TD]I
[/TD]
[TD]3
[/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[/TR]
</tbody>[/TABLE]
Instead of the following current issue:
[TABLE="width: 500"]
<tbody>[TR]
[TD]COLUMN E
[/TD]
[TD]FORMULA COLUMN
[/TD]
[/TR]
[TR]
[TD]A
[/TD]
[TD]1
[/TD]
[/T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