Formula that will change which cells are added depending when data is entered

Luke1690

Board Regular
Joined
Jul 26, 2022
Messages
121
Office Version
  1. 365
  2. 2016
Platform
  1. Windows
Hi Guys,

i have a data entry sheet and a weekly summary sheet.

The data entry sheet is separated into days Mon,Tue,Wed,Thu,fri. within each day section i enter two lots of data called Buffer Totals for that day.

The weekly summary sheet shows what we finished on, So fridays buffer totals added together. (Not a total for the week)

Now, if we don't work on Friday obviously the weekly summary shows 0 because there wasn't any data entered.

how can i get the weekly summary to show the total for each day but overwrite the previous day when the next day is entered.
 

Excel Facts

Will the fill handle fill 1, 2, 3?
Yes! Type 1 in a cell. Hold down Ctrl while you drag the fill handle.
are you saying that in the Friday column you want to see a total of Mon-Thur if there is no data for Friday?
You can't have data entry and a formula in the same cell.
If it is after processing on Monday, do you want the Monday total so show on the Tue - Fri cells?

Why not have a data entry page, and then a report page?

Here is a great video on why data collection and reporting should be separate, it is very recent:
 
Upvote 0
Hi,

Thanks for getting back to me.

i do have a report sheet and a data entry sheet.

i want the report sheet to show a total of the two values for Monday then when Tuesdays data is entered i want the report to show a total of the two values for Tuesday. Not a combined total of Monday and Tuesday. So when Wednesday data is entered the report would only show a total for the two values for Wednesday, basically cancelling the previous day out.


hopefully that makes more sense ill see if i can knock up a draft to show you an example if not.
 
Upvote 0
Yes, an example would be more than helpful. If you can use the xl2bb add in (link is below as well as in the post formatting tool bar).
But, my interpretation of what you want is something like this, although I've put it all in one worksheet with two different weeks (so I'm assuming you have data and reports for indvidiual weeks?)

Book1
ABCDEFG
1data sheetWeekly Report Sheet
2DateValueWeek EndingValue
3Mon 2024-04-017Fri 2024-04-0510
4Mon 2024-04-018
5Tue 2024-04-029
6Tue 2024-04-026
7Wed 2024-04-037
8Wed 2024-04-039
9Thu 2024-04-048
10Thu 2024-04-045
11Fri 2024-04-055
12Fri 2024-04-055
13
14
15data sheetWeekly Report Sheet
16DateValueWeek EndingValue
17Mon 2024-04-017Fri 2024-04-120
18Mon 2024-04-018
19Tue 2024-04-029
20Tue 2024-04-026
21Wed 2024-04-037
22Wed 2024-04-039
23Thu 2024-04-048
24Thu 2024-04-045
25Fri 2024-04-05
26Fri 2024-04-05
Sheet1
Cell Formulas
RangeFormula
G3G3=SUMPRODUCT((F3=$A$3:$A$12)*($B$3:$B$12))
G17G17=SUMPRODUCT((F17=$A$17:$A$26)*($B$17:$B$26))
 
Last edited:
Upvote 0
1712229308435.png
 
Upvote 0
Is this what you are after?

24 04 04.xlsm
ABCDEFGHI
1
2MonTueWedThuFri
36188
41833
Last entry
Cell Formulas
RangeFormula
I3:I4I3=LOOKUP(9^9,B3:F3)
 
Upvote 0
hi,

Peter that is exactly what i want thanks for your help.

Just one more question, if i wanted to show the two data values Buffer 1 and Buffer 2 added together as total on the weekly report, how would i do that?
 
Upvote 0
Cheers. Glad it helped.

, if i wanted to show the two data values Buffer 1 and Buffer 2 added together as total on the weekly report, how would i do that?
Here are three options.

24 04 04.xlsm
ABCDEFGHIJ
1
2MonTueWedThuFri
3618811
4183311
511
Last entry
Cell Formulas
RangeFormula
J3J3=LOOKUP(9^9,B3:F3)+LOOKUP(9^9,B4:F4)
J4J4=SUM(INDEX(B3:F4,0,COUNT(B3:F3)))
I3:I4I3=LOOKUP(9^9,B3:F3)
I5I5=SUM(I3:I4)
 
Upvote 0
Solution

Forum statistics

Threads
1,223,896
Messages
6,175,265
Members
452,627
Latest member
KitkatToby

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