brockk
Board Regular
- Joined
- Jul 1, 2006
- Messages
- 170
- Office Version
- 365
- 2019
- 2016
- 2013
- Platform
- Windows
Hi all, can anyone tell me what's wrong with the syntax of the following formula:
CELL E4: =IF(H4="","",IF(LEN(H4)<2,"MH-09-10-00"&H4),IF(LEN(H4)=2,"MH-09-10-0"&H4,"MH-09-10-"&H4)
what i am trying to accomplish is, depending on the length (digits) of cell h4 is what is going to determine which actual format I need to show up in E4. I keep getting a missing parenthesis or comma message......but really don't know where. Any help is appreciated.
the format I need is "MH-09-10-###" (------ ### ---> it is 3 digits long)
p.d. if there's a way that this formula can be simplified I would appreciate that too.
CELL E4: =IF(H4="","",IF(LEN(H4)<2,"MH-09-10-00"&H4),IF(LEN(H4)=2,"MH-09-10-0"&H4,"MH-09-10-"&H4)
what i am trying to accomplish is, depending on the length (digits) of cell h4 is what is going to determine which actual format I need to show up in E4. I keep getting a missing parenthesis or comma message......but really don't know where. Any help is appreciated.
the format I need is "MH-09-10-###" (------ ### ---> it is 3 digits long)
p.d. if there's a way that this formula can be simplified I would appreciate that too.
Last edited: