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
- Customer Resources
- 64.8K Get Help
- 434 Global Discussions
- 138 Industry Talk
- 470 Announcements
- 4.9K Ideas & Feature Requests
- 129 Brandfolder
- 148 Just for fun
- 65 Community Job Board
- 486 Show & Tell
- 33 Member Spotlight
- 2 SmartStories
- 300 Events
- 36 Webinars
- 7.3K Forum Archives
Check out the Formula Handbook template!