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

What does custom number format of ;;; mean?
Three semi-colons will hide the value in the cell. Although most people use white font instead.
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
12/4/2018 14:09
12/31/2018 4:50
12/31/2018 15:09
12/3/2018 16:07
12/6/2018 15:15
12/31/2018 14:09
12/4/2018 16:52
12/5/2018 15:56
12/10/2018 16:32

<colgroup><col></colgroup><tbody>
</tbody>
 
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,214,963
Messages
6,122,484
Members
449,088
Latest member
Melvetica

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