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
- All Categories
- 14 Welcome to the Community
- Customer Resources
- 65.9K Get Help
- 429 Global Discussions
- 147 Industry Talk
- 487 Announcements
- 5.2K Ideas & Feature Requests
- 86 Brandfolder
- 151 Just for fun
- 74 Community Job Board
- 497 Show & Tell
- 33 Member Spotlight
- 2 SmartStories
- 305 Events
- 36 Webinars
- 7.3K Forum Archives
Check out the Formula Handbook template!