Sumifs dates, but some have time also :-(

MOB

Well-known Member
Joined
Oct 18, 2005
Messages
1,055
Office Version
  1. 365
Platform
  1. Windows
My data looks like this - I want to sumifs using the data, but it doesn't pick up the ones with time as they aren't integers.

I could of course change the source data but I'm trying to automate a process so would prefer a formula to deal with it - so in the example below sumifs should treat the first 2 as the same date;

Any help would be greatly appreciated!

07/08/2023 12:56
07/08/2023
23/09/2022 08:46
23/09/2022
 

Excel Facts

Select a hidden cell
Somehide hide payroll data in column G? Press F5. Type G1. Enter. Look in formula bar while you arrow down through G.
What is the range shown in your post?
What is your current formula?
What exactly are you trying to sum?
 
Upvote 0
What is the range shown in your post?
What is your current formula?
What exactly are you trying to sum?

The range will be large, 40 columns and approx 250k rows

Current formula to be created - it will look at 2 criteria columns, one of them the date column, another a department code, and then sum £ value

The sum will be £ values
 
Upvote 0
How do you know ...
it doesn't pick up the ones with time
.. if you don't already have a formula?

The range will be large, 40 columns and approx 250k rows
I asked about the range shown in your post which clearly is just a single column. ;)

What about something like this?

23 08 23.xlsm
ABCDEF
1Date TimeDept CodeValueDate7/08/2023
27/08/2023 12:56a3Dept Codea
37/08/2023a2Sum5
423/09/2022 8:46a1
523/09/2022b4
Replace SUMIF
Cell Formulas
RangeFormula
F3F3=SUM(FILTER(C2:C5,(INT(A2:A5)=F1)*(B2:B5=F2),0))
 
Upvote 0
How do you know ...

.. if you don't already have a formula?


I asked about the range shown in your post which clearly is just a single column. ;)

What about something like this?

23 08 23.xlsm
ABCDEF
1Date TimeDept CodeValueDate7/08/2023
27/08/2023 12:56a3Dept Codea
37/08/2023a2Sum5
423/09/2022 8:46a1
523/09/2022b4
Replace SUMIF
Cell Formulas
RangeFormula
F3F3=SUM(FILTER(C2:C5,(INT(A2:A5)=F1)*(B2:B5=F2),0))

Thanks I will try your suggestion :)

You raise valid points above, my initial post was based on what I am about to attempt and the issue I knew I was going to encounter, I have got round it by turning the data into integers before but want a slicker attempt this time!
 
Upvote 0
How do you know ...

.. if you don't already have a formula?


I asked about the range shown in your post which clearly is just a single column. ;)

What about something like this?

23 08 23.xlsm
ABCDEF
1Date TimeDept CodeValueDate7/08/2023
27/08/2023 12:56a3Dept Codea
37/08/2023a2Sum5
423/09/2022 8:46a1
523/09/2022b4
Replace SUMIF
Cell Formulas
RangeFormula
F3F3=SUM(FILTER(C2:C5,(INT(A2:A5)=F1)*(B2:B5=F2),0))

Works well, many thanks :)
 
Upvote 0
You're welcome. Thanks for the confirmation.
 
Upvote 0

Forum statistics

Threads
1,215,092
Messages
6,123,063
Members
449,090
Latest member
fragment

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