Countif

RLJ

Active Member
Joined
Mar 15, 2011
Messages
367
Office Version
  1. 365
Platform
  1. Windows
=COUNTIF(Outlook[Week],AK2,Outlook[LoanDescription]="Primary Service")

This formula is not working for me. When I press enter to submit the formula and move down a cell to get the result, it Highlights the word "Service" in the formula bar.

I'm guessing that this formula cannot accomplish what I'm looking for.

What I want to do is count how many cells = "Primary Service" in the Table Range of "Outlook[LoanDescription]" based upon the criteria in Cell AK2 that matches Table Range "Outlook[Week]".

So AK2 = 22 (For week 22)

Sheet2

<TABLE style="BACKGROUND-COLOR: #ffffff; PADDING-LEFT: 2pt; PADDING-RIGHT: 2pt; FONT-FAMILY: Arial,Arial; FONT-SIZE: 10pt" border=1 cellSpacing=0 cellPadding=0><COLGROUP><COL style="WIDTH: 30px; FONT-WEIGHT: bold"><COL style="WIDTH: 127px"><COL style="WIDTH: 75px"></COLGROUP><TBODY><TR style="TEXT-ALIGN: center; BACKGROUND-COLOR: #cacaca; FONT-SIZE: 8pt; FONT-WEIGHT: bold"><TD> </TD><TD>E</TD><TD>H</TD></TR><TR style="HEIGHT: 34px"><TD style="TEXT-ALIGN: center; BACKGROUND-COLOR: #cacaca; FONT-SIZE: 8pt">1</TD><TD style="TEXT-ALIGN: center; COLOR: #ff9900; FONT-SIZE: 4pt; FONT-WEIGHT: bold">LoanDescription</TD><TD style="TEXT-ALIGN: center; FONT-WEIGHT: bold">Week</TD></TR><TR style="HEIGHT: 17px"><TD style="TEXT-ALIGN: center; BACKGROUND-COLOR: #cacaca; FONT-SIZE: 8pt">1068</TD><TD style="TEXT-ALIGN: center">Primary Service</TD><TD style="TEXT-ALIGN: center">22</TD></TR><TR style="HEIGHT: 17px"><TD style="TEXT-ALIGN: center; BACKGROUND-COLOR: #cacaca; FONT-SIZE: 8pt">1069</TD><TD style="TEXT-ALIGN: center">Primary Service</TD><TD style="TEXT-ALIGN: center">22</TD></TR><TR style="HEIGHT: 17px"><TD style="TEXT-ALIGN: center; BACKGROUND-COLOR: #cacaca; FONT-SIZE: 8pt">1070</TD><TD style="TEXT-ALIGN: center">Primary Service</TD><TD style="TEXT-ALIGN: center">22</TD></TR></TBODY></TABLE>
<TABLE style="BORDER-BOTTOM-STYLE: groove; BORDER-BOTTOM-COLOR: #00ff00; BACKGROUND-COLOR: #fffcf9; BORDER-TOP-COLOR: #00ff00; BORDER-LEFT-STYLE: groove; FONT-FAMILY: Arial; BORDER-TOP-STYLE: groove; COLOR: #000000; BORDER-RIGHT-COLOR: #00ff00; BORDER-RIGHT-STYLE: groove; FONT-SIZE: 10pt; BORDER-LEFT-COLOR: #00ff00"><TBODY><TR><TD>Spreadsheet Formulas</TD></TR><TR><TD><TABLE style="FONT-FAMILY: Arial; FONT-SIZE: 9pt" border=1 cellSpacing=0 cellPadding=2><TBODY><TR style="BACKGROUND-COLOR: #cacaca; FONT-SIZE: 10pt"><TD>Cell</TD><TD>Formula</TD></TR><TR><TD>H1068</TD><TD>=WEEKNUM([@[35 TQ]])</TD></TR><TR><TD>H1069</TD><TD>=WEEKNUM([@[35 TQ]])</TD></TR><TR><TD>H1070</TD><TD>=WEEKNUM([@[35 TQ]])</TD></TR></TBODY></TABLE></TD></TR></TBODY></TABLE>


 

Excel Facts

Excel Joke
Why can't spreadsheets drive cars? They crash too often!
Which version of Excel are you using? CountIFS will give you multiple criteria if you are using 2007/2010 if not look to use SUMPRODUCT which allows you to use multiple criteria. Here is a link to understand using SUMPRODUCT. IF you want a tutorial you code Google SUMPRODUCT YouTube.

http://www.xldynamic.com/source/xld.SUMPRODUCT.html
 
Upvote 0
I ended up working with other Sum functions and figured out the SUMIF.

Thanks for the input.
 
Upvote 0

Forum statistics

Threads
1,206,754
Messages
6,074,749
Members
446,082
Latest member
fgiron83

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