If blank, populate cell, if not blank then ignore.
Can't quite complete this formula. I want the formula cell to copy the "Company name" if true (the box is checked), but I want it to remain what it is, if false (not checked). But I get an "Invalid column value" error. Maybe an IF and IsBlank combination? I can't get that to work either.
=IF([Ship to info the same as Bill to?]@row, [Company Name]@row, [Ship to info the same as Bill to?]1)
Answers
-
A formula can't reference the cell it is in. You can't put a formula into a cell telling it not to change value, because no value has been set yet. So you need to tell the formula what the value should be if the Ship to info the same as Bill to? box is checked, and what it should be if it's unchecked (whether that's a static value, another formula, a value from another cell, or just left blank.
The syntax for IF is: =IF(logical expression, value if true, value if false)
It would be structured something like this:
=IF([Ship to info the same as Bill to?]@row = 1, [Company Name]@row, include a value, formula, or cell reference here)
In English, if the "Ship to info the same as Bill to?" box on this row is checked, put the Company Name value from this row in this cell, otherwise, put this other value in this cell.
Regards,
Jeff Reisman
Link: Smartsheet Functions Help Pages Link: Smartsheet Formula Error Messages
If my answer helped solve your issue, please mark it as accepted so that other users can find it later. Thanks!
-
ok that makes sense, but I need the "other value" to be whatever is already in the cell. Sounds like that would be a different formula if there isn't an option to have an IF essentially stop after "true" or a code to retain current info?
-
Let me see if I can make this clear. You're looking for a formula that cannot exist in Smartsheet. If you have any value in a cell already, you can't have a formula in that same field. If you have a formula in a field, you can't say if the expression is false, leave this the value it was before... because it never was a value in the first place.
Regards,
Jeff Reisman
Link: Smartsheet Functions Help Pages Link: Smartsheet Formula Error Messages
If my answer helped solve your issue, please mark it as accepted so that other users can find it later. Thanks!
-
right, so I'd need the data in another column...which would then easily work with the IF formulas. thanks
-
Bingo!
Regards,
Jeff Reisman
Link: Smartsheet Functions Help Pages Link: Smartsheet Formula Error Messages
If my answer helped solve your issue, please mark it as accepted so that other users can find it later. Thanks!
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!