Reputation: 53
How to concatenate two different custom format into one cell.
1: [>10 numbers]0##"/"###-##-## Example: 061/1111-22-33
2: [<10 numbers]0##"/"###-### Example: 061/111-222
Upvotes: 0
Views: 846
Reputation: 2055
Something like that
[>999999999]"0"#"/"####-##-##;[<=999999999]"0"##"/"###-###
Upvotes: 1
Reputation: 75930
Just create two conditional formatting rules:
A1
)=LEN(A1)>=10
0##"/"###-##-##
Repeat the process for formula:
=LEN(A1)<10
with custom format 0##"/"###-###
Upvotes: 1