Modifying Formula

aligahk06

Active Member
Joined
Apr 26, 2009
Messages
257
Dear All,
Please modify the highlighted bold formula that gives the result in such a way.

=SUM(COUNTIFS(RM!$F:$F,$D25,RM!$H:$H,{"COMP","CLOSE","WCLOSE"},RM!$I:$I,">="&DATE(2018,12,1),RM!$I:$I,"<="&EOMONTH(DATE(2018,12,1),0)))

1. RM!$I:$I,">="&DATE(2018,12,1) It will calculate based on 1dec 2018 time 00:59:59.000 am (hh:mm:ss.mmm)
2.
RM!$I:$I,"<="&EOMONTH(DATE(2018,12,1) It will calculate based on 31dec 2018 time 23:59:59.000 pm

Please help me to get the result based on date and time

Thanks

Regards,
aligahk06
 

Excel Facts

Whats the difference between CONCAT and CONCATENATE?
The newer CONCAT function can reference a range of cells. =CONCATENATE(A1,A2,A3,A4,A5) becomes =CONCAT(A1:A5)
Hi, you could try like this:

Rich (BB code):
=SUM(COUNTIFS(RM!$F:$F,$D25,RM!$H:$H,{"COMP","CLOSE","WCLOSE"},RM!$I:$I,">="&DATE(2018,12,1)+"00:59:59",RM!$I:$I,"<"&EOMONTH(DATE(2018,12,1)+1,0)))
 
Upvote 0
Hi, you could try like this:

Rich (BB code):
=SUM(COUNTIFS(RM!$F:$F,$D25,RM!$H:$H,{"COMP","CLOSE","WCLOSE"},RM!$I:$I,">="&DATE(2018,12,1)+"00:59:59",RM!$I:$I,"<"&EOMONTH(DATE(2018,12,1)+1,0)))

Sir, It won't give the result.
The excel cell consists the value [TABLE="width: 152"]
<colgroup><col></colgroup><tbody>[TR]
[TD="align: right"]12/4/2018 14:09[/TD]
[/TR]
[TR]
[TD="align: right"]12/31/2018 4:50[/TD]
[/TR]
[TR]
[TD="align: right"]12/31/2018 15:09[/TD]
[/TR]
[TR]
[TD="align: right"]12/3/2018 16:07[/TD]
[/TR]
[TR]
[TD="align: right"]12/6/2018 15:15[/TD]
[/TR]
[TR]
[TD="align: right"]12/31/2018 14:09[/TD]
[/TR]
[TR]
[TD="align: right"]12/4/2018 16:52[/TD]
[/TR]
[TR]
[TD="align: right"]12/5/2018 15:56[/TD]
[/TR]
[TR]
[TD="align: right"]12/10/2018 16:32[/TD]
[/TR]
</tbody>[/TABLE]
 
Upvote 0
It won't give the result.

Hi, that doesn't give us much to go on to help you debug.

The excel cell consists the value ..

Perhaps you can re-post this example data but also include examples of the values in the other columns. Also, let us know what the suggested formula returns for your example data and what result you actually expected.
 
Upvote 0

Forum statistics

Threads
1,223,903
Messages
6,175,289
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