sum from date not date and time

slamanager

Board Regular
Joined
Apr 20, 2007
Messages
129
Hi,

Trying to sum data in col B only using the criteria of the date in Col A, col A has the date and time format so unsure how to sum. have tried to use the day and month functions but not getting the answer i want.

Thnaks
 

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)
Hi

Excel stores dates as whole numbers with the time of day being the value after the decimal place, and given you are only entering a date as the criteria that is why it isn't working.

Try the following array* formula but change the range to suit:

{=SUM(IF(INT(A5:A25)=E5,B5:B25,0))}

E5 contains the cell that has the date you want to sum on.

*array formula : enter the formula above without the curly brackets {}, but before you press Enter, instead press Ctrl then Shift then Enter (holding down all 3 keys at the same time). You will know when you nhave done this correctly when the curly brackets {} automatically appear around the formula.

I trust this helps
Andrew
 
Last edited:
Upvote 0

Forum statistics

Threads
1,214,999
Messages
6,122,645
Members
449,093
Latest member
Ahmad123098

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