IF statement with NETDAYS
I am trying to use the following formula from Excel - =IF(ISBLANK(C2),DAYS360(B2,D2),DAYS360(B2,C2))
with NETDAYS so that I can count days from Admit to Release, or if Release is blank, Date Today.
I tried =IF(ISBLANK Release@row, NETDAYS (Admit@row,[Date Today]@row), NETDAYS (Admit@row,Release@row))
Comments
-
First catch I see is that the formula ISBLANK, like all smartsheet formulas, requires parenthesis
=IF(ISBLANK(Release@row), NETDAYS (Admit@row,[Date Today]@row), NETDAYS (Admit@row,Release@row))
Next you have a space between both of your Netdays formulas and their parenthesis.
=IF(ISBLANK(Release@row), NETDAYS(Admit@row,[Date Today]@row), NETDAYS(Admit@row,Release@row))
You aren't going to achieve the same results as your excel formula as days360 in excel basically means that excel considers each month to have 30 days.
-
Thank you so much for the tips, but it is still #UNPARSEABLE
-
Do you have the columns formatted as date type?
-
Yes, I do. The formula works if I don't use IF
-
Oh, I got it to work, THANK YOU!!!
-
HI there,
I was trying to replicate this formula as I have a similar situation, but can't seem to get it to work.
I'm looking for the # days a role is open (from our Review Date)- the two scenarios for an end date:
- the role was filled and the filled date is our end date
- the role is still open and the end date should record as "today"
any help on the formula would be great!
thanks!
-
Hi @Sarah_Ko
You'll want an IF statement to check and see if the End Date is filled in or not. If it is, you can find the days between the two dates. If it's blank, then we can find the days from the Review Date to Today using the TODAY function.
Try something like this:
=IF([End Date]@row <> "", NETDAYS([Review Date]@row, [End Date]@row), NETDAYS([Review Date]@row, TODAY())
Cheers!
Genevieve
Need more help? 👀 | Help and Learning Center
こんにちは (Konnichiwa), Hallo, Hola, Bonjour, Olá, Ciao! 👋 | Global Discussions
Categories
- All Categories
- 14 Welcome to the Community
- Smartsheet Customer Resources
- 64K Get Help
- 410 Global Discussions
- 220 Industry Talk
- 459 Announcements
- 4.8K Ideas & Feature Requests
- 143 Brandfolder
- 137 Just for fun
- 57 Community Job Board
- 459 Show & Tell
- 31 Member Spotlight
- 1 SmartStories
- 298 Events
- 37 Webinars
- 7.3K Forum Archives