Variance on task list
I have a sheet that is a running list of tasks that gets added to weekly. I am looking to figure out how to show how early, or late, a task is completed in relation to the due date. If the task is on time, I want to show 0.
I have been trying to use this formula
=NETWORKDAYS([Due Date]@row, [Actual Finish]@row)  1
This works fine if the task is late. If the task is early, then the calculation is off by several days.
I tried combining several formulas based on what I have read elsewhere in the forum and now I just get #INCORRECT ARGUMENT.
=IF([Actual Finish]@row = [Due Date]@row, 0, IF([Due Date]@row < [Actual Finish]@row), =NETWORKDAYS([Due Date]@row, [Actual Finish]@row)1, IF([Due Date]@row, [Actual Finish]@row) > 0, =NETWORKDAYS([Due Date]@row, [Actual Finish]@row)+1)
Any suggestions?
Best Answer

Hi @M38a1
There's a couple things to clean up here but you're on the right track!
Your first statement is correct, If this, then 0, Otherwise, this other formula.
However for your second and third IF statements, we'll want to adjust where your closing parentheses are and take away some of your = signs.
I'll break down each statement individually for your three outcomes, then we'll put them together.
First Statement  No Change:
=IF([Actual Finish]@row = [Due Date]@row, 0,
Second Statement  take out the ) and =
IF([Due Date]@row < [Actual Finish]@row, NETWORKDAYS([Due Date]@row, [Actual Finish]@row) 1,
Final Statement  we can jump right to the only other option you want to return
NETWORKDAYS([Due Date]@row, [Actual Finish]@row) +1
All Together:
=IF([Actual Finish]@row = [Due Date]@row, 0, IF([Due Date]@row < [Actual Finish]@row, NETWORKDAYS([Due Date]@row, [Actual Finish]@row) 1, NETWORKDAYS([Due Date]@row, [Actual Finish]@row) +1))
Let me know if this makes sense and works for you!
Cheers,
Genevieve
Need more help? 👀  Help and Learning Center
こんにちは (Konnichiwa), Hallo, Hola, Bonjour, Olá, Ciao! 👋  Global Discussions
Answers

Hi @M38a1
There's a couple things to clean up here but you're on the right track!
Your first statement is correct, If this, then 0, Otherwise, this other formula.
However for your second and third IF statements, we'll want to adjust where your closing parentheses are and take away some of your = signs.
I'll break down each statement individually for your three outcomes, then we'll put them together.
First Statement  No Change:
=IF([Actual Finish]@row = [Due Date]@row, 0,
Second Statement  take out the ) and =
IF([Due Date]@row < [Actual Finish]@row, NETWORKDAYS([Due Date]@row, [Actual Finish]@row) 1,
Final Statement  we can jump right to the only other option you want to return
NETWORKDAYS([Due Date]@row, [Actual Finish]@row) +1
All Together:
=IF([Actual Finish]@row = [Due Date]@row, 0, IF([Due Date]@row < [Actual Finish]@row, NETWORKDAYS([Due Date]@row, [Actual Finish]@row) 1, NETWORKDAYS([Due Date]@row, [Actual Finish]@row) +1))
Let me know if this makes sense and works for you!
Cheers,
Genevieve
Need more help? 👀  Help and Learning Center
こんにちは (Konnichiwa), Hallo, Hola, Bonjour, Olá, Ciao! 👋  Global Discussions

Thank you Genevieve! Your answer works brilliantly. And thank you for taking the time to break it out into individual statements so I can better understand the process for the next set of formulas that I am working on.
Best regards,
Eric

No problem, Eric! I'm glad I could help. 🙂
Need more help? 👀  Help and Learning Center
こんにちは (Konnichiwa), Hallo, Hola, Bonjour, Olá, Ciao! 👋  Global Discussions
Help Article Resources
Categories
 All Categories
 14 Welcome to the Community
 Smartsheet Customer Resources
 63.8K Get Help
 410 Global Discussions
 219 Industry Talk
 457 Announcements
 4.7K Ideas & Feature Requests
 141 Brandfolder
 136 Just for fun
 57 Community Job Board
 459 Show & Tell
 31 Member Spotlight
 1 SmartStories
 297 Events
 37 Webinars
 7.3K Forum Archives
Check out the Formula Handbook template!