Workday Function

Seph

New Member
Joined
Jan 28, 2012
Messages
9
Office Version
  1. 2019
Platform
  1. Windows
I need the following formulas to report only weekdays.

=IF(F2="","",IF(K2<"","Submitted",IF(F2>=TODAY(),EDATE(F2,0)-30,IF(F2<TODAY(),"Today",""))))

=IF(F2="","",IF(G2="S",EDATE(F2,-2),IF(G2="R",EDATE(F2,-2),IF(G2="A","Not Needed",IF(H2="A","Bed Date Attained",IF(H2="S","Submitted",IF(H2="",EDATE(F2,-2),"")))))))

Here is the actual spreadsheet:

The first formula is in J2 and the latter is in I2

https://docs.google.com/spreadsheets/d/1oLYbI0sx8qUZ4pHJXMxI2CC9ZD45p03ybZUFsng2BmQ/edit?usp=sharing
 

Excel Facts

Copy PDF to Excel
Select data in PDF. Paste to Microsoft Word. Copy from Word and paste to Excel.
For the formula in I2 you can try this, it pushes the date to the following Monday if it is a Saturday or Sunday. Your formula for J2 makes no sense to me. IF(K2<"", doesn't make sense, you are asking if K2 is less than empty? If you could explain that I could look at it further, but if you see what I did in the other formula maybe you can figure it out for yourself. I know the formula is long and there may be a better way, but this is what I came up with and it appears to work.


Sheet1

*ABCDEFGHI

<tbody>
[TD="bgcolor: #cacaca, align: center"]2[/TD]
[TD="bgcolor: #ccccff, align: left"]Joe[/TD]
[TD="bgcolor: #ccccff, align: left"]KF2726[/TD]
[TD="bgcolor: #ccccff"]*[/TD]
[TD="bgcolor: #ccccff"]*[/TD]
[TD="bgcolor: #ccccff, align: left"]7/27/2014[/TD]
[TD="bgcolor: #ccccff, align: center"]7/24/2014[/TD]
[TD="bgcolor: #ccccff, align: center"]S[/TD]
[TD="bgcolor: #ccccff"]*[/TD]
[TD="bgcolor: #ccccff, align: center"]5/26/2014[/TD]

</tbody>

Spreadsheet Formulas
CellFormula
I2=IF(F2="","",IF(G2="S",IF(WEEKDAY(EDATE(F2,-2))=1,EDATE(F2,-2)+1,IF(WEEKDAY(EDATE(F2,-2))=7,EDATE(F2,-2)+2,EDATE(F2,-2))),IF(G2="R",IF(WEEKDAY(EDATE(F2,-2))=1,EDATE(F2,-2)+1,IF(WEEKDAY(EDATE(F2,-2))=7,EDATE(F2,-2)+2,EDATE(F2,-2))),IF(G2="A","Not Needed",IF(H2="A","Bed Date Attained",IF(H2="S","Submitted",IF(H2="",IF(WEEKDAY(EDATE(F2,-2))=1,EDATE(F2,-2)+1,IF(WEEKDAY(EDATE(F2,-2))=7,EDATE(F2,-2)+2,EDATE(F2,-2))),"")))))))

<tbody>
</tbody>

<tbody>
</tbody>


Excel tables to the web >> Excel Jeanie HTML 4
 
Upvote 0

Forum statistics

Threads
1,223,895
Messages
6,175,257
Members
452,625
Latest member
saadat28

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