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.
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
[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,"")
Any suggestions would be great! Also, VBA is an option