Help with Workday Formula

snaplink22

Board Regular
Joined
Jul 6, 2018
Messages
129
Hello,

I have the following formula: =IF(D3="","",WORKDAY(D3,F3-1)). This allows me to determine how many days out from the Start Date the Estimated Completion Date should be, however, if the Number of Hours column is a number 1 or less I want the value in Column G to return the same date as what is listed in Column D. This would show anything up to and less than a full days work would be completed the same day.

1589487910452.png
 

Excel Facts

What do {} around a formula in the formula bar mean?
{Formula} means the formula was entered using Ctrl+Shift+Enter signifying an old-style array formula.
You could just nest another IF...
=IF(D3="","",IF(E3<=1,D3,WORKDAY(D3,F3-1)))
 
Upvote 0
You could just nest another IF...
=IF(D3="","",IF(E3<=1,D3,WORKDAY(D3,F3-1)))

Thanks for your help Mark. I found that this formula will change the date to the next day if 8.01 or more is entered, while keeping it to the same date if 8.00 or less is entered:
=IF(D3="","",IF(E3<=8,D3,WORKDAY(D3,F3)))
 
Upvote 0
Yes it would. What is your question?

No question, just thanking you for your help and that the modified formula seemed to work for me, however, now that I'm playing with it I'm encountering an interested problem. When I enter in 8 hours or less the date stays the same, when I entered in 8.01 to 15.99 the date goes 1 day out (as it should), but when I input 16 the date goes three days out instead of two.

1589892570181.png
 
Upvote 0
No question, just thanking you for your help and that the modified formula seemed to work for me, however, now that I'm playing with it I'm encountering an interested problem. When I enter in 8 hours or less the date stays the same, when I entered in 8.01 to 15.99 the date goes 1 day out (as it should), but when I input 16 the date goes three days out instead of two.

View attachment 14201

Hmmm, so if I change the formula in cell F3 to: =ROUNDUP(IF(E3="","",(E3/8)),0) that works with the above formula in cell G3, but now I get a #VALUE! error in cell F3 if no data is inputted into cell E3.
 
Upvote 0

Forum statistics

Threads
1,214,821
Messages
6,121,759
Members
449,048
Latest member
excelknuckles

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top