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!
Best Answer
-
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"))
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.
-
Thanks
-
Happy to help. 👍️
-
Hey @Paul Newcome I was wondering if you could help me with the is blank formula. I am not sure what I am missing but I want it to ignore if the cell is blank. Here is what I am using:
=IF(ABS([Anticipated Fed TC (FM)]@row - [Federal Credits]@row) > 10, "Alert", "Ok", IF(ISBLANK)([Federal Credits]@row), "Ok")
-
@sholmes You just need to remove the closing parenthesis immediately after ISBLANK.
-
I need it was something simple that I was overlooking. Thank you!
Help Article Resources
Categories
- All Categories
- 14 Welcome to the Community
- Customer Resources
- 65.5K Get Help
- 448 Global Discussions
- 145 Industry Talk
- 481 Announcements
- 5.1K Ideas & Feature Requests
- 85 Brandfolder
- 152 Just for fun
- 73 Community Job Board
- 492 Show & Tell
- 33 Member Spotlight
- 2 SmartStories
- 304 Events
- 37 Webinars
- 7.3K Forum Archives
Check out the Formula Handbook template!