how do I return a blank cell if source is empty

lux
✭✭✭
I have the formula: =([projected cost]@row - [Fedex Charged]@row) / MAX([projected cost]@row:[Fedex Charged]@row)
I can not wrap my head around having the formula return a blank answer and leaving the cell empty if one of the source cells are empty. Not quite understanding how to use either COUNTIF and/or the ISBLANK function.
Answers
-
Try this:
=IF(OR(ISBLANK([projected cost]@row), ISBLANK([Fedex Charged]@row)), "", ([projected cost]@row - [Fedex Charged]@row) / MAX([projected cost]@row:[Fedex Charged]@row) )
-
Thanks Sameer. I got it to work with: =IF(ISBLANK([projected cost]@row), "", IF(ISBLANK([Actual Fedex Charge]@row), "", ([projected cost]@row - [Actual Fedex Charge]@row) / MAX([projected cost]@row:[Actual Fedex Charge]@row)))
but I like your solution better. Less typing.
Help Article Resources
Categories
- All Categories
- 14 Welcome to the Community
- Customer Resources
- 66.5K Get Help
- 433 Global Discussions
- 152 Industry Talk
- 494 Announcements
- 5.3K Ideas & Feature Requests
- 85 Brandfolder
- 155 Just for fun
- 77 Community Job Board
- 506 Show & Tell
- 34 Member Spotlight
- 2 SmartStories
- 307 Events
- 37 Webinars
- 7.3K Forum Archives
Want to practice working with formulas directly in Smartsheet?
Check out the Formula Handbook template!
Check out the Formula Handbook template!