CONTIF 2 criterias

StartingOut

Board Regular
Joined
Feb 1, 2011
Messages
92
Hi, I have workbook that has data on my "DailyMUI's" sheet which gets sent to my "Summary" sheet. the data collected is the date which is put in B2, then on my "Summary" sheet I have data that pulls a time stamp from the "DailyMUI's" sheet. On my "Summary" sheet I need to count the number of times an entry in C:C is durring a certain time frame and also check to see if the data for the line item is equal to "Summary" date in cell B2.

So if sheet DailyMUI's colum C:C has a time <17:00 and it also has a date equal to what is in B2 on the Summary sheet then count all of the entries.

The essentialy tells me how many line items where created durring business hours and how many after hours.

=COUNTIF('DailyMUI''s'!C:C,"<17:00",'Summary'!B2)-COUNTIF('DailyMUI''s'!C:C,"<7:00",'Summary'!B2)
 

Excel Facts

Quick Sum
Select a range of cells. The total appears in bottom right of Excel screen. Right-click total to add Max, Min, Count, Average.
Hi, I have workbook that has data on my "DailyMUI's" sheet which gets sent to my "Summary" sheet. the data collected is the date which is put in B2, then on my "Summary" sheet I have data that pulls a time stamp from the "DailyMUI's" sheet. On my "Summary" sheet I need to count the number of times an entry in C:C is durring a certain time frame and also check to see if the data for the line item is equal to "Summary" date in cell B2.

So if sheet DailyMUI's colum C:C has a time <17:00 and it also has a date equal to what is in B2 on the Summary sheet then count all of the entries.

The essentialy tells me how many line items where created durring business hours and how many after hours.

=COUNTIF('DailyMUI''s'!C:C,"<17:00",'Summary'!B2)-COUNTIF('DailyMUI''s'!C:C,"<7:00",'Summary'!B2)
If you want to count where the time is <17:00 then why in your formula do you also have <7:00 ?
 
Upvote 0
sorry I wasn;t clear.

My DailyMUI sheet has the date and the time stamp in each row, I need to count how may rows have a time stamp for each date (day of the month) the date is in colum A and the time stamp is colum C.

I quess the answer to your question is "I don't know" which why my formula isn't working
 
Upvote 0
HI. It looks to me asthough you have too many things in your countif. Try
=COUNTIF('DailyMUI''s'!C:C,"<17:00")-COUNTIF('DailyMUI''s'!C:C,"<7:00")
You can not have those extra bits in. I asume you are tring to see how many ther are between 07:00 and 17:00. Im not sure what you are trying to do with the bit in cell B2.

Dan
 
Upvote 0
Sorry, I just realised that you want to check the date too. In this case you need to do a countifs wich should work as you have done the original formula with just an "S" added.
 
Upvote 0
sorry I wasn;t clear.

My DailyMUI sheet has the date and the time stamp in each row, I need to count how may rows have a time stamp for each date (day of the month) the date is in colum A and the time stamp is colum C.

I quess the answer to your question is "I don't know" which why my formula isn't working
Sorry, I'm still confused! :confused:

OK, you have dates in column A and times in column C.

What exactly do you want to count?
 
Upvote 0
Sorry, I'm not actualy being much help. It might be easiest if you split the date and time out into two seperate colums. Then do your countifs on them as seperat colums.
 
Upvote 0
Hi, I appriciate all the help, and I amy sorry nut its me that isn't clear enough so let me try again.

MY DailyMUI sheet has several columbs of data, Date, start Time, end Time and so on. I have a Summary sheet that collect the date in columb A from my DailyMUI sheet and places it in my Summar sheet in columb B starting in row 2.

Now on my Summary sheet in columb E I need a running total of the number of rows that have a time stamp between 7AM and 7PM as found in colum B in the DailyMUI sheet then the formula needs to check colum B row 2 on my Summary sheet to see if the date matches the date stamp in columb a of my DailyMUI sheet.
 
Upvote 0
Hi, I appriciate all the help, and I amy sorry nut its me that isn't clear enough so let me try again.

MY DailyMUI sheet has several columbs of data, Date, start Time, end Time and so on. I have a Summary sheet that collect the date in columb A from my DailyMUI sheet and places it in my Summar sheet in columb B starting in row 2.

Now on my Summary sheet in columb E I need a running total of the number of rows that have a time stamp between 7AM and 7PM as found in colum B in the DailyMUI sheet then the formula needs to check colum B row 2 on my Summary sheet to see if the date matches the date stamp in columb a of my DailyMUI sheet.
What version of Excel are you using?
 
Upvote 0

Forum statistics

Threads
1,224,618
Messages
6,179,917
Members
452,949
Latest member
beartooth91

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