Trouble with IF Statement
I am trying to incorporate two functioning formulas into one.
The formula I was using and works is:
=(([Cost based on Rate] @row - [Deductible Remaining] @row) * [Co-ins% or Co-pay$]@row) + [Deductible Remaining] @row
However, that doesn't account for if the Co-insurance% or Co-pay$ field is blank. So I made this formula that works:
=IF(ISBLANK([Co-ins% or Co-pay$]@row), [Cost based on Rate] @row - [Deductible Remaining] @row, "false")
I combined them this way but it's not working:
=IF(ISBLANK([Co-ins% or Co-pay$]@row), [Cost based on Rate] @row - [Deductible Remaining] @row, (([Cost based on Rate] @row - [Deductible Remaining] @row) * [Co-ins% or Co-pay$]@row) + [Deductible Remaining] @row)
Any help is appreciated!
Best Answer
-
This worked for me when I recreated it.
=IF(ISBLANK([Co-ins% or Co-pay$]@row), [Cost Based on Rate]@row - [Deductible Remaining]@row, (([Cost Based on Rate]@row - [Deductible Remaining]@row) * [Co-ins% or Co-pay$]@row) + [Deductible Remaining]@row)
it looks like there were spaces between the column name and @row that might have been the issue.
Answers
-
This worked for me when I recreated it.
=IF(ISBLANK([Co-ins% or Co-pay$]@row), [Cost Based on Rate]@row - [Deductible Remaining]@row, (([Cost Based on Rate]@row - [Deductible Remaining]@row) * [Co-ins% or Co-pay$]@row) + [Deductible Remaining]@row)
it looks like there were spaces between the column name and @row that might have been the issue.
-
@RossL Thank you! I knew I was close!
Help Article Resources
Categories
- All Categories
- 14 Welcome to the Community
- Smartsheet Customer Resources
- 63K Get Help
- 380 Global Discussions
- 212 Industry Talk
- 442 Announcements
- 4.6K Ideas & Feature Requests
- 140 Brandfolder
- 129 Just for fun
- 130 Community Job Board
- 449 Show & Tell
- 30 Member Spotlight
- 1 SmartStories
- 305 Events
- 34 Webinars
- 7.3K Forum Archives
Check out the Formula Handbook template!