So, I have a string like so:
02-022.auditorium
22-222.auditorium
If a first number, or first number after the dash are 0's, I need to remove them to look like:
2-22.auditorium
22-222.auditorium
I have two formulas to remove the zeros but I'm having trouble with the logic to run them both at once. They are (A4 holds the full string 02-022.auditorium):
Remove the first 0 if exists (yes, I know I could use LEFT but I'd rather keep things as similar as possible)...
=IF(MID(A4,FIND("-",A4)-2,1)="0",REPLACE(A4,1,1,""),A4)
DISPLAYS: 2-022.auditorium
Remove the first 0 after the dash if exists...
=IF(MID(A4, FIND("-", A4)+1, 1)="0", REPLACE(A4,4,1,""), A4)
DISPLAYS: 02-22.auditorium
So... How can I combine these to remove both 0's if they exist?
Thanks for the help!
Bookmarks