Show average only once

welshgasman

Well-known Member
Joined
May 25, 2013
Messages
1,328
Office Version
  1. 2007
Platform
  1. Windows
Good day all,
I have a worksheet that I use to keep track of my carb intake.
I am happy if I average to a certain value over the week.

I have the sheet below, but is there a way I could just show the average for a week once only instead of 7 times?

TIA
Diabetes.xlsx
ABCDEFGHIJ
1DateCarbsSugarStepsWeekNumYearWeek StartAvg CarbsAvg SugarAvg Steps
222/03/2023122.9162.74153912202320/03/2023156.2887.581030.50
323/03/2023178.8558.15147912202320/03/2023156.2887.581030.50
424/03/2023175.2094.9274312202320/03/2023156.2887.581030.50
525/03/2023148.17134.5336112202320/03/2023156.2887.581030.50
626/03/2023110.1359.79138013202327/03/2023143.9450.681179.29
727/03/2023136.3456.24105113202327/03/2023143.9450.681179.29
828/03/2023160.6052.16158713202327/03/2023143.9450.681179.29
929/03/2023139.7623.91145813202327/03/2023143.9450.681179.29
1030/03/2023137.7881.6445813202327/03/2023143.9450.681179.29
1131/03/2023135.2233.22102013202327/03/2023143.9450.681179.29
1201/04/2023187.7247.77130113202327/03/2023143.9450.681179.29
1302/04/2023131.7999.25174914202303/04/2023156.2478.571144.86
1403/04/2023113.3765.5680014202303/04/2023156.2478.571144.86
1504/04/2023172.0764.6789914202303/04/2023156.2478.571144.86
1605/04/2023135.2649.5043214202303/04/2023156.2478.571144.86
1706/04/202386.2441.52274314202303/04/2023156.2478.571144.86
1807/04/2023278.34166.0776214202303/04/2023156.2478.571144.86
1908/04/2023176.6063.4562914202303/04/2023156.2478.571144.86
2009/04/2023185.31116.4495615202310/04/2023143.0072.081136.71
2110/04/2023188.7565.35106915202310/04/2023143.0072.081136.71
2211/04/202364.909.27126515202310/04/2023143.0072.081136.71
2312/04/2023185.2866.55105115202310/04/2023143.0072.081136.71
2413/04/202372.6253.98124015202310/04/2023143.0072.081136.71
2514/04/2023150.6842.32167515202310/04/2023143.0072.081136.71
2615/04/2023153.49150.6570115202310/04/2023143.0072.081136.71
Stats
Cell Formulas
RangeFormula
E2:E26E2=WEEKNUM($A2)
F2:F26F2=YEAR($A2)
G2:G26G2=DATE(F2, 1, -2) - WEEKDAY(DATE(F2, 1, 3)) + E2 * 7
H2:H26H2=SUMIF($E:$E,$E2,$B:$B)/COUNTIF($E:$E,$E2)
I2:I26I2=SUMIF($E:$E,$E2,$C:$C)/COUNTIF($E:$E,$E2)
J2:J26J2=SUMIF($E:$E,$E2,$D:$D)/COUNTIF($E:$E,$E2)
 

Excel Facts

Add Bullets to Range
Select range. Press Ctrl+1. On Number tab, choose Custom. Type Alt+7 then space then @ sign (using 7 on numeric keypad)
How about
Fluff.xlsm
ABCDEFGHIJ
1DateCarbsSugarStepsWeekNumYearWeek StartAvg CarbsAvg SugarAvg Steps
222/03/2023122.9162.74153912202320/03/2023156.2887.581030.50
323/03/2023178.8558.15147912202320/03/2023   
424/03/2023175.2094.9274312202320/03/2023   
525/03/2023148.17134.5336112202320/03/2023   
626/03/2023110.1359.79138013202327/03/2023143.9450.681179.29
727/03/2023136.3456.24105113202327/03/2023   
828/03/2023160.6052.16158713202327/03/2023   
929/03/2023139.7623.91145813202327/03/2023   
1030/03/2023137.7881.6445813202327/03/2023   
1131/03/2023135.2233.22102013202327/03/2023   
1201/04/2023187.7247.77130113202327/03/2023   
1302/04/2023131.7999.25174914202303/04/2023156.2478.571144.86
1403/04/2023113.3765.5680014202303/04/2023   
1504/04/2023172.0764.6789914202303/04/2023   
1605/04/2023135.2649.5043214202303/04/2023   
1706/04/202386.2441.52274314202303/04/2023   
1807/04/2023278.34166.0776214202303/04/2023   
1908/04/2023176.6063.4562914202303/04/2023   
2009/04/2023185.31116.4495615202310/04/2023143.0072.081136.71
2110/04/2023188.7565.35106915202310/04/2023   
2211/04/202364.909.27126515202310/04/2023   
2312/04/2023185.2866.55105115202310/04/2023   
2413/04/202372.6253.98124015202310/04/2023   
2514/04/2023150.6842.32167515202310/04/2023   
2615/04/2023153.49150.6570115202310/04/2023   
Master
Cell Formulas
RangeFormula
E2:E26E2=WEEKNUM($A2)
F2:F26F2=YEAR($A2)
G2:G26G2=DATE(F2, 1, -2) - WEEKDAY(DATE(F2, 1, 3)) + E2 * 7
H2:J26H2=IF($E2<>$E1,AVERAGEIFS(B:B,$E:$E,$E2),"")
 
Upvote 0
Solution
That would work nicely. :) Either the first or last date would be fine.
I did think of a pivot table after I posted and just completed that, but if I can get that display, then that would be better.

Thank you.
 
Last edited:
Upvote 0
You're welcome & thanks for the feedback.
 
Upvote 0

Forum statistics

Threads
1,214,812
Messages
6,121,693
Members
449,048
Latest member
81jamesacct

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