If statements with currency positive and negative and needing value
I'm having to try to create several formulas so that I can in turn create triggers. I need to say if there is a value in cell A with a difference of $1 (positive or negative) from cell A and cell B I want it to say notify, if not say no. Anyone have a suggestion. I had
=IF([Cash Distribution (AM)]@row - [Received Cash Distributions (FM)]@row >= 1, "notify", "No")
which works but doesn't take account of a value or the negative $1.
Thanks in advance!
Answers
-
Try an ABS function. This makes all numbers (positive and negative) positive numbers. This should do the trick for you.
=IF(ABS([Cash Distribution (AM)]@row - [Received Cash Distributions (FM)]@row) >= 1, "notify", "No")
-
Thanks, it still is giving me an issue if the cell is blank. Sometimes all files are not in so if it's blank I don't want it to run the formula, only run when a value is added. Is that possible?
-
Give this a go then:
=IF(AND([Cash Distribution (AM)]@row <> "", [Cash Distribution (FM)]@row <> ""), IF(ABS([Cash Distribution (AM)]@row - [Received Cash Distributions (FM)]@row) >= 1, "notify", "No"))
-
Thanks, it didn't work - give me the unparseable error?
-
I may have mistyped a column name. Double check those first.
Help Article Resources
Categories
- All Categories
- 14 Welcome to the Community
- Customer Resources
- 64.9K Get Help
- 439 Global Discussions
- 138 Industry Talk
- 471 Announcements
- 4.9K Ideas & Feature Requests
- 129 Brandfolder
- 148 Just for fun
- 68 Community Job Board
- 488 Show & Tell
- 33 Member Spotlight
- 2 SmartStories
- 300 Events
- 36 Webinars
- 7.3K Forum Archives
Check out the Formula Handbook template!