Extracting data from certains dates

Nelly3007

New Member
Joined
Jan 16, 2020
Messages
9
Office Version
  1. 365
Platform
  1. Windows
Hello All,

I have a spreadsheet where production is recorded each day and a monthly figure is also needed. I currently have a formula in place in cell H3 to add up all of January’s figures. Is there a way or a formula that I could put here instead so that it will add up if the data automatically if column B has a January date in? My intention is to use this spreadsheet every year and therefore I could make a copy and the formulas will still work and still add up January dates without any re-working. Hope that all makes sense.

Book1
ABCDEFGH
1WEEKDATEDAYDAILY TONNAGE SUGAR
25226/12/2022MONDAY MonthTotal Tonnage Sugar
327/12/2022TUESDAYJanuary (52-4)1830
428/12/2022WEDNESDAYFebruary (5-8)
529/12/2022THURSDAYMarch (9-13)
630/12/2022FRIDAYApril (14-17)
731/12/2022SATURDAYMay (18-21)
801/01/2023SUNDAYJune (22-26)
9102/01/2023MONDAY 0July (27-30)
1003/01/2023TUESDAY0August (31-34)
1104/01/2023WEDNESDAY0September (35-39)
1205/01/2023THURSDAY0October (40-43)
1306/01/2023FRIDAY0November (44-47)
1407/01/2023SATURDAYDecember (48-52)
1508/01/2023SUNDAY
16209/01/2023MONDAY 0
1710/01/2023TUESDAY0
1811/01/2023WEDNESDAY23
1912/01/2023THURSDAY155
2013/01/2023FRIDAY362
2114/01/2023SATURDAY
2215/01/2023SUNDAY
23316/01/2023MONDAY270.00
2417/01/2023TUESDAY216.00
2518/01/2023WEDNESDAY327.00
2619/01/2023THURSDAY157.00
2720/01/2023FRIDAY320.00
2821/01/2023SATURDAY
2922/01/2023SUNDAY
30423/01/2023MONDAY
3124/01/2023TUESDAY
3225/01/2023WEDNESDAY
3326/01/2023THURSDAY
3427/01/2023FRIDAY
3528/01/2023SATURDAY
3629/01/2023SUNDAY
37530/01/2023MONDAY
3831/01/2023TUESDAY
3901/02/2023WEDNESDAY
4002/02/2023THURSDAY
4103/02/2023FRIDAY
4204/02/2023SATURDAY
4305/02/2023SUNDAY
44606/02/2023MONDAY
4507/02/2023TUESDAY
4608/02/2023WEDNESDAY
4709/02/2023THURSDAY
4810/02/2023FRIDAY
4911/02/2023SATURDAY
5012/02/2023SUNDAY
Sheet1
Cell Formulas
RangeFormula
H3H3=SUM(D8:D38)
 

Excel Facts

Can Excel fill bagel flavors?
You can teach Excel a new custom list. Type the list in cells, File, Options, Advanced, Edit Custom Lists, Import, OK
How about
Excel Formula:
=SUMPRODUCT(--(MONTH($B$2:$B$100)=ROWS(H$3:H3)),$D$2:$D$100)
 
Upvote 0
Thanks so much that works! Do you know how to make this work over two sheets? So I could have the weekly data on sheet 1 and monthly data on sheet 2 but still have the same result?

Many Thanks,
 
Upvote 0
You would be better off keeping everything on one sheet, it makes things a lot simpler.
 
Upvote 0
Thats what management have now requested so we can have much more data available to view 🤦‍♀️ 😬 you think it would be easier to use the manual formula that I've already got in H3 if we are to do it over two sheets?
 
Upvote 0
If you are simply wanting to put the formula on another sheet, then you just nee t add the sheet name to the ranges.
 
Upvote 0

Forum statistics

Threads
1,224,823
Messages
6,181,181
Members
453,022
Latest member
Mohamed Magdi Tawfiq Emam

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