Another If Formula

=IF(NOT(ISBLANK([Payment Type]@row)),CONCATENATE([Payment Type]@row,"-",TEXT([Invoice Date]@row,"MM/DD/YY"),"-PD-",TEXT([Posted Date]@row,"MM/DD/YY")),"")
I cant figure out whats wrong with this formula. The column names all work and are named appropriately
Best Answer
-
=IF(NOT(ISBLANK([Payment Type]@row)), [Payment Type]@row + "-" + [Invoice Date]@row + "-PD-" + [Posted Date]@row, "")
[Payment Type]@row + "-"
:- Combines the value ofΒ
[Payment Type]@row
Β with a hyphen.
- Combines the value ofΒ
[Invoice Date]@row
:- Includes the invoice date directly, using the sheet's default date format.
"-PD-" + [Posted Date]@row
:- Adds the prefixΒ
-PD-
Β before including the posted date.
- Adds the prefixΒ
Answers
-
=IF(NOT(ISBLANK([Payment Type]@row)), [Payment Type]@row + "-" + [Invoice Date]@row + "-PD-" + [Posted Date]@row, "")
[Payment Type]@row + "-"
:- Combines the value ofΒ
[Payment Type]@row
Β with a hyphen.
- Combines the value ofΒ
[Invoice Date]@row
:- Includes the invoice date directly, using the sheet's default date format.
"-PD-" + [Posted Date]@row
:- Adds the prefixΒ
-PD-
Β before including the posted date.
- Adds the prefixΒ
-
Hello Samuel,
The CONCATENATE and TEXT Functions are not supported in Smartsheet. Use the + operator to concatenate strings and dates directly.
You can try something like this:
=IF(NOT(ISBLANK([Payment Type]@row)), [Payment Type]@row + "-" + [Invoice Date]@row + "-PD-" + [Posted Date]@row, "")
Also, you can check the Smartheet Functions List here.
Hope this helps!
Need more information? π | Help and Learning Center
γγγ«γ‘γ― (Konnichiwa), Hallo, Hola, Bonjour, OlΓ‘, Ciao! π | Global Discussions
Help Article Resources
Categories
Check out the Formula Handbook template!