JuicyMusic
Board Regular
- Joined
- Jun 13, 2020
- Messages
- 210
- Office Version
- 365
- Platform
- Windows
Hi gurus, I know the formula I'm asking for is not great...but I can't come up with anything else to solve my problem.
FYI - We have hundreds of 11-digit general ledger codes and 7-digit sub-ledger codes. I'm providing 1 example for each.
Formula needed: If the target cell contains this type of text 2007.030 (4 digits--a period--3 digits).....Then return this text: "Sub-Ledger Code for 16360045"
If the target cell contains this type of text 60070055600 w/ exactly 11 digits (no periods).....Then return this number 60070055600.
If target cell doesn't contain either of the above.....Then return something like..."Pls check GL coding".
Suggestions are welcome.
Thank you so much!
Juicy,
FYI - We have hundreds of 11-digit general ledger codes and 7-digit sub-ledger codes. I'm providing 1 example for each.
Formula needed: If the target cell contains this type of text 2007.030 (4 digits--a period--3 digits).....Then return this text: "Sub-Ledger Code for 16360045"
If the target cell contains this type of text 60070055600 w/ exactly 11 digits (no periods).....Then return this number 60070055600.
If target cell doesn't contain either of the above.....Then return something like..."Pls check GL coding".
Suggestions are welcome.
Thank you so much!
Juicy,