Hi There!
I am trying to write a formula that allows me to place a dash before the last character in a cell text if it is an A,B,C etc. For example, if I have a sku that reads JH004A and I would like a formula that will populate another cell with JH004-A. IF it doesn't contain A,B,C etc. I want the other cell to read False. So far this formula =IF(AND(RIGHT(A2,1)="B"),LEFT(A2,LEN(A2)-1)&"-"&RIGHT(A2,1)) works but only if the end character is a "B", I can't figure out had to make it work if the end character is an A, or C. Any help would be greatly appreciated!! Thank you!
I am trying to write a formula that allows me to place a dash before the last character in a cell text if it is an A,B,C etc. For example, if I have a sku that reads JH004A and I would like a formula that will populate another cell with JH004-A. IF it doesn't contain A,B,C etc. I want the other cell to read False. So far this formula =IF(AND(RIGHT(A2,1)="B"),LEFT(A2,LEN(A2)-1)&"-"&RIGHT(A2,1)) works but only if the end character is a "B", I can't figure out had to make it work if the end character is an A, or C. Any help would be greatly appreciated!! Thank you!