workday(TODAY(),0,0) and IF statement issues

Enzo_Matrix

Board Regular
Joined
Jan 9, 2018
Messages
113
I am tracking our shipping departments shipments and have a basic table with 5 columns of data and am trying to automate the data collection from the report generated by our system.

[TABLE="class: grid, width: 500, align: center"]
<tbody>[TR]
[TD]Date[/TD]
[TD]Total Orders[/TD]
[TD]Total Late[/TD]
[TD]% Late[/TD]
[TD]% On-time[/TD]
[/TR]
[TR]
[TD]1-Jan-2019[/TD]
[TD]9[/TD]
[TD]1[/TD]
[TD]11.11%[/TD]
[TD]88.89%[/TD]
[/TR]
[TR]
[TD]2-Jan-2019[/TD]
[TD]11[/TD]
[TD]0[/TD]
[TD]0.00%[/TD]
[TD]100.00%[/TD]
[/TR]
</tbody>[/TABLE]

I have a cell that changes dates from day to day and the idea is that it will automatically import the information into column 2 and 3 based on yesterdays date.
Code:
Cell that changes dates    =WORKDAY(TODAY(),-1,1)

Total Orders calculation from raw data   =IF('Table Date'=Cell with changing date,Total Orders,"")
Total Late calculation from raw data     =IF('Table Date'=Cell with changing date,Total Late,"")
In each cell of column 2 and 3 I have a code the references the date cell and the cells in my data sheet(see IF statements above). My issue is that as the date changes, the cells from my table clear themselves and i'm not sure which code would work better.

Any suggestions would be great! Also, VBA is an option
 

Excel Facts

Which Excel functions can ignore hidden rows?
The SUBTOTAL and AGGREGATE functions ignore hidden rows. AGGREGATE can also exclude error cells and more.

Forum statistics

Threads
1,223,910
Messages
6,175,318
Members
452,634
Latest member
cpostell

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