CountIf with conditions

professor.x

New Member
Joined
Aug 24, 2011
Messages
5
Hi all,

I'm hoping someone here can help me solve this formula if it is at all possible. Here's the short story of the problem:

Columns and their representation:
Columns A through C represents an overview of data collected.
A = Names
B = Errors YTD
C = Errors MTD

Columns D through H are used for data collection.
D through F = Misc
G = Date
H = Names


I want to make Column B CountIF Column A is the equal to Column H and only if Column G is equal to or less than 12 months to today's date. A similar equation needs to be done with Column C to CountIF Column A is equal to Column H and only if Column G is equal to or less than 30 days to today's date.

Any help would be greatly appreciated.
 

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.
Enter in CELL B1 and drag down:
=IF(OR(G1<DATE(YEAR(TODAY())-1,MONTH(TODAY()),DAY(TODAY())),G1>TODAY()),"",COUNTIF($A$1:$A$100,$H1)

Enter in Cell C1 and drag down:
=IF(OR(G1<DATE(YEAR(TODAY()),MONTH(TODAY()-30),DAY(TODAY())),G1>TODAY()),"",COUNTIF($A$1:$A$100,$H1)

adjust as needed.
 
Upvote 0
enter In cell B1 and drag down
=if(or(G1<DATE(YEAR(TODAY())-1,MONTH(TODAY()),DAY(TODAY()),G1>TODAY()),"",COUNTIF($A$1:$A$100,$H1)

enter in cell c1 and drag down:
=if(or(G1<DATE(YEAR(TODAY()),MONTH(TODAY()),DAY(TODAY()-30),G1>TODAY()),"",COUNTIF($A$1:$A$100,$H1)

adjust as needed
 
Upvote 0
enter In cell B1 and drag down
=if(or(G1<DATE(YEAR(TODAY())-1,MONTH(TODAY()),DAY(TODAY()),G1>TODAY()),"",COUNTIF($A$1:$A$100,$H1)
 
Upvote 0
<TABLE style="WIDTH: 374pt; BORDER-COLLAPSE: collapse" cellSpacing=0 cellPadding=0 width=499 border=0><COLGROUP><COL style="WIDTH: 374pt; mso-width-source: userset; mso-width-alt: 18249" width=499><TBODY><TR style="HEIGHT: 135pt" height=180><TD class=xl63 id=td_post_2839394 style="BORDER-RIGHT: #ece9d8; BORDER-TOP: #ece9d8; BORDER-LEFT: #ece9d8; WIDTH: 374pt; BORDER-BOTTOM: #ece9d8; HEIGHT: 135pt; BACKGROUND-COLOR: transparent" width=499 height=180>enter In cell B1 and drag down
=if(or(G1<DATE(YEAR(TODAY())-1,MONTH(TODAY()),DAY(TODAY()),G1>TODAY()),"",COUNTIF($A$1:$A$100,$H1)

enter in cell c1 and drag down:
=if(or(G1<DATE(YEAR(TODAY()),MONTH(TODAY()),DAY(TODAY()-30),G1>TODAY()),"",COUNTIF($A$1:$A$100,$H1)

</TD></TR></TBODY></TABLE>
 
Upvote 0

Forum statistics

Threads
1,224,521
Messages
6,179,283
Members
452,902
Latest member
Knuddeluff

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