DougStroud
Well-known Member
- Joined
- Aug 16, 2005
- Messages
- 2,968
In this range I have a series of string values that I want to remove the last two characters if they are the two Greater Than Signs ">>"
My formula only returns the length count.
Accessories>>Youth>>
Accessories>>Accessories>>
Accessories>>Accessories>>Wristbands
=IF(RIGHT(D4,2)=">>",LEN(D4)-2,D4)
=IF(RIGHT(D5,2)=">>",LEN(D5)-2,D5)
=IF(RIGHT(D6,2)=">>",LEN(D6)-2,D6)
I get the following results, for D4 and D5 I want the text string.
18
24
Accessories>>Accessories>>Wristbands
I recoginize I need to get out of the LEN function to return the text, but don't see how to get there.
thanks once again,
My formula only returns the length count.
Accessories>>Youth>>
Accessories>>Accessories>>
Accessories>>Accessories>>Wristbands
=IF(RIGHT(D4,2)=">>",LEN(D4)-2,D4)
=IF(RIGHT(D5,2)=">>",LEN(D5)-2,D5)
=IF(RIGHT(D6,2)=">>",LEN(D6)-2,D6)
I get the following results, for D4 and D5 I want the text string.
18
24
Accessories>>Accessories>>Wristbands
I recoginize I need to get out of the LEN function to return the text, but don't see how to get there.
thanks once again,