NORRILLOUS
New Member
- Joined
- Apr 10, 2014
- Messages
- 36
- Office Version
- 365
- Platform
- Windows
I have been trying to get a formula to work.
the logic I am trying to achieve is something like "If my serial number is found in my range then add "+1" to the end digit of the string."
First I figured out how to tell if the result of a formula already exists in a column. The Formula below returns True.
The problem is I can have multiple serial numbers show as the same but I want them to increase as more is added on the same date. So I added the above into an if statement and added +1 but I am stuck here. It will Show the serial number with .0 to start and the second will be .1 but the third is null.
I appreciate any help and Thank you in advance.
the logic I am trying to achieve is something like "If my serial number is found in my range then add "+1" to the end digit of the string."
First I figured out how to tell if the result of a formula already exists in a column. The Formula below returns True.
VBA Code:
=ISNUMBER(MATCH(A8&"-"&D8&"."&LEFT(E8,1)&".0",$F$2:$F$1000,0))
The problem is I can have multiple serial numbers show as the same but I want them to increase as more is added on the same date. So I added the above into an if statement and added +1 but I am stuck here. It will Show the serial number with .0 to start and the second will be .1 but the third is null.
VBA Code:
=IF(ISNUMBER(MATCH(A8&"-"&D8&"."&LEFT(E8,1)&".0",$F$2:$F$1000,0)),A8&"-"&D8&"."&LEFT(E8,1)&"."&"0"+1,)
I appreciate any help and Thank you in advance.