Running Totals

itsgrady

Board Regular
Joined
Sep 11, 2022
Messages
115
Office Version
  1. 2021
Platform
  1. Windows
  2. MacOS
I have a spreadsheet with days of the week as the header for each column.

What I would like to do is use the last column (7th column) for current information. The seventh column will always be the current date - the other 6 columns will be the previous days.

The next day I would like for all data move over to the left and the oldest day roll off the form. So, the current 7 days will always be on the form.

Is there an easy formula to move everything over each day. I was thinking to use a button with VBA code, unless there is an easier way.

Thanks for the help.
 
MrExcelPlayground14.xlsx
DEFGHIJKLMNOPQRSTUV
1
2Aspirate InvPounds Incinterated
3DateAcidBaseOxidizerReactT1 dayt1 nightt2dayt2night
4Tuesday, December 6, 202210469655210207848
5AspriateSat 12/10/2022Sun 12/11/2022Mon 12/12/2022Tue 12/13/2022Wed 12/14/2022Thu 12/15/2022Fri 12/16/2022Wednesday, December 7, 202211972169710246885
6Acid16804533447288Thursday, December 8, 202275678429500259849
7Base92307152935158Friday, December 9, 202272784542350725353
8Oxidizer94628664332556Saturday, December 10, 202216929439800927197
9React39448835824018Sunday, December 11, 202280306244480261340
10Aspirate Tot241216290184252188220Monday, December 12, 202245718688410417254
11Tuesday, December 13, 202233526435740923390
12TotalSat 12/10/2022Sun 12/11/2022Mon 12/12/2022Tue 12/13/2022Wed 12/14/2022Thu 12/15/2022Fri 12/16/2022Wednesday, December 14, 202244933382960939285
13T1 day800480410740960800970Thursday, December 15, 202272512540800539066
14t1 night92264192935381Friday, December 16, 202288585618970811697
15t2day71137233929016
16t2night97405490856697
17Tot1060559577955123010091164
Sheet31
Cell Formulas
RangeFormula
E5:J5,E12:J12E5=F5-1
K5,K12K5=MAX(Table1[Date])
E6:K9E6=TRANSPOSE(XLOOKUP(E5,Table1[[Date]:[Date]],Table1[[Acid]:[React]],"",0))
E10:K10,E17:K17E10=SUM(E6#)
E13:K16E13=TRANSPOSE(XLOOKUP(E12,Table1[[Date]:[Date]],Table1[[T1 day]:[t2night]],"",0))
N5:N14N5=N4+1
Dynamic array formulas.
Thank you so much for all your help! The project looks great! I'm very, very happy with it.
 
Upvote 0

Excel Facts

Ambidextrous Undo
Undo last command with Ctrl+Z or Alt+Backspace. If you use the Undo icon in the QAT, open the drop-down arrow to undo up to 100 steps.

Forum statistics

Threads
1,215,049
Messages
6,122,864
Members
449,097
Latest member
dbomb1414

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