
Anonymous
Not applicable
2018-08-30
07:51 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Count digit thru expression
How can I write this thru expression?
if 'number' has 4 digit, copy 'number'
if 'number' is not 4 digit, copy 'Loc' that is 4 digit else nul()
Number Loc Desired result
0021 AU 0021
35697 NZ -
PH 1234 1234
1,261 Views
1 Solution
Accepted Solutions


Partner Ambassador/MVP
2018-08-30
08:30 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
if(len(Number) = 4 and IsNum(Number), Number,
if(len(Loc) = 4 and IsNum(Loc), Loc
Null()))
-Rob
1,209 Views
3 Replies


Partner Ambassador/MVP
2018-08-30
08:30 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
if(len(Number) = 4 and IsNum(Number), Number,
if(len(Loc) = 4 and IsNum(Loc), Loc
Null()))
-Rob
1,210 Views

Anonymous
Not applicable
2018-08-30
08:53 PM
Author
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi Rob,
I'm not sure why but it gives me '-' on all records.
1,209 Views

Anonymous
Not applicable
2018-08-30
11:14 PM
Author
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
i've already figured it out. the 'Number' field is a string. i converted it to number format and your expression worked! thank you
1,209 Views
