MFish
Board Regular
- Joined
- May 9, 2019
- Messages
- 76
Hi,
My code I currently have...
Basically if the value in the cell next to it is the same as the one above then the value of the cell the formula is in, it'll be the same number correlating to the one above... Makes it easier for me to run a conditional format for unique ID's. Now, this is great and all but I ran into a barrier... I'd like for this formula to ONLY read the first 6 characters in the string. They will always go...
X = Letter
- = -
1 = Number
XXX-11
Reason why I need it to read the first 6 characters is because I'm going to concatenate two cells together to make it like XXX-11 X. I just need it to read the first string of 6 characters to tell me if it's similar.
My code I currently have...
Code:
=IF(OFFSET(A8,0,1)=OFFSET(A8,-1,1),OFFSET(A8,-1,0),OFFSET(A8,-1,0)+1)
Basically if the value in the cell next to it is the same as the one above then the value of the cell the formula is in, it'll be the same number correlating to the one above... Makes it easier for me to run a conditional format for unique ID's. Now, this is great and all but I ran into a barrier... I'd like for this formula to ONLY read the first 6 characters in the string. They will always go...
X = Letter
- = -
1 = Number
XXX-11
Reason why I need it to read the first 6 characters is because I'm going to concatenate two cells together to make it like XXX-11 X. I just need it to read the first string of 6 characters to tell me if it's similar.