Date format dd/mm/yyyy hh:mm to Date

AliciaGoyanes

New Member
Joined
Sep 29, 2022
Messages
19
Office Version
  1. 2021
Platform
  1. Windows
  2. MacOS
Hi everyone,
I am trying to link through an =match formula some dates. However, the data I get (as it is linked to bloomberg), is downloaded in format dd/mm/yyyy hh:mm.
What I want though is to sum the values of one of the columns by day format 24/10/2022.
However, I am struggling to match the dates.

Let me know if not clear.

Thank you
 

Excel Facts

Bring active cell back into view
Start at A1 and select to A9999 while writing a formula, you can't see A1 anymore. Press Ctrl+Backspace to bring active cell into view.
Please upload sample data(6-8 records) using XL2BB. Then show us a mock up of what you expect the results to be for those records. Do not load pictures as we cannot manipulate data in a picture
 
Upvote 0
Let me know if clear as I show below please, I cannot make xl2bb work in my mac somehow: sorry.

A1B1C1D1
25/10/2022​
25/10/2022 10:00​
10​
=sum(C:C and match (B:B) with A:A)
24/10/2022​
25/10/2022 11:00​
15​
23/10/2022​
25/10/2022 19:00​
20​
22/10/2022​
25/10/2022 18:00​
10​
24/10/2022 10:00​
12​
24/10/2022 11:00​
17​
24/10/2022 19:00​
19​
24/10/2022 18:00​
20​
 
Upvote 0
Is it clear as I showed or should I put it differently?
Sorry I am new here.
 
Upvote 0
T202210a.xlsm
ABCDEF
125-Oct-2225-Oct-22 10:00105555
224-Oct-2225-Oct-22 11:00156868
323-Oct-2225-Oct-22 19:0020
422-Oct-2225-Oct-22 18:0010
524-Oct-22 10:0012
624-Oct-22 11:0017
724-Oct-22 19:0019
824-Oct-22 18:0020
4d
Cell Formulas
RangeFormula
E1:E2E1=SUMPRODUCT(--(INT($B$1:$B$8)=A1),$C$1:$C$8)
F1:F2F1=SUMIFS(C:C,B:B,">="&A1,B:B,"<"&A1+1)
 
Upvote 0
If the problem is with the data import, convert the dates to real dates with Data Text to Columns criteria dmy and do not include the time part.

Also ensure that the numbers are recognized as real numbers.

T202210a.xlsm
ABCDEF
19October 25, 2022October 25, 20221055
20October 24, 2022October 25, 20221568
21October 23, 2022October 25, 202220
22October 22, 2022October 25, 202210
23October 24, 202212
24October 24, 202217
25October 24, 202219
26October 24, 202220
27
4d
Cell Formulas
RangeFormula
F19:F20F19=SUMIFS($D$19:$D$26,$C$19:$C$26,A19)
 
Upvote 0
Hi Dave, thank you so much for your help.
One question please, if I wanted to make your formula scalable so that in one formula I include a range of dates. Let's say in your E1 formula, I want to include not only the 25/10/2022 but also the 24/10/2022. Plan is to include various.

Is there any way to do so?
 
Upvote 0
T202210a.xlsm
BCDE
1Criteria25-Oct-22
224-Oct-22
3
425-Oct-22 10:0010123
525-Oct-22 11:0015
625-Oct-22 19:0020
725-Oct-22 18:0010
824-Oct-22 10:0012
924-Oct-22 11:0017
1024-Oct-22 19:0019
1124-Oct-22 19:0020
1223-Oct-22 19:00100
4d
Cell Formulas
RangeFormula
E4E4=SUMPRODUCT(--(INT($B$4:$B$11)>=$E$2),--(INT($B$4:$B$11)<=$E$1),$C$4:$C$11)
B12B12=B11-1
 
Upvote 0

Forum statistics

Threads
1,214,624
Messages
6,120,591
Members
448,973
Latest member
ksonnia

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