Sumif formulation

Nova1979

Board Regular
Joined
Feb 4, 2020
Messages
111
Office Version
  1. 2010
Platform
  1. Windows
Hello All. I am finding myself in need of some assistance.

I am working with someone else's spreadsheet that I cannot change the layout (minor changes permitted) and excel 2007 or earlier.
I can work out basic sumif formula, but am needing something for the following information

DateGroceries$DateGroceries$DateGroceries$
3/1Aldi12.461,182.722,414.10
3/1Arnolds24.1521/3IGA6.991/7Coles20.50
3/1Coles92.8930/3IGA3.851/7Birra Butcher16.00
5/1Chem' Warehouse25.9630/3Woolworths71.2710/7Coles98.40
9/1Coles21.604/4Coles92.6510/7Birra Butcher16.00
11/1Woolworths21.954/4Bakers Delight7.0011/7Arnolds15.24
17/1Arnolds30.8913/4Coles75.9013/7Mate St. Pharmacy24.90
17/1Coles106.1013/4Birra Butcher22.15
17/1Butcher on Rise14.0024/4Bakers Delight7.00
17/1IGA3.7524/4Coles101.77
28/1Woolworths86.0528/4Aldi19.49
28/1Arnolds30.051/5Harris Farm48.85
8/2Coles151.171/5Coles61.48
8/2Birra Butcher17.951/5Aldi23.24
10/2Harris Farm33.979/5Arnolds16.21
10/2Aldi21.2116/5Coles147.78
20/2Arnolds32.4416/5Bakers Delight4.00
20/2Coles88.4216/5Birra Butcher16.00
22/2IGA13.9816/5Chem W - Lens wipes8.99
23/2Woolworths53.8523/5Coles16.50
23/2IGA19.2423/5Harris Farm41.07
1/3Coles17.3029/5Woolworths88.40
1/3Mate St Pharm'24.9030/5Coles16.30
7/3Bakers Delight7.003/6Coles58.82
7/3Coles7.6013/6Arnolds35.32
8/3Coles26.3916/6Coles91.40
11/3IGA - Mariesfarewell6.1020/6Harris Farm48.70
13/3Birra Butcher16.0020/6Aldi22.25
13/3Bakers Delight4.0020/6Woolworths55.00
13/3Coles75.5527/6Harris Farm23.00
20/3Coles85.51
20/3Arnolds22.75

I would like the sumif for total expenditure for each month. As can be seen in columns A and E the dates for March carry over. This is where I am having issues (as well as trying to get a sumif to work based on the date in general)

I could utilise query sheets and pivot tables, however the person I am doing this for is older and I am trying to make it as easy for them as possible by not having to remember to refresh multiple sheets.

Any assistance would be greatful

Thanks in advance
 

Excel Facts

Lock one reference in a formula
Need 1 part of a formula to always point to the same range? use $ signs: $V$2:$Z$99 will always point to V2:Z99, even after copying
how many columns is this likely to be - why does it carry over to new columns ?

where is the date for march going to be put , and where do you want the totals

sumifs was added to 2007 version , you say earlier - what versions earlier are you using ???????

=SUMIFS(C4:C35,A4:A35,">="&DATEVALUE("1/3/23"),A4:A35,"<="&DATEVALUE("31/3/23"))+SUMIFS(G4:G35,E4:E35,">="&DATEVALUE("1/3/23"),E4:E35,"<="&DATEVALUE("31/3/23"))+SUMIFS(K4:K35,I4:I35,">="&DATEVALUE("1/3/23"),I4:I35,"<="&DATEVALUE("31/3/23"))

so add for each columns of entries

i have added the formula in cell B44 - as i assume this will go horizontally for ever ??????

you say total for March - I have hardcoded , but i suspect months will change how will that be entered and where ????

Book2
ABCDEFGHIJK
1
2DateGroceries$DateGroceries$DateGroceries$
3
43-JanAldi12.461,182.722,414.10
53-JanArnolds24.1521-MarIGA6.991-JulColes20.5
63-JanColes92.8930-MarIGA3.851-JulBirra Butcher16
75-JanChem' Warehouse25.9630-MarWoolworths71.2710-JulColes98.4
89-JanColes21.64-AprColes92.6510-JulBirra Butcher16
911-JanWoolworths21.954-AprBakers Delight711-JulArnolds15.24
1017-JanArnolds30.8913-AprColes75.913-JulMate St. Pharmacy24.9
1117-JanColes106.113-AprBirra Butcher22.15
1217-JanButcher on Rise1424-AprBakers Delight7
1317-JanIGA3.7524-AprColes101.77
1428-JanWoolworths86.0528-AprAldi19.49
1528-JanArnolds30.051-MayHarris Farm48.85
168-FebColes151.171-MayColes61.48
178-FebBirra Butcher17.951-MayAldi23.24
1810-FebHarris Farm33.979-MayArnolds16.21
1910-FebAldi21.2116-MayColes147.78
2020-FebArnolds32.4416-MayBakers Delight4
2120-FebColes88.4216-MayBirra Butcher16
2222-FebIGA13.9816-MayChem W - Lens wipes8.99
2323-FebWoolworths53.8523-MayColes16.5
2423-FebIGA19.2423-MayHarris Farm41.07
251-MarColes17.329-MayWoolworths88.4
261-MarMate St Pharm'24.930-MayColes16.3
277-MarBakers Delight73-JunColes58.82
287-MarColes7.613-JunArnolds35.32
298-MarColes26.3916-JunColes91.4
3011-MarIGA - Mariesfarewell6.120-JunHarris Farm48.7
3113-MarBirra Butcher1620-JunAldi22.25
3213-MarBakers Delight420-JunWoolworths55
3313-MarColes75.5527-JunHarris Farm23
3420-MarColes85.51
3520-MarArnolds22.75
36
37
38
39
40
41
42
43March
44total375.21
45
Sheet1
Cell Formulas
RangeFormula
B44B44=SUMIFS(C4:C35,A4:A35,">="&DATEVALUE("1/3/23"),A4:A35,"<="&DATEVALUE("31/3/23"))+SUMIFS(G4:G35,E4:E35,">="&DATEVALUE("1/3/23"),E4:E35,"<="&DATEVALUE("31/3/23"))+SUMIFS(K4:K35,I4:I35,">="&DATEVALUE("1/3/23"),I4:I35,"<="&DATEVALUE("31/3/23"))


Note: Images are difficult to see , and also requires that I input all the data myself, which means I may make an error, which is very time consuming, and from my point of view less likely to get a response, if a complicated spreadsheet. Plus we cannot see any of the formulas used.

Therefore -

A SMALL sample spreadsheet, around 10-20 rows, would help a lot here, with all sensitive data removed, and expected results mocked up and manually entered, with a few notes of explanation.

This will possibly enable a quicker and more accurate solution for you.

MrExcel has a tool called “XL2BB” that lets you post samples of your data and will allow us to copy/paste your sample data into our Excel spreadsheets, saving a lot of time.

You can also test to see if it works ok, in the "Test Here" forum.

OR if you cannot get XL2BB to work, or have restrictions on your PC

then put the sample spreadsheet onto a share

I only tend to goto OneDrive, Dropbox or google docs , as I'm never certain of other random share sites and possible virus.
Please make sure you have a representative data sample and also that the data has been desensitised, remember this site is open to anyone with internet access to see - so any sensitive / personal data should be removed

Make sure you set any share or google to share to everyone
 
Upvote 0

Forum statistics

Threads
1,223,903
Messages
6,175,286
Members
452,631
Latest member
a_potato

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