Stuck on If Statements
Hi team,
I'm building a dashboard and I need to show the current metric. I thought I'd show this by showing each month (for a chart) and using this formula to obtain the current:
=IF(DEC3 = "", NOV3, IF(NOV3 = "", OCT3, IF(OCT3 = "", SEP3, IF(SEP3 = "", AUG3, IF(AUG3 = "", JUL3, IF(JUL3 = "", JUN3, IF(JUN3 = "", MAY3, IF(MAY3 = "", APR3, IF(APR3 = "", MAR3, IF(MAR3 = "", FEB3, IF(FEB3 = "", JAN3, DEC3)))))))))))
See screenshot
To test, I start by deleting Dec, then Nov, then Oct. By the time I delete Nov - my Current shows blank.
Any ideas?
Tags:
Comments
-
Try something along the lines of this...
=INDEX(JAN@row:DEC@row, 1, COUNTIFS(JAN@row:DEC@row, NOT(ISBLANK(@cell))))
Help Article Resources
Categories
- All Categories
- 14 Welcome to the Community
- Smartsheet Customer Resources
- 64.3K Get Help
- 423 Global Discussions
- 221 Industry Talk
- 461 Announcements
- 4.8K Ideas & Feature Requests
- 143 Brandfolder
- 143 Just for fun
- 59 Community Job Board
- 462 Show & Tell
- 32 Member Spotlight
- 1 SmartStories
- 300 Events
- 39 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!