Microsoft Excel provides several functions purposed for counting different kinds of cells, such as blanks or nonblanks, with number, date or text values, containing specific words or character, etc.
In this article, we will focus on the Excel COUNTIF function that is purposed for counting cells with the condition you specify. First, we will briefly cover the syntax and general usage, and then I provide a number of examples and warn about possible quirks when using this function with multiple criteria and specific types of cells.
In essence, COUNTIF formulas are identical in all Excel versions, so you can use the examples from this tutorial in Excel 2016, 2013, 2010 and 2007.
COUNTIF function in Excel  syntax and usage
Excel COUNTIF function is used for counting cells within a specified range that meet a certain criterion, or condition.
For example, you can write a COUNTIF formula to find out how many cells in your worksheet contain a number greater than or less than the number you specify. Another typical use of COUNTIF in Excel is for counting cells with a specific word or starting with a particular letter(s).
The syntax of the COUNTIF function is very simple:
COUNTIF(range, criteria)
As you see, there are only 2 arguments, both of which are required:
 range  defines one or several cells to count. You put the range in a formula like you usually do in Excel, e.g. A1:A20.
 criteria  defines the condition that tells the function which cells to count. It can be a number, text string, cell reference or expression. For instance, you can use the criteria like these: "10", A2, ">=10", "some text".
And here is the simplest example of Excel COUNTIF function. What you see in the image below is the list of the best tennis players for the last 14 years. The formula =COUNTIF(C2:C15,"Roger Federer")
counts how many times Roger Federer's name is on the list:
Excel COUNTIF function examples
As you have just seen, the syntax of the COUNTIF function is very simple. However, it allows for many possible variations of the criteria, including wildcard characters, the values of other cells, and even other Excel functions. This diversity makes the COUNTIF function really powerful and fit for many tasks, as you will see in the examples that follow.
COUNTIF formula for text and numbers (exact match)
In fact, we discussed the COUNTIF function that counts text values matching a specified criterion exactly a moment ago. Let me remind you that formula for cells containing an exact string of text: =COUNTIF(C2:C15,"Roger Federer")
. So, you enter:
 A range as the first parameter;
 A comma as the delimiter;
 A word or several words enclosed in quotes as the criteria.
Instead of typing text, you can use a reference to any cell containing that word or words and get absolutely the same results, e.g. =COUNTIF(C1:C9,C7)
.
Similar COUNTIF formulas work for numbers as well as for text values. As you can see in the screenshot below, the formula =COUNTIF(D2:D9,5)
perfectly counts cells with quantity 5 in Column D.
COUNTIF formulas with wildcard characters (partial match)
In case your Excel data include several variations of the keyword(s) you want to count, then you can use a wildcard character to count all the cells containing a certain word, phrase or letters as part of the cell's contents.
Suppose, you have a list of tasks assigned to different persons, and you want to know the number of tasks assigned to Danny Brown. Because Danny's name is written in several different ways, we enter "*Brown*" as the search criteria =COUNTIF(D2:D10, "*Brown*")
.
An asterisk (*) is used to find cells with any sequence of leading and trailing characters, as illustrated in the above example. If you need to match any single character, enter a question mark (?) instead, as demonstrated below.
Count cells beginning or ending with certain characters
You can use either wildcard character, asterisk (*) or question mark (?), with the criterion depending on which exactly result you want to achieve.
If you want to know the number of cells that start or end with certain text no matter how many other characters a cell contains, use these formulas:
=COUNTIF(C2:C10,"Mr*")
 count cells that begin with "Mr".
=COUNTIF(C2:C10,"*ed")
 count cells that end with the letters "ed".
The image below demonstrates the second formula in action:
If you are looking for a count of cells that start or end with certain letters and contain the exact number of characters, you use the Excel COUNTIF function with the question mark character (?) in the criteria:
=COUNTIF(D2:D9,"??own")
 counts the number of cells ending with the letters "own" and having exactly 5 characters in cells D2 through D9, including spaces.
=COUNTIF(D2:D9,"Mr??????")
 counts the number of cells starting with the letters "Mr" and having exactly 8 characters in cells D2 through D9, including spaces.
=COUNTIF(D2:D9,"*~?*")
will count all cells containing the question mark in the range D2:D9.Excel COUNTIF for blank and nonblank cells
These formula examples demonstrate how you can use the COUNTIF function in Excel to count the number of empty or nonempty cells in a specified range.
COUNTIF not blank
In some of other Excel COUNTIF tutorials, you may come across formulas for counting nonblank cells in Excel similar to this one:
=COUNTIF(range,"*")
But the fact is, the above formula counts only cells containing any text values, meaning that cells with dates and numbers will be treated as blank cells and not included in the count!
If you need a universal COUNTIF formula for counting all nonblank cells in a specified range, here you go:
=COUNTIF(range,"<>"&"")
This formula works correctly with all value types  text, dates and numbers  as you can see in the screenshot below.
COUNTIF blank
If you want the opposite, i.e. count blank cells in a certain range, you should adhere to the same approach  use a formula with a wildcard character for text values or another one (with the "" criteria) to count all empty cells.
Formula to count cells not containing any text: =COUNTIF(range,"<>"&"*")
Translated into plain English, the criteria used in the above formula ("<>"&"*") means to find cells not equal to *, i.e. not containing any text in the specified range.
Universal COUNTIF formula for blanks (all value types): =COUNTIF(range,"")
The above formula correctly handles numbers, dates and text values. For example, the formula =COUNTIF(C2:C11,"")
returns the number of all empty cells in the range C2:C11.
=COUNTBLANK(range)
. For instance, the below formulas will produce exactly the same results as the COUNTIF formulas you see in the screenshot above:
Count blanks: =COUNTBLANK(C2:C11)
Count nonblanks: =ROWS(C2:C11)*COLUMNS(C2:C11)COUNTBLANK(C2:C11)
Also, please keep in mind that both =COUNTIF(range,"")
and =COUNTBLANK(range)
count cells with formulas that only look empty. If you do not want to treat such cells as blanks, use this formula instead: =ROWS(C2:С11)*COLUMNS(C2:С11)COUNTIF(C2:С11,"<>"&"")
.
For more information about counting blanks and not blanks in Excel, see the following tutorials: 3 ways to count empty cells in Excel and How to count nonempty cells in Excel.
COUNTIF greater than, less than or equal to
To count cells with values greater than, less than or equal to the number you specify, you simply add a corresponding operator to the criteria, as shown in the table below.
Please pay attention that in COUNTIF formulas, an operator with a number are always enclosed in quotes.
Criteria  Formula Example  Description 
Count if greater than  =COUNTIF(A2:A10,">5")  Count cells where value is greater than 5. 
Count if less than  =COUNTIF(A2:A10,"<5")  Count cells with values less than 5. 
Count if equal to  =COUNTIF(A2:A10,"=5")  Count cells where value is equal to 5. 
Count if not equal to  =COUNTIF(A2:A10,"<>5")  Count cells where value is not equal to 5. 
Count if greater than or equal to  =COUNTIF(C2:C8,">=5")  Count cells where value is greater than or equal to 5. 
Count if less than or equal to  =COUNTIF(C2:C8,"<=5")  Count cells where value is less than or equal to 5. 
You can also use all of the above formulas to count cells based on another cell value, you will just need to replace the number in the criteria with a cell reference.
=COUNTIF(D2:D9,">"&D3)
:If you want to count cells that contain an actual operator as part of the cell's contents, i.e. the characters ">", "<" or "=", then use a wildcard character with the operator in the criteria. Such criteria will be treated as a text string rather than a numeric expression. For example, the formula =COUNTIF(D2:D9,"*>5*")
will count all cells in the range D2:D9 with contents like this "Delivery >5 days" or ">5 available".
Using Excel COUNTIF function with dates
If you want to count cells with dates that are greater than, less than or equal to the date you specify or date in another cell, you proceed in the already familiar way using formulas similar to the ones we discussed a moment ago. All of the above formulas work for dates as well as for numbers. Let me give you just a few examples:
Criteria  Formula Example  Description 
Count dates equal to the specified date.  =COUNTIF(B2:B10,"6/1/2014")  Counts the number of cells in the range B2:B10 with the date 1Jun2014. 
Count dates greater than or equal to another date.  =COUNTIF(B2:B10,">=6/1/2014")  Count the number of cells in the range B2:B10 with a date greater than or equal to 6/1/2014. 
Count dates greater than or equal to a date in another cell, minus x days.  =COUNTIF(B2:B10,">="&B2"7")  Count the number of cells in the range B2:B10 with a date greater than or equal to the date in B2 minus 7 days. 
Apart from these common usages, you can utilize the COUNTIF function in conjunction with specific Excel Date and Time functions such as TODAY() to count cells based on the current date.
Criteria  Formula Example 
Count dates equal to the current date.  =COUNTIF(A2:A10,TODAY()) 
Count dates prior to the current date, i.e. less than today.  =COUNTIF(A2:A10,"<"&TODAY()) 
Count dates after the current date, i.e. greater than today.  =COUNTIF(A2:A10,">"&TODAY()) 
Count dates that are due in a week.  =COUNTIF(A2:A10,"="&TODAY()+7) 
Count dates in a specific date range.  =COUNTIF(B2:B10, ">=6/7/2014")COUNTIF(B2:B10, ">6/1/2014") 
Here is an example of using such formulas on real data (at the moment of writing today was 25Jun2014):
Excel COUNTIF with multiple criteria
In fact, Excel COUNTIF function is not exactly purposed for counting cells based on multiple criteria. There is another function, COUNTIFS, especially designed for this (it is the topic of the next week's article). However, you can use COUNTIF to count values based on two or more criteria by adding or subtracting several COUNTIF functions.
Example 1. COUNTIF with two conditions for numbers
One of the most common applications of Excel COUNTIF function with 2 criteria is counting numbers within a specific range, i.e. less than X but greater than Y. For example, you can use the following formula to count cells in the range B2:B9 where a value is greater than 5 and less than 15.
=COUNTIF(B2:B9,">5")COUNTIF(B2:B9,">=15")
Example 2. COUNTIF with multiple conditions for text values
Let's consider one more example of the COUNTIF function that will count 2 different text values. Suppose you have a shopping list and you want to find out how many soft drinks are included. So, the following formula works a treat:
=COUNTIF(B2:B13,"Lemonade")+COUNTIF(B2:B13,"*juice")
Please pay attention to the wildcard character (*) in the second criterion, it is used to count all kinds of juice on the list.
In the same manner, you can write a COUNTIF formula with several conditions. Here is an example of the COUNTIF function with multiple conditions that counts lemonade, juice and ice cream:
=COUNTIF(B2:B13,"Lemonade") + COUNTIF(B2:B13,"*juice") + COUNTIF(B2:B13,"Ice cream")
You can find plenty more examples for text, numbers and dates in this tutorial  Excel COUNTIFS and COUNTIF with multiple criteria.
Using COUNTIF function to find duplicates and unique values
Another possible usage of the COUNTIF function in Excel is for finding duplicates in one column, between two columns, or in a row.
Example 1. Find and count duplicates in 1 column
For example, this simple formula =COUNTIF(B2:B10,B2)>1 will spot all duplicate entries in the range B2:B10 while another function =COUNTIF(B2:B10,TRUE) will tell you how many dupes are there:
Example 2. Count duplicates between two columns
If you have two separate lists, say lists of names in columns B and C, and you want to know how many names appear in both columns, you can use Excel COUNTIF in combination with the SUMPRODUCT function to count duplicates:
=SUMPRODUCT((COUNTIF(B2:B1000,C2:C1000)>0)*(C2:C1000<>""))
We can even take a step further and count how many unique names there are in Column C, i.e. names that do NOT appear in Column B:
=SUMPRODUCT((COUNTIF(B2:B1000,C2:C1000)=0)*(C2:C1000<>""))
Example 3. Count duplicates and unique values in a row
If you want to count duplicates or unique values in a certain row rather than a column, use one of the below formulas. These formulas might be helpful, say, to analyze the lottery draw history.
Count duplicates in a row:
=SUMPRODUCT((COUNTIF(A2:I2,A2:I2)>1)*(A2:I2<>""))
Count unique values in a row:
=SUMPRODUCT((COUNTIF(A2:I2,A2:I2)=1)*(A2:I2<>""))
Excel COUNTIF  frequently asked questions and issues
I hope these examples have helped you to get a feel for the Excel COUNTIF function. If you've tried any of the above formulas on your data and were not able to get them to work or are having a problem with the formula you created, please look through the following 5 most common issues. There is a good chance that you will find the answer or a helpful tip there.
1. COUNTIF on a noncontiguous range of cells
Question: How can I use COUNTIF in Excel on a noncontiguous range or a selection of cells?
Answer: Excel COUNTIF does not work on nonadjacent ranges, nor does its syntax allow specifying several individual cells as the first parameter. Instead, you can use a combination of several COUNTIF functions:
Wrong: =COUNTIF(A2,B3,C4,">0")
Right: =COUNTIF(A2,">0") + COUNTIF(B3,">0") + COUNTIF(C4,">0")
An alternative way is using the INDIRECT function to create an array of ranges. For example, both of the below formulas produce the same result you see in the screenshot:
=SUM(COUNTIF(INDIRECT({"B2:B8","D2:C8"}),"=0"))
=COUNTIF($B2:$B8,0) + COUNTIF($C2:$C8,0)
2. Ampersand and quotes in COUNTIF formulas
Question: When do I need to use an ampersand in a COUNTIF formula?
Answer: This is probably the most arcane part. I personally find the syntax of the COUNTIF function very confusing, though if you give it some thought, you'll see the reasoning behind it. An ampersand and quotes are needed to construct a text string for the argument. So, you can adhere to these rules:
 If you use a number or a cell reference in the exact match criteria, you need neither ampersand nor quotes, e.g. or
=COUNTIF(A1:A10,10)
or=COUNTIF(A1:A10,C1)
.  If your criteria includes text, wildcard character or some operator with a number, you enclose it in quotes, e.g.
=COUNTIF(A2:A10,"lemons")
or=COUNTIF(A2:A10,"*")
or=COUNTIF(A2:A10,">5")
 If you use an expression with a cell reference or another Excel function, you have to use the quotes ("") to start a text string and ampersand (&) to concatenate and finish the string off. For example,
=COUNTIF(A2:A10,">"&D2)
or=COUNTIF(A2:A10,"<="&TODAY())
.
If you are in doubt whether an ampersand is needed or not, try out both ways. In most cases an ampersand works just fine, e.g. the formulas =COUNTIF(C2:C8,"<=5") and =COUNTIF(C2:C8,"<="&5) work equally well.
3. COUNTIF for formatted (color coded) cells
Question: How do I count cells by fill or font color rather than by values?
Answer: Regrettably, the syntax of the Excel COUNTIF function does not allow using formats as the condition. The only possible way to count or sum cells based on their color is using a macro, or more precisely an Excel UserDefined function. You can find the code working for cells colored manually as well as for conditionally formatted cells in this article  How to count, sum and filter cells by color in Excel.
4. #NAME? error in the COUNTIF formula
Issue: My COUNTIF formula throws a #NAME? error. How can I get it fixed?
Answer: Most likely, you have supplied an incorrect range to the formula. Please check out point 1 above.
5. Excel COUNTIF formula not working
Issue: My COUNTIF formula is not working! What have I done wrong?
Answer: If you have written a formula which is seemingly correct but it does not work or produces a wrong result, start by checking the most obvious things such as a range, conditions, cell references, use of ampersand and quotes.
Be very careful with using spaces in a COUNTIF formula. When creating one of the formulas for this article I was on the verge of pulling my hair out because the correct formula (I knew with certainty it was right!) wouldn't work. As it turned out, the problem was in a measly space somewhere in between, argh... For instance, look at this formula =COUNTIF(B2:B13," Lemonade")
. At first sight, there is nothing wrong about it, except for an extra space after the opening quotation mark. Microsoft Excel will swallow the formula just fine without an error message, warning or any other indication, assuming you really want to count cells containing the word 'Lemonade' and a leading space.
If you use the COUNTIF function with multiple criteria, split the formula into several pieces and verify each function individually.
And this is all for today. In the next article, we will explore several ways to count cells in Excel with multiple conditions. Hope to see you next week and thanks for reading!
I want to group or count values that start the same. In this short example YTOP.125 should be grouped together  or counted. I can work with either. So I want to be able to say "if the first, for example 8 characters are the same then...
For example
ColumnA
YTOP.125SP
HYEP.556M
YTOP.648
MNTK.593
HYEP.257
YTOP.125LO
Can you help? Is this possible?
Hi Karo,
Yes, it is possible, but you will need to add a helper column to your table. If this is acceptable, then create an additional column and copy the following formula across that column, which will extract the first 8 characters =LEFT(A2,8). After that, you can proceed in 2 ways.
Way 1 – using Subtotal:
 Sort your table by Column A or the newly created column with the above formula.
 Apply subtotal to the table (Data >Outline >Subtotal) with these settings:
At each change in : Column with the formula
Use function: Count
Add subtotal to: Column with the formula
 Click Ok.
 Then Press Number 2 at the left side of you sheet and you will get the count of codes by the first 8 characters.
For more info about using subtotals please see this article  Using Subtotals in Microsoft Excel
Way 2 – using a pivot table:
 Insert a pivot table (select your table and go to Insert > Tables > PivotTable).
 Place your pivot table onto a new sheet.
 Drag and drop the column with the formula to the Rows section and column A to the Values section.
Hi there!
How can I find the duplicates in a single column with the same name but with different format? (e.g. "Susan Doe" "Doe Susan") can I use countif to find the duplicates?
Thanks in advance
COUNTIF(A2:A7,LEFT(A2,8)&"*")
Hello,
I want to formulate the following:
IF "cell value A" greater than(>) "cell value B", THEN "cell value A" = "cell value B" and therefore the result "cell value C" is equal to zero
if this is doable can it be applied to multiple "cells"?
Hi Richard,
I understand your condition but cannot figure out what result you want to achieve : ) If you want a formula to add a zero to column C if a value in cell A in the same row is greater than in cell B, you can use the following IF formula: =IF($A2>$B2,0,"") where 2 is your first row with data. Since we use a relative row reference (without the $ sign) the formula with compare values in each individual row when copied across multiple cell. If you are looking for some other result, please clarify.
Hi There,
I am trying to record attendance at my office and I am putting together an excel spreadsheet to store the data. I need to be able to sum up the totals of vacation days, personal days, business days, and sick days. The countif works well if I put 'V' for vacation, 'B' for business and so forth, but how can I calculate half days? Is there a way that I can set up a second Countif function so when I put in something like 'VH' in the range it counts it as 0.5 rather than one? Pretty much I am wondering if I can change the amount that the countif function counts by.
Thanks
Hi KellyAnn,
I think you can just multiply the result of COUNTIF for "VH" by 0.5 to count half days, e.g.:
=COUNTIF(RANGE, "V") + 0.5*COUNTIF(RANGE, "VH")
I know this thread is a couple of years old, but the "Attendance/Absence" spreadsheet is *exactly* what I've been trying to create this week for my work.
The countif formula given above would work but only for one of the Key's provided. If one has more than 2 (eg one full letter for V or B or S which needs to be counted as 1 and one which has the above with a "H" in it to be counted as 0.5), then the formula wouldn't be working for all.
The secret is to use the wildcards. A Question mark  "?" can be used in the criteria to reference a single text character. So no matter what text character is used if it is on its own, it will be counted.
This would be then written as:
=Countif(RANGE,"?") and would return a value. In effect counting any cell with ONE text character in it.
To create the half version, the formula would be:
=Countif(RANGE,"*H") It works in the same way but is now separately counting only those entries with ANY character to start with (the "*") AND which have a H by them. This last then needs to be divided by half.
The example above would work, but maybe a more elegant example would be to simply divide by 2. The difficulty is figuring out the syntax which in this case is where the brackets are. The answer is:
=(COUNTIF(RANGE,"*H")/2)+(COUNTIF(RANGE,"?"))
The first pass reads the entries with the H and then divides by 2. The entire phrase is bracketed together (usually COUNTIF doesn't have a bracket before it). Excel knows that the total its found must be divided by 2 before working with the next phrase
The second pass then does exactly the same thing but with any single text character entered but does not divide. Instead its total is then added to the previous total.
NOTE: the cells which will display the result MUST BE PREFORMATTED as a Number and with one decimal place. This will provide the halves when they are counted or Excel will automatically round up.
Hope that is useful.
I'm trying to do something similar here vacation time used and remaining based on hire date adding in at hire date additional days. so if corey has 15 days now total and used 3 in january and 4 in march and 2.5 in may then gets 15 more in august. how would i write that up? plus i have the variant of half days as well. i understand your count if you used for her issue
Simply divide it by 2, I mean after formula type /2
Hi,
I have a project list where activity is shown in a timeline. I need to count up if a column 'project stage' shows activity in any given month. I have set the countif for picking up activity but now need to make it so that it only counts that activity if column 'project stage' is a particular word.
Any idea?
BTW the above is great!
Hi Clare,
You need to use the COUNTIFS function that allows setting multiple criteria in a formula. Something similar to this:
=COUNTIFS(C2:C9, ">=6/1/2014", C2:C9, "<=6/30/2014", D2:D9, "SpecialWord")
Where C is the column with dates and D is the "Project Stage" column.
Please see the following article for more info:
http://www.ablebits.com/officeaddinsblog/2014/07/10/excelcountifsmultiplecriteria/
Hi,
I need to combine an IF statement with a COUNTIF that will count 3 out of 5 text entry options for a single column. If the COUNTIF =0, it needs to show as a dash. This is the original formula that is working =IF(COUNTIF(B1:B10000,C1&D1)=0,"",COUNTIF(B1:B10000,C1&D1))
I need to add another criteria to the COUNTIFs, where there are 5 possible entries in column E and I need it to count 3 of these (Allocated, Declined, Rejected). Any suggestions is gratefully appreciated.
Ruth
Hello Ruth,
Let me check if I understand the task correctly. Do you want to count values in column B only if column E has any of these values: Allocated, Declined, Rejected? Or, are you looking for something different? It will be very helpful if you can paste the values from a couple of rows in columns BE and the result you expect a formula to return.
Hi There,
I am wanting to extract some values and I thought COUNTIF might be able to do it.
I have a cell that contains some data eg: ABCBBCABCSIIBBCABC
I get COUNTIF to count how many times BBC appears in that cell, seems it only counts the FIRST instance of BBC.
How do I get it check the entire contents of the cell and correctly record the result eg: BBC appears twice in that cell
Thanks!
The COUNTIF function cannot count specific text or characters inside a cell, it deals with the entire contents of a cell, as if you selected the option "Match entire cell contents" when performing search in Excel.
Please use this formula instead:
=(LEN(A2)LEN(SUBSTITUTE(A2,"BBC","")))/LEN("BBC")
Where A2 is the cell containing "ABCBBCABCSIIBBCABC", and "BBC" is the search text. Instead of "BBC", you can enter a cell reference with the search text, e.g. B1, sometimes it is a more convenient way to work with formulas.
I'm after something similar to what you were asking Ruth please.
I've set up the formula to count up all the instances of "*banananas*" in column B.
I then have a list of places in column A. So say the total amount of banananas is 300 I want to know how many banananas I have for each of the individual places. So it only counts the banananas entries that are next to specific text in column A.
Thanks.
Hi Robert,
In this case, you'd better use the COUNTIFS function rather than COUNTIF. It allows you to apply several criteria to different cell ranges. You can find more information about the COUNTIFS function in this article:
http://www.ablebits.com/officeaddinsblog/2014/07/10/excelcountifsmultiplecriteria/
As for your task, you can use the following formula:
=COUNTIFS(B:B,"*bananas*",A:A,"PlaceName")
Hi
Im also after something similar to Robert.
In column A i have a number of different status ie. "On Programme", "Rejected", "Completed" etc. and in column B i have a number of programmes ie. "Cleaning", "Customer Service", etc and i want to could how many for example On programme cleaning there are?
Ive tried and other formulas similar to this but none seem to be counting what i want.
=SUM((COUNTIF(A2:A32,"On Programme"))*OR((COUNTIF(B2:B32,"CLEANING"))))
Can you help?
Hello Lara,
The same as Robert, you should also use the COUNTIFS function rather than COUNTIF, because COUNTIFS can count cells based on multiple criteria. The formula is as follows:
=COUNTIFS($A2:$A32,"On programme",$B2:$B32,"CLEANING")
You can find the full details in this tutorial:
http://www.ablebits.com/officeaddinsblog/2014/07/10/excelcountifsmultiplecriteria/
If you want to use the SUM function, you should enter the following array formula (remember to press Ctrl + Shift + Enter to complete it):
{=SUM(($A2:$A22="On Programme")*($B2:$B32="CLEANING"))}
HELP! I'm trying to create a list of email addresses, based on wireless carrier. So if one column has their wireless number, next column has carrier, I then want to combine wireless number with the appropriate text email. Where these are the extensions I want to add:
Verizon = @vtext.com
AT&T = number@txt.att.net
Sprint = number@pm.sprint.com
Tmobile = number@tmomail.net
So if someone lists
5556667777 Verizon
6667778888 Sprint
How do I create a cell that says If A6=Verizon, then 5556667777@vtext.com??
It's a list of a few hundred, so I'd rather no do manually. Thanks so much for the assistance!
Hello Virginia,
To fulfill your task, you need to create a lookup table "CarrierName = Domain" in another worksheet. Then, you will be able to pull a domain by the Carrier name using the below formula below and concatenate it with the telephone number. Here is the formula:
=IF(AND(A2<>"", B2<>"", MATCH(B2,WirelessCarriersData[Name], 0)>0), A2 & VLOOKUP(B2,WirelessCarriersData,2,FALSE),"")
Where A2 is the first cell in the Phone column not including headers, B2 is the first cell in the Carrier column, and WirelessCarriersData is the name of the lookup table.
We have created an example for you, feel free to download it using the link below:
http://www.ablebits.com/_imgblog/_comments/virginia.sorensen@capitalone.com1.xlsx
I am trying to create an auto Vacation equation template. I have completed the template and it is working well except, I would like it to do something like this.
Example:
=COUNTIF(D3:J20, "BBBV") Currently the template is counting one for each one it sees, but what I would like it to is to equate 1 with a (NUMBER) like "10" to allow for actual hours employee is being deducted from balance the employee has. So if it sees one I would like it to see it is 1=10 and display the number in the cell as 10... Have I made this clear?
Hello Dawn,
I am not sure I fully understand your task. You can try one of the following solutions:
Solution 1 – you can just multiply the result by a certain number, say 10, othe formula will be as follows:
=COUNTIF(D3:J20, "BBBV")*10
If you want to pull the number from a certain cell, replace "10" with a cell reference.
Solution 2 – if you want to show 10 for COUNTIF=1, and for the other cases you want to do something different (e.g. multiply by 9):
=IF(COUNTIF(D3:J20, "BBBV") = 1, 10, COUNTIF(D3:J20, "BBBV") * 9 )
If neither solution work for you, please send a sample workbook with your data at support@ablebits.com and we will try to help.
Hi Svetlana!, I hope you can help me...
I am making a sampletest exam where the correct answer will be hidden in column C and column B will be where the person who is taking the exam will place his/her answer. I need a formula to tell me how many correct answers were given. For example:
X1 = test takers' answer
X2 = correct answer
X1 X2
A B
C C
A D
D D
B B
I need a formula that will tell me that the test taker answered 3 questions correctly and then divide that value by the number of questions, in this case 5 questions. FYI: The answers will be sidebyside, however many blank rows will separate each answer (to facilitate the question and multiple answers in column A).
Thank you,
Rod
Hi Rod!
You can use the following array formula. Change 30 to the number of your last row with answers, and remember to press Ctrl + Shift + Enter to complete the formula:
=SUM(NOT(ISBLANK(C2:C30))*(B2:B30=C2:C30))
Then you can divide the result by the number of questions.
BTW, please be aware that one can easily see the content of a hidden column. More details are in this blog post:
http://www.ablebits.com/officeaddinsblog/2014/07/30/excelunhidecolumns/#disableunhidecolumns
Hi Svetlana!
I tried to use this sample You provided for Rod, but it doesn't seem to work, and I don't get what's wrong...
1) I entered some values in B and C columns
2) entered formula exactly as it is in Your sample and pressed Ctrl+Shift+Enter
as a result I see that formula as a text, and no result... why is that so? What am I doing wrong?
Here is the screenshot how it looks:
http://screencast.com/t/QRsaafuSvzw
Hope, You can help!
P.S. This is a really nice and helpful blog post!
OK, I gound what's wrong... i didn't know that brackets {} are added automatically and I don't have to enter them manually :)
Hi Uldis,
It's great that you sorted this out! Those brackets might be confusing indeed, I added them to show that is an array formula. But may be I'd better remove them not to confuse someone else :)
I tried using the countif(range,""&"") to count the cells within a range in my sheet that have something written in them and it keeps counting all of the cells selected.
If I tried counting all the cells that are blank instead and write countif(range,""&"*") it brings me to 0.
Any idea of why it wont count my cells that have data?
Hi Samantha,
Please try using the formulas described in the Excel COUNTIF for blank and nonblank cells section. They should work.
Hi Svetlana,
Unfortunately when using both functions to count non blank cells it still counts all the cells for me.
The way I input the function is : =COUNTIF(E21:E27,""&"")
Is that a correct way?
I only have test1 in 1 of the cells written yet that function comes out as 7.
Any ideas of what might be going on in the excel?
Hi Samantha,
This is the correct formula to count nonblank cells.
=COUNTIF(E21:E27,"<>"&"")
Does it work for you?
Hi,
I also tryed this formula but it counts cells with "".
Try this to exclude blanks
=COUNTIF(E21:E27,">"&" ")
Space in double quotes
and this to only include blanks
=COUNTIF(E21:E27,"<"&" ")
Trying to calculate the number of times certain words appear in a column. Some of the cells works others don't and I am using the exact same formulas for both. Even when I click in on the fx button the total is correct in the formula, but it won't replicate it to the cell. The cell just shows the formula an not the number. I have all the cells formatted to general, even the ones that are working correctly.
Hello Lance,
It's hard to pin down the cause of the problem without seeing your data. If you can send you sample workbook at support@ablebits.com, we'll try to figure it out.
Is there any site where we can get online support for MS office (Excel) I mean through chat...
Hi Bilal,
I am sorry, I do not know any website that provides free online consultancy / support for Microsoft Office.
I need to count the number of names in a column, but exclude any that have been struck through.
Greetings
Making an attendance sheet
Want 5 T=Tardies to couny as a 1
Ex. 28 periods a week one has 12 Tardies which means 2 absents so 112 periods a month in average so how or which formula can help me count 5 T=Tardies as 1
Thanks in advance
Not sure if its possible, but can you Count the Blank spaces in One Column (say Column A) if there is specific text in Column B that corresponds to the blank area. For example, I need to know how many have responded to my invitation (blanks)in column A, but have informed me they are available (Word: Available)in column B. I have tried to combine a =CountBlank with a =COUNTIF but it doesn't seem to be working for me.
Thank you!
Hi
I want to be able:
If column A = certain text, then I want all the Values in Column B(same row) be summed together:
For example:
Profession Mark
Nurse 5
Doctor 2
Careworker 2
Doctor 6
Doctor 7
Nurse 8
Nurse 5
Nurse Doctor Careworker
(sum) (sum) (sum)
Hi
Never mind, I figured it out.
thank you
Hello,
I want to count the number of blank cells from a specific character.
The problem is that the range is extended with one cell, each day. Can you automatically extend that range each day?
Also, eventially the specific character will appear again in later cells, then I want it to start the count of blank cell from this "new" specific character.
Example:
The letter P is in cell B2 the range is B2:G2, hence 5 blank cells. Two days after I want the range to be B2:I2 i.e. 7 blank cells.
Another three days later the the letter P appears in cell K2 (range is now B2:L2), hence it should start the count from K2 i.e. 1 blank cell.
Thank you
Hope I didn't complicate the explaination?! =)
Thank you
I am trying to identify and account for duplicates. I would like the COUNTIF formula to tell me if there is a duplicate anywhere else in that column. If a unique value it would result in a "1" and if a duplicate is found it will result in a "0." However, I would also like the 1st occurance of a value to result in a "1" and all other duplicate values to be a "0." How can I get that 1st occurance of a value to result in a "1" separate from its duplicates?
=IF((COUNTIF($A$1:$A1))=1,1,0)
This is so useful Svetlana, and your answers to the questions here helped a lot today at work. Thanks!
Hi. i have 6 sheet tabs. The 5 sheet tabs are the summary report of 5 different branches and the other sheet tab is for my summary report. All column A of 5 sheet tabs refers to different sports while column B refers to number of votes for different sports. I need to get the top 3 sports for all branches.
For example,
In Branch 1, the top 3 sports listed are basketball, football and volleyball with 85, 74 and 65 votes. For branch 2, the top 3 listed are tennis, basketball and badminton with 65, 54 and 32 votes and so on. How will i get the top most sports from 5 different branches that will also add the votes if for example all branches have basketball in their list? Hope you can help me with this.
Thank you
Hi,
I have seen this. When i feel that i have need more than i will find out. But for this time it is very helpful to me. Thank you.
Hi,
I want to know from you that how can I count the two cell data at a time like:
ColA Col B
1 M
2 F
3 F
6 M
2 F
3 M
I want to know for 1 how many M of F and for 2 how many M or F Like 
If you have got answer pls. share with me. Even I also need solution.
Can you please tell me what the formula is if I want when if a # is less than 35 then add $5.75 if it's greater than 35 add $12.75 please help thanks
Hi Karla,
I am not sure I can exactly follow you. Do you want to enter a number in some cell based on a value in another cell? For example, if a number in cell A1 is less than 35, than put 5.75 in cell B2, if it's greater than 35, than put 12.75? And what if it is equal to 35?
Does the COUNTIF function only compare the first 15 characters? I use it to check for duplicate values. It flags 2 of my cells as being duplicates. The only difference is the 16th character.
I tested this theory of mine using the right 15 characters of a concatinated string. That fixed the problem.
Hello Rick,
Thank you for the information and the update.
To my best knowledge, the COUNTIF function has 255 characters limitation since Excel 2007. And one can bypass this limitation by using the Exact function in array formulas.
The issue you describe may occur either in a very old version of Excel, or more likely, if your sheet contains only numeric data and Excel treats it as numbers. As you probably know, Excel has a 15 digit limitation when it comes to numbers, and after the first 15 digits, it replaces everything with 0's. Please check out the following Microsoft answer for more details:
http://answers.microsoft.com/enus/office/forum/office_2007excel/15digitnumberlimitationnontextworkaround/a49748537c3c483085622e88369d981b
I have a spreadsheet where I input my current weekly sales in Column C and last year's weekly sales is already typed in Column B; I want to make a REAL monthtodate weekly comparison at my weekly manager's meeting.
To do this I would need the weekly sales from last year in Column B to count ONLY when if I input the weekly sales figure in Column C; otherwise I need Column B "blank" or to count as "0".
Note: please keep in mind that last years weekly sales in Column B is taken from last year's monthly sales in Column A divided by 4 (accounting for four weeks in a month) whereby the value of cell B1 is "=A1/4"
So, I need Column B to display last year's weekly sales ONLY when I input last week's sales in Column C.
Can someone please help me?
Thank You,
Johann Sebastian
Hello Johann,
Enter the below formula in cell B1:
=If($C1<>"",$A1/4,"")
And then copy/paste it to the whole column.
I have one problem in my work sheet.
Pls any one help me.
I have total no. of data.
Like
Year Total 1 2 3 4 5
of Cell
1993 5 136 591 888 960 1006
1994 3 107 177 347
1995 5 408 1238 1352 1521 1581
3 2215 2414 2444
1996 5 112 1093 1144 1298 1351
1997 5 122 238 388 458 485
4 1104 1105 1432 1479
1998 5 77 88 464 467 574
5 1165 1182 1190 1374 1430
1999 5 421 480 531 844 900
4 1913 1935 2005 2019
2000 5 16 36 79 95 97
5 572 574 655 656 674
5 1209 1275 1280 1481 1507
3 1834 1851 1875
i want the when ever year combined that time total of cell sum.
Hello Dushyant,
I am sorry, your data posted in the comment got distorted. For us to be able to assist you better, please send your workbook to support@ablebits.com and include the result you expect to get. We'll try to help.
HELLO,
Please help me in this problem
Formula: =IFERROR(LOOKUP(C2,Sheet1!$A$30:$A$39,Sheet1!$B$30:$B$39), "")
Required condition: If C2 cell in not equal to A2 " additional conditon to be added in above formula with the existing.
Hello Vamsi,
Please specify what exactly additional condition you want to add, and in what part of the formula you want to add it.
Hello,
DESCRIPTION OF FORMULA MADE IN EXCEL WORKSHEET.
C2 WILL BE ENTERED BY USER.
In D2 the entered value of user will be searched (LOOKUP)in other worksheet with in specified range of column (Sheet1!$A$30:$A$39) and output will be the specified range in other column (Sheet1!$B$30:$B$39).
If there no entry in the cell (C2) by user the cell (D2) will remain Blank.
Here my requirement:
In addition to above condition the value entered in C2 should not be equal to Value of A2, if equal then it should be an error message (N/A).
PARAMETERS OF THE CELLS in worksheet 2:
A2 DUTY CODE NORMAL
C2 DUTY CODE OVERTIME
D2 TIMING OF DUTY
Sheet1!$A$30:$A$39  Worksheet 1 A30 to A39 are duty codes
Sheet1!$B$30:$B$39  Worksheet 1 Duty timing
END
Hello Vamsi,
If you can send us your sample workbook at support@ablebits.com and we'll try to find a solution.
Hi Svetlana,
What formula can i use if i want a value "N" in 1st coulmn based on blank cells that appear in 2nd column and want value "Y" in 1st column based on nonblank cells that appear in 2nd column. Please advise.
Y/N Names
N
Y abc
Thanks
Hello Rachana,
You can use the following formula for your 1st column:
=if(B2<>"", "Y","N)
Where B is your second column.
Thank you Swetlana!!!
One more help i would need on a formula.
I have one column "A" with names e.g. Mike, Tony etc goes till A12, and the names are repeated.
other column "B" having some numbers with % sign e.g. 90%, 80% etc.. goes till B12
Now i want to count non blanks ones in B1:B12 for Mike in B1:B12
I tried as below , but it didnt work. Please can you advise which forula fits better..
=countifs('Block Inspections'!B1:B12,'Block Inspections'!A12:A150,"=Mike")
Thanks,
Rachana
Hi Svetlana,
I have three columns that are populated via a pivot table (in tabular format). They are site (a), manager (b) and rep (c). Only one cell populates per row across the three columns. I'm trying to build 1 formula that can be applied to all rows in one column (d), that counts the # of items entered in a given month for either site, manager or rep...depending on which column (ac) is populated in that row.
I recently built the below formula that looks at the rep column first. If it is populated, it counts the # of times that reps name shows up in column b on the data tab. If it is blank, then it knows it needs to refer to column b for the manager name and then count the # times that managers name shows up on the data tab in column f.
=IF(C6="",COUNTIF(DATA!$F$3:$F$3000,B6),COUNTIF(DATA!$B$3:$B$3000,C6))
I need help adding an additional (nested if or and) function that says if both column b and c are blank, refer to column a and then search the # of times that site shows up in column d of the data tab. Let me know if I am not explaining this well enough. I appreciate your help in advance!
Thanks!
Hi Amber,
I think we will be able to help you better if we can have a look at your data. I possible, please send your sample workbook at support@ablebits.com.
Hellow Svetlana Cheusheva, Forwarded the workbook file by mail for your guidance and support. Hope you can help me.
Thanks
I need a formula that says:
if column I = cell A1 count it, but if column I is blank then go to column g only count it if column g = cell A1
If a sheet arranged as bellow
Col A col B col C
Name rank age
Arun dy co 25
Philips si 30
Joseph dy co 27
Vinod dy co 29
stphen si 26
Then how can count how many dy co become between the age 25 to 30 by using excel formula.
Please help
Hello Satheesh,
You can do this using the following COUNTIFS formula, that returns the count of "dy co" between the age 25 to 30, inclusive:
=COUNTIFS(B:B,"=dy co",C:C,">=25",C:C,">=30")
The below one returns the count of "dy co" between the age 25 to 30, not including 25 and 30:
=COUNTIFS(B:B,"=dy co",C:C,">25",C:C,">30")
For more info about using the COUNTIFS function with multiple criteria, please see this tutorial:
https://www.ablebits.com/officeaddinsblog/2014/07/10/excelcountifsmultiplecriteria/
One more help i would need on a formula.
I have one column "A" with names e.g. Mike, Tony etc goes till A12, and the names are repeated.
other column "B" having some numbers with % sign e.g. 90%, 80% etc.. goes till B12
Now i want to count non blanks ones in B1:B12 for Mike in B1:B12
I tried as below , but it didnt work. Please can you advise which formula fits better..
=countifs('Block Inspections'!B1:B12,'Block Inspections'!A12:A150,"=Mike")
Thanks,
Rachana
Hi Swetlana,
Just to add on above query, i am counting them on another master sheet.
Thanks,
Rachana R
Hey Swetlana,
I just tried as below as it worked :)
=COUNTIFS('Block Inspections'!$A$12:$A$150,"Mike",'Block Inspections'!$D$12:$D$150,"")
Thanks,
Rachana
Oops i tried as below with the non blank ones and it worked. :)
=COUNTIFS('Block Inspections'!$A$12:$A$150,"Mike",'Block Inspections'!$D$12:$D$150,"")
Hi i am trying to come up with a formula that I can find the duplicate order ID in one column and have it subtract the dates in another column so I can figure out how long it took to ship.
Hello Jeremy,
I am sorry, your task is not very clear. If you can send your sample to our support team at support@ablebits.com, we'll try to help.
Hey Swetlana,
Please can you advise on below 2 quesries.
1) I have A column that shows a start date e.g. 1012014 and the task needs to be completed by 6 weeks. So i want the B column to auto calculate the date of completion that is 6 weeks from the start date. Please can you advise how can formulate this one. And like also want to calculate for other target dates i.e. after 26 weeks in another column and 52 weeks in another column.
Col A(start date) Col B(6 weeks target date)
1012014 ? (How to auto populate date)
1) Now I have two columns as below, please can you advise.
Column B shows  target date to be completed and the column C is showing actual date for the task completed. Now i have column D where i want value Y or N based on date of completion is greater or lesser than the target date. So if completion date is greater than target date than it should show N on Column D and similarly Y where the date is equal or lesser than the target date. Please can you advise how can set a formula for this one.
Col A Col B Col C Col D
start date 6 weeks target date Actual date Y or N ?(auto populate)
01092014 ? Auto populate 20/10/2014 N  Value to auto populate
Thanks,
Rachana
Hello Rachana,
Here's the formula for column B (cell B2): =A2 + 6*7
And this one is for column D: =IF(C2<=B2, "Y", "N")
Thank you Svetlana :) It worked
Now when i use =IF(C2<=B2, "Y", "N") and along with that i want to add one more criteria that if the completion date column is blank then the Y/N column should remain blank. Please can you advise.
Thanks,
Rachana
Rachana,
Assuming that your "completion date column" is column C, here is the formula:
=IF(C2="","",IF(C2<=B2,"Y","N"))
Hey Svetlana,
Lets say an A column has Start date that is blank and i want to add a formula on C stating that if A1 is blank then C1 should be blank but A1 has a start date then it should calculate A1+6*7 for the date to auto populate on the 6 weeks date. Please can you advise.
From your previous reply i see we can use =IF(A1="","") for having blank cell but not sure how to further add the criteria as above. Please advise me.
Thanks,
Rachana
Thank you Svetlana for formula =IF(C2="","",IF(C2<=B2,"Y","N"))
It worked as desired. :)
I would need your help on below to get a formula.
I have a A column with start dates in the format e.g. A1= "01/01/2014", A2= 1/3/2014, A3= 1/2/2014. Now i want column B to auto enter the value in B1 = January, B2= March, B3= February..
Just to highligh that the Start date is not in order hence the months are not in order too. please advise which formula can be applied to have respective months value in B column based on Start date in A column.
Thanks,
Rachana
Rachana,
You can simply enter the formula =A1 in cell B1, and then copy it down to other cells of column B. This will populate column B with dates corresponding to column A. Then select column B, right click and click Format Cells > Number tab > Custom, and type mmmm in the "Type" box. mmmm is the date format that displays months only.
Hello Svetlana,
I'm looking to count the number of occurrences of text in column A while checking the value in column B to be >0.
Let's say if my Text repeated for 5 days a week having value higher than 0. I need 5 in front of that text.
Appreciate your help!
Syed
Hi, Is there any formula to capture data from other cell if a particular cell is blank, for example A1 and B1 are the cell,if A1 is blank then data should be capture from B1.
Regards
Ashish
Hi Ashish,
Try this formula: =IF($A1="",$B1,"")
thanks Svetlana,it worked and saved my almost 10 mins from daily my work :).
please help me Svetlana. I have a problem about sequence of numbers that is a lot to be able to read just one in a column. eg: column A there are numbers
9,1,2,3,4,2,2,5,6,2,7,5,4,8,9,2,10, then I would like to read into 1,2,3,4,5,6,7 , 8,9,10. how the formula? thank you very much
Hello Handri,
I am sorry, it is not very clear what you want to get. If you can send the source data and the expected result to support@ablebits.com, our support team will try to help.
I am trying to use the count unique values function as part of a COUNTIFS equation, I need to count the amount of 'P's in one column, that have a unique number in another column. I can't get the unique equation to work though. Please help.
=COUNTIFS(E$7:R$42,">0",F$7:S$42,"P",E$7:R$42,"=1") Where did I go wrong?
Hello Zack,
You need a helper column that will show whether the number in another column is unique or not.
The formula can be as follows:
=if(countif(D:D,D2)=1,1,0)
Then you can use a value from this helper column as one of the conditions for your COUNTIFS.
As I can see in your formula, several columns are used for each range. Is this correct?
Yes that is correct, the way that we have the page formatted is largely for viewing ease.
Hi Svetlana,
I have data in Col that A.
I want to know no of lines between each pipe ()
Expected Result in B col for
first pipe is 0
Second Pipe is 6
Third Pipe is 7
Data

1
ZGF1213420
S ILIYAAZ
S AZEES MIAH
345322
29

2
ZGF0316174
U SUMALATA
NARASHIMHA
MURTHI
53/1
21

Thanks in Advance,
Khalid
Hi Svetlana,
Lets say an A column has Start date that is blank and i want to add a formula on C stating that if A1 is blank then C1 should be blank but A1 has a start date then it should calculate A1+6*7 for the date to auto populate on the 6 weeks date. Please can you advise.
From your previous reply i see we can use =IF(A1="","") for having blank cell but not sure how to further add the criteria as above. Please advise me.
Thanks in advance
Rachana
Hi Svetlana,
I am using formula =IF(K5>=$A$1, "True", "False") where A1 is 01/04/2014. Now I want to add additional criteria to it as below, please can you advise.
I have A1= 01/01/2014 and B1=31/03/2014
I want C1 to calculate if D1 cell has the date that is >= A1 and <=B1 then put value True otherwise false.
Thanks in advance
Rachana
Rachana,
You don't need the COUNTIF function for this task. Just add one more IF statement to your formula:
=IF(D1>=$A$1, IF(D1<=$B$1, "True", "False"), "False")
Thank you again Svetlana!!!
Please help on another query.
I am using a formula  =COUNTIFS('62652 Weeks'!$F$4:$F$52,"=Mike",'62652 Weeks'!$I$4:$I$52,"=April",'62652 Weeks'!$J$4:$J$52,"=True",'62652 Weeks'!$Q$4:$Q$52,"=Y")
I needed the total count of Ys avilable in sheet 1 provided it matches the criteria that is  Col F to find the name e.g. Mike, Col I to check the month e.g. April, Col J to count True and then Count Y from Col Q.
For some reason it doesnt give me any formula error neither it counts Y in the mastter sheet.
Regards,
Rachana
Thank you Svetlana!
Thats quite helpful:)
Hi
I have Excel File with more than 1000 columns and rows and in some rows/columns, there are email addresses. I want to collect all emails only in one column. Can you please guide
I have sheet 1 "South", contains a range of criteria.
In Column A lists codes containing N or M followed by a number ie N2, M4 etc. In Column C lists New Birth, 011 age, 11+.
The data above I want to both be calculated so how many New Births in N or M (any code with N "N*", are there. No mater what the number is)
with in a specific date range ie 1/4/1430/6/14, which I know would equal QTR 1.
The question I want to ask are:
How many New Births in N (Newtown) were there in QTR 1 (1/4/1430/6/14)
I ideally this new data I would like to be linked to a new work book, but that calculates and updates when the data changes in work book 1.
Many thanks in advance
I have work book 1 which collates a range of data.
Column A  codes N2, N17, M4, M2 etc(only N and M are used, although the following numbers vary)
Column C  New Birth, 04 years, 5+ years
Column F  shows dates of data entry.
My question to ask is:
How many N or M (column a) have Newbirths (Column c) between the dates 1/4/14 to 30/6/14 using the dates in column F
Then how many N,M 04 yrs in above dates etc
There will also be 3 further date ranges, 01/07/14 to 30/09/14, 01/10/14 to 31/12/14 and finally 01/01/15 to 31/3/15.
hope this makes sense
Ideally I would like to ask additional questions for calculations possibly in a new work book, but with all data linked so it would be constantly updated. I have briefly learnt how to link 2 workbooks together.
apologies I have sent the same question
Hi Lydia,
Your second comment made the task clearer.
Since you have to sum by several conditions you will have to use the COUNTIFS function rather than COUNTIF. The formula can be as follows
=COUNTIFS(A:A, F2&"*", B:B, F3, C:C, ">="&F4, C:C, "<="&F5)
Where:
F2  the cell containing either N or M
F3  the cell with "New Birth" etc.
F4  the sell with the "start date", e.g. 1/4/14
F5  the cell with the "end date", e.g. 30/6/14
Naturally, you can put the above conditions directly into the formula, but in this case you will have to rewrite it for each set of conditions.
You can also use the above formula in another worksheet, by adding the worksheet's name before the ranges, like this:
=COUNTIFS([Book1.xlsx]Sheet1!$A:$A,F2, [Book1.xlsx]Sheet1!B:B,F3, [Book1.xlsx]Sheet1!C:C,">="&F4, [Book1.xlsx]Sheet1!C:C,"<="&F5)
Thank you so much Svetlana, you are a a life saver, thank you so much for your time. I am trying the first part then I will venture on to the answers going in to another worksheet. But I am guessing or hoping IO can use the paste link to do this! Thanks again
Hi there
I was wondering if I can use the COUNTIF function with a very specific conditional test. I have a set of data by date where for one date in column A, there might be 4 corresponding numbers in column B. Example:
9/8/2013 43
9/8/2013 45
9/8/2013 36
Is there a way to use COUNTIF to only count the appearance of a number greater than x once per date? For the above, I would want it to only count once if the criteria were ">35".
Thanks,
Steve
Hi Steve,
Since you want to count with two conditions, you have to use COUNTIFS rather than COUNTIF:
=COUNTIFS(A:A, "9/8/2013", B:B, ">35")
Hi there
I want my excel spreadsheet to count letters in a row but with a unique condition behind each letter i.e A=1, B=2, C=3, D=4, E=5, F=6 G=7
so if the cell in row F has b and row G has E total will 7
is there a way to do this?
jai
I have an excel spreadsheet that lists the different subjects that a student has undertaken.
Example (cells N2:N9):
Information Technology
Physics
Advanced Maths
General Maths
English Research
English Critical
English Academic
Computer Applications
I would like to insert a formula underneath this (in cell N10), to look at the subjects the student has undertaken, and return a result based on this search. I need to identify if a student has undertaken all 3 English subjects listed. I have tried multiple formulas, but cannot seem to get the right outcome, as I am searching on a range of cells (N2:N9).
Thanks
Matt
Hello Matt,
Please try the following formula.
=IF(COUNTIF(N2:N9, "*engligh*")>=3, "Pass", "")
If it is not what you are looking for, please describe the result you expect to get in more detail.
I'm having an issue with compiling certain data.
I'm trying to find an overall percentage of participating users for certain questionnaires they have answered. For example, I have:
=(COUNTIF('Sheet 1'!$C4:$Z4, "*CHI*")+COUNTIF('Sheet 2'!$C4:$Z4, "*CHI*")+COUNTIF...and so on for 32 sheets.
While that's fine and all for those who participated in each questionnaire: ...+COUNTIF('Sheet 32'!$C4:$Z4, "*CHI*"))/(COUNTIF('Sheet 1'!$C$1:$Z$1, "*CHI*")+COUNTIF(...up to sheet 32.
$C$1:$Z$1 being my headline, line 4 being this particular individual's responses (where "CHI" might not exist in certain sheets)
The issue I am having is that there are many individuals who couldn't complete all the questionnaires (we're talking hundreds). I don't want to have to go sheet by sheet, line by line to find and specifically eliminate which sheets they didn't complete to get the proper percentage (they didn't do sheets 12, 14, 2022, 25 for example, and I would have to delete those COUNTIF segments from the formula, just for that one cell so those extra 6 aren't mistakingly reducing the individual's percentage).
Is there an IF or COUNTIF formula that can count an entire row only if there is a timestamp (proof they filled the questionnaire) next to the individual's name?
I want to count how many names appear in range C5:C11 from a list of names that I have. That list I use in drop down menus in the range C5:C11. My names are Reid, Tyrone, Chris, and Paul. I can select those names from the drop down menu. I want to count how many names from the list are in that range. I tried countifs with not sucess
Hello Omar,
You can use one of the following formulas:
=countif($C$1:$C$5," Reid") or =countif($C$1:$C$5,F2)
Where cell F2 contains the name Reid.
Hi  I'm trying to compare two worksheets to see if an email address on sheet 1 is in a range of cells in Column A in sheet 2. I've tried using vlookup and ifcount formulas but neither are working. I removed all formatting from both sheets and I'm using Excel 2013. Can you please suggest a formula or point me in the right direction? Thank you!!
Hi Meg,
Please see this article:
https://www.ablebits.com/officeaddinsblog/2013/09/05/comparetwocolumnsremoveduplicates/
Alternatively, you can use the COUNTIF function. The formula will be as follows:
=IF(COUNTIF(Sheet2!$A:$A,$A2)>0,"Duplicate","Unique")
Just wanted to say a big THANK YOU for this article. Buried in the article is a short paragraph about how to use the symbols as text in a countif(s) and it has really helped. Thank you for taking the time to publish this comprehensive explanation.
need to distinct sum ,distinct count,Distinct Average
values in cell can be blank.
if have found two way to do distinct count but could not found how i can do the other
=SUMPRODUCT((A3:A21"")/COUNTIF(A3:A21,A3:A21&""))
=COUNT(IF(FREQUENCY(B3:B21,B3:B21)>0,B3:B21))
I have a very long table. This is just an example of the table:
A1: Joe
6:00 am 7:00 am 8:00 am 9:00 am
User Date Activity Description
Joe 11/4/14 6:10:08 am Build Build castle
Joe 11/4/14 6:10:10 am Build Build castle
Joe 11/4/14 6:15:08 am Build Build castle
Joe 11/4/14 6:30:08 am Build Build castle
Joe 11/4/14 6:39:08 am Build Build castle
Joe 11/4/14 7:10:26 am Build Build castle
Joe 11/4/14 7:20:39 am Build Build castle
Joe 11/4/14 7:25:26 am Build Build castle
Joe 11/4/14 7:50:39 am Build Build castle
Robert 11/4/14 8:00:00 am Build Build castle
Robert 11/4/14 8:10:08 am Build Build castle
Robert 11/4/14 8:15:00 am Build Build castle
Robert 11/4/14 8:20:08 am Build Build castle
I need to find a way for excel to give me how many time gaps are greater than 10 minutes between 6am and 7am, and input that in one cell. Also, I need in another cell the total time of those 10 minute gaps for that same hour. I need these calculations only when a specified user is entered in cell A1.
Can you help me with this?
Thanks, Willie
Hi im wanting text "IN" to equal 2 when typed in how do i use countif to add 2 toa total amount
thanks Liam
Hi,
Please help
I have data this
Folder Pax
TU1 2
TU1 3
TU2 1
TU2 5
TU3 6
TU3 1
And I want
Folder Pax
TU1 5
TU2 6
TU3 7
Hi John,
The quickest and simplest way is creating a pivot table based on your data. Just drag the Folder column into the Rows area and the Pax column into the Value area, then select the data and copy it to the location you want.
For more information about PivotTable, please see this article:
https://www.ablebits.com/officeaddinsblog/2014/11/19/excelpivottabletutorial/
I am trying to do something much simpler. I would like to count the number of different items in a list and just by specifying the column as a range. Can this be done?
The closest I have got is
=SUMPRODUCT(1/COUNTIF('Sheet1'!A1:A8000,'Sheet1'!A1:A8593))
Where there are 8000 lines in the spreadsheet. However if I put in 8001, I get a divide by zero error. It would also be preferable if I could ignore the top line as it is headings but I can jus 1 if needed
Hi Svetlana,
I have a main summary sheet where i want the count meeting below criteria in a cell.
I have sheet1 and summary sheet. Sheet1 has Col F with all the names of the officer like Tina, Mira etc. Col I has months like March,April etc. And Col J has the target dates of visit after 6 weeks from the tenancy date. This col J also has the date in different year 2013, 2015,2016 so on, e.g. 01/05/2014, 31/03/2015 etc.
Now from sheet1, a cell in summary sheet should check for the names from Col F e.g. Tina, then it should take count all the April Months from Col I against Tina's name, and should count only the dates that fall between 01/04/2014 till 31/03/2015 against Tina's name.
1) To select the names from F col from sheet1
2) to count months against a name from col I
3) to add a condition that the visit target date  6 week which is in col J should fall from 01/04/2014 to 31/03/2015 against the selected name
Please can you advise a formula for this.
Thanks in advance,
Rachana Ranpura
I have a Question and its probably easy for you to work out, but it's bugging my head out.. Ok, I have some Data and its in columns Based format running down one column each L, A, B, each l,a,b, if that makes sense running down the Spreadsheet is, the L value is Averaged out and each L ,A, b,value is posted to each other Cell averaged out.
Each L,B,A Value is averaged out,OK. The value is posted to another Cell and the Cell calculates a Positive value, Greater Than Positive or a Negative, the worked out Value is posted to another cell. The then value is Dynamic, meaning its not the same based on Human input moving a threshold up or down. It reproduces a value thats not constant until a actual result is put into the formula Cell.. I want it to collect a value from a cell with a formula thats Dynamic....
I want to work out a Greater than and less on this Dynamic Cell. But its producing a Zero Result this Dynamic.
If at all you need a video or screen representation then i will look at that option..
Hi Svetlana,
I am trying to count the number of cells in a column which are all populated with text. I am trying to count the amount of cells in that column which contain less than 10 words? how do i do this?
Many thanks,
Courtney
I have a worksheet that currently counts the number of rows in a worksheet that are populated in certain columns:
=COUNTIFS(Andrew!E2:E998,"*",Andrew!F2:F998,"*",Andrew!H2:H998,"*",Andrew!J2:J998,"*")
this method of conting is used to count for each tab in the workbook and is sumarised with the formula: =SUM(F20:N20) to produce an overall value.
There are 5 of these sheets that are linked into a master sheet that counts the =SUM(F20:N20) from each book and produces a grand total.
Is there a function that will allow me to produce a list of rows that satisfy the formula buy way of a report?
Hello Svetlana and everyone,
I had a small question regarding data analysis. I tried looking COUNTIF and FREQUENCY. I want to quantify following things in my data set
I want measure the number of events where 0 appeared 5 times or more, consecutively in a given data set. (e.g.: 000001100010000000 (here zero appeared consecutively, twice, 0=5 and 0=7))
Is there any formula to do this?
Thanks in advance
Cheers
Ameya
Hello,
Thank you for this post that I must admit is very useful for people introducing Excel. I would like to know something, I'm trying to put out duplicates from a column but the thing is, by adding all the data I'd like the formula to count cells from number (scale number) 402 to 460 and so on for 502 to 560 etc.
Here is a look on the formula :
=SUM(IF(FREQUENCY(MATCH(A2:A749,A2:A749,0),MATCH(A2:A749,A2:A749,0))>0,1))
and then this is what i'd like to add inside the previous one :
=COUNTIF(A2:A749,">=502")COUNTIF(A2:A749,">560")
A2:A749 datas are numbers ONLY
To sum up, I want to count all the cells except duplicates and only from number 502 to 560
Thank you for your advice!
Sam
OMG! Thank you!!! This helped out so much!
Thank you so much for taking the time to share your knowledge! I was wondering, is there a way to calculate the % of numbers within a column that are greater than another value? I work in education, and I have very long lists of students names and their scores on any given assessment. I would like to, for example, calculate the percentage of students who scored greater than or equal to 42%. Is this possible? I can sort and do the calculations manually, but the larger my lists get, the more errors I have. Thank you!!!
A B
Bill 24%
Chris 82%
Ringo 19%
Paul 96%
John 94%
George 88%
Mick 16%
=COUNTIF(tblJanuary[@[1]:[31]],"V")+COUNTIF(tblJanuary[@[1]:[31]],"A")+COUNTIF(tblJanuary[@[1]:[31]],"S")+COUNTIF(tblJanuary[@[1]:[31]],"H")
I want to count the number of certain values (V, A, S, and/or H) in row, but I do not want it to count any other values I might enter. I tried the above formula but it still counted if I enter something other than V, A, S, H. Any ideas?
Nevermind  Actually, it is working! Happy Holidays!
=AND(COUNTIF($A$1:$P$261,A1)>1,A1>0)
Good day,
I am trying to highlight all duplicate dates that match on a worksheet, the above formula is a conditional format that works, but it also highlights text values.
I originally wanted to create a conditional format that referenced a column on another worksheet(called A), and then highlighted those dates that corresponded in a table on worksheet(called B). But I could not get it to ignore blank cells or cells with text in them. I tried many, many, times.
I am probably too much of a novice in my understanding of how formulas work.
Any help you can offer would be very much appreciated.
hi Svetlana,
how to count cells by identification of the cell color.
Hi, below is my excel sheet , can we write a power query to find number of session( start to End)
Expected result for below excel is 2 , if suppose A12 had End Session the count to be 3.
A
1 Start session
2 ...
3 ...
4 ...
5 End Session
6 Start session
7 ...
8 ...
9 End Session
10 Start session
11 ...
12
13
I do have a huge data in working excel (taking lot of time using vba script ). please help to find a solution.
Thanks in advance,
Sunil
Hi, below is my excel sheet , can we write a power query to find number of session( start to End)
Expected result for below excel is 2 , if suppose A12 had End Session the count to be 3.
A
1 Start session
2 ...
3 ...
4 ...
5 End Session
6 Start session
7 ...
8 ...
9 End Session
10 Start session
11 ...
12
I do have a huge data in working excel (taking lot of time using vba script ). please help to find a solution.
Thanks in advance,
Sunil
Hello, I am making a spreadsheet for a sales team. I have the formulas to count the deals they have. I have salesperson 1 (column I) and salesperson 2 (column j). My formula is ((countif(i5:i29,"mike")+(countif(j5:j29,"mike").
However, when there is a salesperson two, then both sales person 1 and salesperson 2 are
Only allowed a "half deal" meaning it should
Count .5 for both rather than full.
Can you help?
Thank you so much
i have got many sheets in my workbook.but the problem is that i have to create pivot tables of only those sheets which end with Total??? Please help please Thanks in advance
I want to know how to use the COUNTIF Formula if we want to count number of customers whose second letter of their names is as "A"
Hi Hoda,
Try =COUNTIF(A2:A100,"?A*") where A2:A100 is the names column.
Very useful for analyzing the marks scored by the students. I want a formula (countif function) for finding the marks scored by the students from 1 to 4 (like that 5 to 17; 18 to 24; 25 to29; 30 to34; 35 to 44;45 to 49). Range is marks scored by students for 50 marks. I kindly request you to please intimate the criteria for which I will be ever grateful.
Regards,
Sujatha Victor
Hi Svetlana,
Very happy new year to you!!
Please can you help me on below query.
I have a table to calculate balance leaves each time number of leaves taken are entered it would deduct from the available no of leaves for the period. Now i am trying to apply the formula =SUM($K$8G12) to the whole column M. Now i want to add a condition that if the Col G is blank, then M should also have blank value otherwise it would count as per formula =SUM($K$8G12) which is Total no of leaves  leaves taken = balance leaves.
Thanks,
Rachana
I'm trying to count the output of an IF function. It seems that the COUNTIF function can't read the output of the IF function as data, but only the function behind the output. Is this true? Can I use COUNTIF to count output form an IF formula?
Thanks,
Lissa
Hi i need to count the sum of the failed but the problem in it i that one column there are two different data i mean on the same day
thanks
Hello,
I want formula like this:
for ex : if row 4 have value in anywhere will find and then take text or value from upper row's  example formula found f4 value then will take f3 text or value...
Thanks
Hi, i want to use countifs function , to assign rank to the people
FOr exp.
Column A: List Emp Name
Colum B: contains Numeric figures achieved by them
Column C: in this i want Rank( high to low), means the employee got the highest number in the list, should be ranked as "1", as he is the topper.
Can i use it for this ?
On a yearly spreadsheet, I have numerous entries with dates throughout the year. If I want a count of how many entries there are for a given month, January, February, etc., how would I do that? Also, the entries are on one worksheet and the count will be on a different worksheet (in the same workbook), how would that formula be written?
For example:
1/10/15
1/18/15
2/17/15
3/4/15
Count=2 (for January)
I'm trying to count non duplicate using
=SUMPRODUCT((COUNTIF(L13:L567,L13:L567)=1)*(L13:L567""))
but when I filter other column to unique name, the total remaining the same. How it will be possible by using same formula? Thanks.
Unfortunately, COUNTIF processes hidden (filtered) cells as well.
Please have a look at the following article how to process only visible cells:
http://www.exceluser.com/formulas/visiblecolumninexceltables.htm
Need some help here I have analyzed 10 Columns of 190 numbers and have counted 321 matches I want to take the 321 numbers scattered throughout the various columns and put them in another column in order of how they appeared. Any idea how I could lookup, find and get the data into a new column? The thing is as new data goes in the numbers of matches can vary between 1 and 1900
Thanks
Hi
I want to be able to do a COUNTIF across 2 spread sheets but for 1 cell in both sheets, so D2 in one spread sheet will be the same as D2 in the other. However, I want to use the count if option to do this. So if D2 was blank in one sheet, it would be blank in the second sheet, but if D2=2 in the first sheet then it would be 2 in the second.
Currently the first sheet will be blank but the second sheet will be 0 as it is linked to the first sheet. But we need this to be blank.
Hope this makes sense, thank you.
Hi  hoping you can help.
I need to count column B (which are various ID numbers), remove the duplicates but only count them if Column A says "BIP" and Column F says "Active"
Is it posible to do this in one formula??
Thanks heaps
Hello!
Im trying to count blank cells in a column in my spreadsheet, but it wants to count the whole sheet and not just the ones included in my table. How can i do it so it only counts blanks that are part of my table (they have other information in their rows). Any suggestions on how to do this?
Thank you!
Hailey
Hi Svetlana,
Thank you for your informative post and support! I dates in 2 columns: one column (M) for "original planned date of project completion", and another column (N) with "latest planned date of project completion". I want to count the projects that have a latest date later than the original planned date, i.e. "count if the date in column M is greater than the date in column N" specifically trying this formula COUNTIF(M3:M22,">L3:L22"). It is not calculating correctly  any ideas?
Thanks again!!!
Hi Donna,
The COUNTIF formula cannot help in this case because you need to compare 2 ranges. Try the following array formula (remember to press Ctrl+Shift+Enter) to enter it correctly:
=SUM((M3:M22>L3:L22)*1)
Hi I am trying to count the number of clients within ranges.
example:
all clients who are >= 10 but =10")and=COUNTIF(H3:H1659,"20")
Hi Twister,
I am not sure I exactly understand your criteria. Anyway, you can use the COUNTIFS function to count cells based on several criteria. You can find the detailed exhalation of its syntax and formula examples on this page:
https://www.ablebits.com/officeaddinsblog/2014/07/10/excelcountifsmultiplecriteria/
Hi there
I am trying to find out a way to count the dates in multiple cell range : in My excel sheet
30Sep14
30Dec14
30Jul14
30Jul14
30Jul14
30Jul14
30Sep14
30Aug14
30Aug14
30Dec14
30Dec14
30Dec14
7Oct1
30Sep14
30Dec14
30Dec14
30Jul14
30Dec14
7Oct14
there are dates in column range O3:O46,L3:L47,R3:R51,U3:U51,X3:X50
i am trying to get the count of date which fall in within particular months i.e. April 14, May 14,June 14.July 14.August 14,September 14.....
i am using this formula but not getting any result, thanks in advance for any help.
=COUNTIFS(O3:O46,L3:L47,R3:R51,U3:U51,X3:X50,">=1/1/2013", O3:O46,L3:L47,R3:R51,U3:U51,X3:X50,"<=31/1/2013")
I have the exact same problem as Donna (Q95). Essentially, I'm trying to get a single total of the number of projects where the actual completion date (column B, for example) exceeds the proposed completion date (column A). I’ve tried various formulas, including the one Donna noted, with no success. Any help would be greatly appreciated.
Hi Randy,
I believe you will need an array formula like I suggested to Donna. You can find a few more examples in my recent article: Excel array formula examples for beginners and power users. Hope this helps.
Hi, I have a workbook with about 6 worksheets.
Each worksheet has to be filled with various values name age ....
the last worksheet is a 'report worksheet' that has to pick up input data per month from the other worksheets, undergo some formulas and then display the result.
This is all fine.
My problem is the other worksheets are filled in on a daily basis on the same sheet over many months BUT the report has to disaggregate the data by months to be input into the report. n.b. There is a month column.
Now if i have a formula such as =COUNTIF('SHEET1'!AF9:AF608,"FEMALE")
how can i manipulate the formula into picking up the no. of 'females' in 'sheet1' in march only
n.b. there is a seperate 'report worksheet' for each month.
hi Svetlana Cheusheva..
I think you are a MVP.
I had gone through the your website and found that you have helped alot of people in solving excel problems. .
I really appreciate your efforts.
I want to be excel expert like you tell me what should I do for that...
God bless you..
Hello Bharat,
Thank you very much for your kind words. No, I am not an MVP, but I am lucky to work with very talented and knowledgeable people and I've learned a lot from them. Reading also helps : )
You're really great!!
Hello i am having a Count if issue
the formula i am using is:
=OFFSET('Raw Data'!$K$5,1,0,COUNTIF('Raw Data'!$K:$K,">0"))
i am using this in name manager to automatically update a control chart as i dump data in my "Raw Data" tab.
the chart is a representation of a shipments date (x axis) and the analysis of the shipment on that date.
the issue that i am having is that the formula is not counting the entire column. Furthermore my chart is still picking up the zeros
there is a large amount of entries in the column (J5J65 the formula above stops at J26. i can not figure out why.
Im sorry
in the range above i mean K5K65 and stops a K26
Hi there,
Good day to you, i have a XLS with 2 Tab Aging and score card. I have different value for column "W" in aging tab and i would like calculate the below.
1. to calculate the total for all the different texts which are not "abc" and with a specific aging day.
** Please Help**
2. to calculate the total "abc" and with a specific aging day, which i mange to do it.
=COUNTIFS(Aging!$W:$W,"abc",Aging!$B:$B,ScoreCard!J18,Aging!$N:$N,"<15")
Hi Svetlana  Hope you are fine, required small help from you, is there any formula to capture code from statment by using if formula. I have 34 Codes, need to capture below code if they come in different entries, Example for entry : XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX & /AC04/ XXXXXXXXXXXXXXXXXXX, in this case AC04 is code. want to capture below code by using if formula, they can start AC or AM or BE or AG or BT or MS or PY or RS.
1 AC01
2 AC02
3 AC03
4 AC04
5 AC05
6 AC06
7 AM01
8 AM02
9 AM03
10 AM04
11 AM05
12 AM06
13 AM07
14 AM08
15 BE01
16 BE02
17 BE03
18 BE04
19 BE05
20 AG01
21 AG02
22 DT01
23 MS01
24 PY01
25 RF01
26 RC01
27 RC02
28 RC03
29 RC04
30 RR01
31 RR02
32 RR03
33 TM01
34 X1!c2!n
Please can you advise a formula for this.
Thanks & Regards
Ashish Baddar
I have two columns. I would like to count the the no. of values in the right column greater greater than the corresponding values in left column. How to accomplish this?
Hello,
I need help with function Countif, so:
I want to count two cells for example: if cell A1=1 or cell A2=1 so count as 1, if one of these cells equal 1, count as 1, if both cells equal 1, count 1 as well. How is it possible to do with function Countif or with other function?
Thank you in advance
Hi,
I want to format Column A of a sheet. Column A has names and in columns B:M are the 12 numbers (175) associated to each name. In Q1:Z30 I have up to (depending on the day) 300 random numbers 175. I need the name in Column A to turn Pink when 9 of the numbers match the numbers entered in Q1:Z30. Since there are up to 300 numbers entered in Q1:Z30, some numbers are entered more than once. Here is the Conditional Formatting formula that I am using that isn't working:
=SUM(COUNTIF($B1:$M1,$Q$1:$Z$30))>=9
The formula is counting each instance that it matches and adding those up, and when those 12 numbers have been matched 9 times it highlights the name in Column A. I need the formula to highlight when 9 of the numbers in B:M have been matched period, not how many times they have been matched.
Thank you so much for your time!
if any cell in column b equals a certain text then count cells in column c
post jan feb mar apr may
admin 10 20
admin 25 2
asst manager 10 17
asst manager 2 28
bartender 21
bartender 30
captain 15 15
captain 13 17
hostess 10 15
hostess 25 5
manager 16 14
manager 30
manager 25 3
manager 20 2
supervisor 20 10
supervisor 15 15
waiter 25
waiter 30
waiter 20
waiter 18
waiter 10
waiter 14 13
waiter 20
waiter 25
waiter 28
waiter 30
waiter 15
8 8 11 10 4
admin 1
asst manager 1
bartender 1
captain 0
hostess 1
manager 1
supervisor 1
waiter 2
Total 8 0 0 0 0
I am trying to count how may times Toronto plays a game in the U10 age group.
Column A = Age group
Column B = Home Team
Column C = vs
Column D = Away Team
Age Group Team 1 Team 2
U8 Moncton vs Halifax
U9 Toronto vs Moncton
U10 Moncton vs Halifax
U12 Halifax vs Vancouver
U8 Toronto vs Vancouver
U9 Halifax vs Toronto
U10 Toronto vs Vancouver
U12 Vancouver vs Moncton
U8 Vancouver vs Halifax
U9 Toronto vs Moncton
U10 Moncton vs Vancouver
U12 Vancouver vs Moncton
U8 Vancouver vs Toronto
U9 Moncton vs Vancouver
U10 Toronto vs Moncton
U12 Halifax vs Fredericton
Hi
I want to know whether it is possible to get the count of cells that are not empty.
Hi Athi,
Of course, this is possible. Please check out the following examples:
Count blanks and nonblanks
how to count a data by date but including text contain like
A columns
1Mar15
6Mar15
11Mar15
16Mar15
21Mar15
26Mar15
31Mar15
a
a
how do i take all the count
Hi Shoaib,
Not sure if I understand the task correctly. Anyway, if you want to count all cells with any data in column A, you can use the following formula:
=COUNTIF(A2:A100,"<>"&"")
Please see the example in the "Count if blank or not blank" for full details.
Hi,
I need to count the number of hours for midnight charge given the criteria to be 11pm to 6am.
E.g.(1) Cell A1 9pm and cell B1 9am. the result for midnight hours should be 7hrs
E.g.(2) Cell B1 12am and cell B2 10am. the result for midnight hours should be 6hrs.
How should i input the formula?
thank you very much.
I want to know whether its possible to calculate and if yes what are the tags to find out whether the values have crossed the certain threshold and if it does can the names of whoever has crossed can be displayed
Hi Svetlana,
Thank you for this very helpful topic!
I have this question: Is it possible with a formula to count all the rows from A to D in which the sum of the cells is greater than 0 and between 4.
For example in this case, the result will be 2 :
A B C D E
1 0 1 5 0 4
2 0 3 12 0 0
3 0 1 2 0 1
4 7 2 5 0 2
5 0 0 0 1 4
Thank you very much,
Elena
Hi Elena,
Sorry, I am a bit confused. Do you mean the sum of values in columns A through D in each row, e.g. A1:D1, A2:D2, etc.? If so, it is always greater than 0 and even greater than 4 in your example. Please clarify.
Hi Svetlana,
Thank you for publishing this page and always being active to respond.
I am stuck with a Problem :
Query : Count of projects between 01/01/2015 and 01/31/2015 whose status is ABC OR XYZ.
From your forum I could do it for Count of project Less than 01/31/2015 but that will include all 2014 and 2013 projects also.
I used the following formula for this :
=COUNTIFS(Details!D17:D33,"<01/31/2015", Details!E17:E33, "ABC")+COUNTIFS(Details!D17:D33,"<12/31/2014", Details!E17:E33, "XYZ")
Could you please help out with date range for this.
Hi,
Is there any way we can figure out a formulae for this tracker. Basically tracker should automatically calculate the blood samples drawn 12 months from the day they signed the consent form.
Eg if patient signed consent in 27/07/2013 and the bloods are drawn until end of JULY 2014, the tracker should calculate signed consent + 365 days.
Thanks a lot in advance.
Hi Sat,
I think it is possible. For me to be able to suggest a formula, please explain the structure of your data, i.e. what columns contain signed consent dates and blood drown dates and probably patients' names. Also, what exactly you want to get as a result  the expiry date for each blood sample or something different?
Hey, great post, and thanks for the pointers! I have a basic timesheet for work and would like to count the days spent on each project. Are you able to tell me how I can redirect the condition to another cell? So that:
=COUNTIF(timesheet!$C$4:$G$500,"project A")
would become:
=COUNTIF(timesheet!$C$4:$G$500,"cell reference that redirects to the beginning of the row, which is where the project is named")
This way, I will be able to remove the need to enter the project name twice and the risk of an error due to billing days for project A against project B.
Thanks!
Hi Svetlana,
I am trying to figure out how to formulate a countif function where I am trying to measure exposure on certain loans on any given date. I have a bunch of loans, the amount pertaining to that loan and the respective maturity/expiry date. Essentially, I am trying to measure peak exposure from today lookng forward over the next 5 years so that I can create a graph in excel illustrating exposure over time. I would like the graph to show me how much exposure I have to those loans in year 3 in quarter 4 and how many have been repaid.
Do you have any idea how I might do so?
Many thanks in advance,
Ben
Hi Svetlana Cheusheva
hope your doing well.. please help me out .. i have attached my worksheet with this mail.
i want total value of cells A , B , & C to be calculated in Cell "D" automatically .
please show me step by step..
TERMINAL
PRICE
A
1000
B
2000
TICKET
PRICE
YES
0
NO
150
STAGGING
PRICE
STAGE1
510
STAGE2
510
PARKING
0
your support will be highly appreciated
Hello Svetlana,
I need help with the following problem. I have a column with 4 different values:
Column A
39
19
20
0
20
19
19
19
0
39
19
0
39
19
39
0
0
0
19
39
20
0
20
I need a formula that will count the number of appearances of the number 0 since the last time the number 39 has appeared. Numbers 19 and 20 are not important, but they have to be there. Basically it counts the number of times the lowest value in the column has appeared since the last appearance of the greatest value in the column. The formula will be put in column B and will have to show the following results:
Column B
0
0
0
1
1
1
1
1
2
0
0
1
0
0
0
1
2
3
3
0
0
1
1
Is it possible?
Thanks in advance!
Hi,
I was wondering if it is possible to count partial matches in the following example:
Orange juice
Apple juice
Juice
Coca Cola
So would want the count if formula return 3. I believe if I use *juice it will count only the first two, as "Juice" doesn't have anything in front of it.
Thanks!
Hi Lidiya,
You can use *Juice* and it will count all 3. The asterisk tells the formula to count all instances regardless of the presence or absence of any other characters in front of / after the word.
I have a table with numbers in Columns F, G, H, I, and J. There is an identifier in Column B.
I need the average of all numbers in Columns F, G, H, I, and J where the identifier in Column B = A14 (i.e. the value in A14).
I tried the following:
=AVERAGEIFS('HoursBackup'!F3:J1048576,'HoursBackup'!B:B,'Group Dashboard'!A14)
This results in a #VALUE! error.
I can't figure out what the problem is. Any help would be appreciated.
Ultimately, I want to make it so that the function ignores all cells that are nonnumeric or blank. In other words, I don't want it to assume that blank cells are 0 for averaging purposes.
Thanks!
I have a spreadsheets that tracks the schedule of my sales rep's from week to week. I have a column set up to count how many total appointments they have per day. In this column I use the formula =COUNTIF(tblMonday[@[9:00 AM]:[5:00 PM]],"*") so it reads all addresses as a count. I have another column set up to count only the warranty appointments for that day. In that column, I am using the formula =COUNTIF(tblMonday[@[9:00 AM]:[5:00 PM]],"(W)*") to recognize that when I type (W) in front of the address, it is a warranty call and will go just to that column. I would like to add a third column that counts only the addresses that have no (W) in front. Please... send help. :)
i want to know how calculate spreadsheets
my no is this 109110
109110
109110
how many times 109 in this range
Dear Sir/madam,
Please help.
I have a range of codes with some are duplicate in one column. I would like to count the code but for those are duplicate to be counted only one time.
Veasna
Hi Svetlana,
I have an excel table to keep a running balance of the decreasing loan amount, as payments are made (see excerpt from table below).
Currently, the formula in column D is =SUM(D2,C3) & the formula in column E is =E2D3
The problem with this is that is when I continue the formula's all the way down to #21 on the list; the $150 in D continues all the was down the list, & the $4,350 in E does the same. It stays that way until I add a new payment to column C; and then the new total continues down the list.
I don't want anything showing in Columns D & E until another payment is made. I want the formula's in there; so the balance automatically adjusts when I enter a payment, but I don't want any value showing if no payment has been made.
I thought I could accomplish this by using a COUNTIF formula.
Something like: If C is greater than zero, then =SUM(D3,C4)& =E3D4.
I'm not sure how to set the up.
Can you help me with that? Any help would be very much appreciated.
C D E
$ AMOUNT of PMT BALANCE PD TO DATE BALANCE OWING
$0.00 $0.00 $4,500.00
$150.00 $150.00 $4,350.00
Hi Svetlana,
Can you help please?
I am currently using the CountA function to count the cells in a column.
Some cells have ? or * in them.
I have the formula to not count these cells?
How do I achieve this?
Thanks much.
Hi!
You can count the cells with ? and * and then subtract them from the total count, like this:
=COUNTA(A1:A100)COUNTIF(A1:A100,"~*")COUNTIF(A1:A100,"~?")
I am trying to keep track of attendance of employees for the current month. I have a formula that will calculate the last 30 days for the attendance code, but instead of last 30 days I would like for current month only:
=COUNTIFS(Attendance!$B:$B,$B5,Attendance!$E:$E,"CIO  CI OUT",Attendance!$C:$C,">"&(TODAY()30))
I have 2 separate sheets  Attendance sheet which is the sheet I log attendance to, and the other sheet where I am placing my formulas on. Here is a breakdown of everything from that formula above
Counts for that employee if it meets all of the following criteria:
**Attendance!$B:$B,$B5 >> Employee Name (want to count specific employee)
**Attendance!$E:$E,"CIO  CI OUT" >> Attendance code (want to count specific attendance code)
**Attendance!$C:$C,">"&(TODAY()30) >> THIS IS WHAT I NEED TO CHANGE. I need to change instead of being last 30 days, to be for the CURRENT month only.
So today being in May, I want it to count how many times "John Doe" has had the Attendance code of "CIO  CI OUT" for THIS MONTH. It should reset next month to only include June automatically.
Hi Svetlana,
I am using COUNTIF to give me a count of results that are in a range. I want to know how many fall between 8,000 to 9,000, 9,000 to 10,000, and so on. My range of data to look at is A1A164 but within that range are many subcategories with totals for that category. My COUNTIF counts the total in the results but I don't want the totals counted. Other than making 50 separate ranges is there any other way you can think of to exclude the total cells from being included in the count?
Thank you for any help you can offer.
Hi Debbie,
I am afraid I cannot figure out any way other than you suggested :(
Debbie,
I realize it has been some time since if you inquired; my apologies. If I'm understanding your dilemma properly, is it not possible to use COUNTIFS and ignore rows where the total values have the keyword "Total" in an adjacent column?
I have summation formulas in column Z and 2 cells with a value > 0
When I use the COUNTIF(Z5:Z108,">0" ) it correctly answers 2
How can I combine that with the question "How many are SHOWN that have a value > 0 somewhat like =Subtotal(109,Z5:Z108)
Unsuccessfully tried
SUBTOTAL(109,COUNTIF(Z5:Z108,">0")) and
COUNTIF(SUBTOTAL(109,Z5:Z108),">0")
Svetlana,
I'm trying to make a formula that does not count any cell that is Blank or 0. What am I missing here? "=COUNTIF(B5:F5,B6:F6,"<=0"),(B5*B6+C5*C6+D5*D6+E5*E6*F5*F6)/G5" The B5..F6 cells could be blank or 0, but I just want a simple formula that does provides the weighted average.
Thank You!
Johan Bolle
Hi Miss Svetlana how i could count the total sum of all tools without using pivot example.
Colum A. Colum B.
Description: Total Amount:
Tools & Equipment A 3,000.00
Tools & Equipment B 4,000.00
Tools & Equipment B 1,000,00
Tools & Equipment C 2,500,00
Tools & Equipment D 500,00
Tools & Equipment C 1,500.00
Tools & Equipment E 800.00
Tools & Equipment A 3,800.00
Tools & Equipment E 540.00
Tools & Equipment E 900.00
Tools & Equipment E 100.00
Tools & Equipment E 100.00
Tools & Equipment E 300.00
Tools & Equipment B 6,000.00
Can u help me pls.......
i need to total by each tools without using pivot
Hi  I have a baseball schedule and trying to see how many times each team has a early and late game. I have used the countifs but can't get it to work.
Away Team # Vs Home Team # Time and Diamond
1 vs 2 715 P
3 vs 4 845 P
5 vs 6 715 D1
7 vs 8 845 D2
11 vs 12 715 D1
9 vs 10 845 D2
12 vs 1 715 P
10 vs 3 845 P
8 vs 5 715 D1
6 vs 7 845 D2
4 vs 9 715 D1
2 vs 11 845 D2
Thank you, Kendra
Hi Kendra,
And how do you determine whether it's an early and late game?
Hi, I have a spread sheet where I have a resident name in column A and a hall number in column B. There are multiple residents on the same hall, and sometimes the resident is listed more than once. I want to count the number of times a hall is listed, but no duplicates(i.e Joe 100
Bill 200
Joe 100
Chris 300
Maple 100. So I would want to find out how many times 100 is involved without the duplicate so the count should be 2. Can you help me? thanks,Joe
Hello,
I have the following data:
Column A Column B Column C
Estimate Percentage Percentage Expected
(days) Complete Remaining Result
0 0 Not Required
5 25 3.25
1 75 .25
Not Required 0 Not Required
So, those fields that are not a number and are equal to zero should not be calculated, but for the formula used to calculate "Percentage Remaining", it is: Column A * (Column B /100)
So, my question is: How do I exclude the calculations that are zeros and are not numbers in Column A and Column B?
Hi,
I know how to do this using PIVOT, but I have a non power user that will use a template sheet in excel and I'm trying to help him to get a count duplicates cases based on a condition.
Case Cause Dealer
447839 L CA
447839 P CA
447839 S CA
448387 L CA
448387 P CA
447646 L PH
447646 P PH
447647 L PH
447647 P PH
447648 L PH
447648 P PH
In above example CA have 2 cases and PH have 3 cases. Using PIVOT is easy to get the result rather then calculating through transactional data but the user isn't PIVOT oriented and I tried hard to trained.
How I can achieve above summary results using a function/complex formula.
Anticipate thanks,
Jose
Hi,
Can you help me out in finding the hours in an column G which is >4 <6 and =6.
time is in 4:00:00 formate and also i need to find no 4 to 6 in same column
Thanks
Shwetha
Hi Shwetha,
You can use the TIME function in your criteria, like this:
Times greater than 4: =COUNTIF(G2:G100, ">"&TIME(4,0,0))
And use analogous formulas for other calculations.
Hi Svetlana,
Looking for an idea for a function. I'm pulling data from one spreadsheet with account numbers assigned to different agents, and trying to compare it to the number of entries made in our sales database for these accounts. The problem is, the database entries contain the account numbers, but also contain other text/numbers as well. Any suggestions? Thank you!
After tinkering around with it, I think the main point of my problem is getting the *value* function to work with a cell reference as the value, rather than a constant.
Hi Svetlana,
I have some data like this in a column. If am giving formula (=COUNTIF(A1:A2000, A1)) to count the number of repetition of each number its not getting counted properly. Its taking into con sideration only few entries. May be coz character are more than 19. Is there any way to count the repetitions if the number of character in a cell is more than 19.
89XXXXXXXXXXXXXXX44
89XXXXXXXXXXXXXXX36
89XXXXXXXXXXXXXXX28
89XXXXXXXXXXXXXXX10
89XXXXXXXXXXXXXXX02
Please help me to solve my assignment I dont know how...
Count if
A B C
1. 10 20 15
2. 5 25 4
3. 3 6 2
Count if
1) 52
2) 15
3) 1525
Hello Nikki,
Here you go:
1) 52 =COUNTIFS($A$1:$C$3, "<="&5, $A$1:$C$3, ">="&2)
1) 15 =COUNTIFS($A$1:$C$3, "<="&5, $A$1:$C$3, ">="&1)
1) 1525 =COUNTIFS($A$1:$C$3, "<="&25, $A$1:$C$3, ">="&15)
Can you please give me solution for my earlier email?
Hi,
I need to count the amount of profitmaking enterprises:
Проект* Выручка Себестоимость
SAMA001_ALFA 100 90
SAMA003_BETA 120 200
...
THANK YOU
Count #projects if = Выручка>Сеьестоимость
Hi,
Supposing that "Выручка" is column B and "Себестоимость" is column C, you can use the following array formula:
=SUM((B2:B10>C2:C10))
Remember to press Ctrl + Shift + Enter to enter the array formula correctly.
Hi Svetlana,
I am using excel 2003 :(
I am trying to count how many cells in column D contain a specific text, IF the dates in column F are greater than 6 months ago from today.
I have tried this:
=SUMPRODUCT((D4:D16390=D4)*(F4:F16390="<="&TODAY()180))
But cant seem to get it to work, just shows 0.
Many thanks!
Hi Gary,
Try the following array formula:
=SUM((D4:D16390=D4)*(F4:F16390<=TODAY()180))
Remember to press Ctrl+Shift+Enter to complete it.
Hi Svetlana,
Perfect! Thank you very much for that!
Hi Svetlana,
I have a problem I think can be solved using this method but I cant seem to get the syntax right
I have a list of words in 1 column that have duplicates and a date range in another column
What I need to do is count non duplicates when the date is less then 7 days ago.
the table would look something like this
Apple 26/6/2015
Apple 24/6/2015
Pear 20/6/2015
Pear 15/6/2015
Pear 22/6/2015
Orange27/6/2015
________________
__a_____b_____
poo 480 menit 
ssp 360 menit 
LLLL300 menit 
LLLL300 menit 
______________
so the the result would be like this :
________________
__a_____b_____
poo 480 menit 
ssp 360 menit 
LLLL600 menit 
______________
how to do opperation like that ? thanks before
Hello,
I am trying write a function to count the number of unique values in one column that fall in a category in another column.
Here is a simplified example of my data:
Order Qty Group
1 1 1
2 2 1
3 1 1
4 4 1
5 5 2
6 8 2
7 2 2
8 4 2
9 6 2
I want to know how many different/unique order quantities there are within group 1, group 2, etc but without designating the cell range, just the particular value (1 or 2 in this case).
Thanks so much!
I am trying to count occurrences above a certain number; however, those values I want to count are not in a straight row or column. I have each company, then label, then each month in the columns. For each company in the column, I have 4 sets of information. I want to count 1 set for each company. How do I do that?
Sample:
Company A $ of x $50
$ of y $12
# of employees 49
Company B $ of x $150
$ of y $75
# of employees 289
For each company, I want a count of any time the number of employees in that column is greater than 250.
Nice Article!
Hello,
I have a simple two column worksheet. Column one consists of names, and column two of dates those names were given a task. I need a total that calculates how many times each name was given a task on today's date.
So each day, as the tasks are assigned and entered the total should reflect how many were given to each name that day.
I am trying to use a countifs formula. I have B:B as the Criteria_range1, and =COUNTIF(B:B,TODAY()) as Criteria1, but this doesn't work.
Can somebody tell me what I need to enter to make this calculation work? Any help would be greatly appreciated.
Hi Douglas,
The formula is correct and it worked perfectly on my test sheet. I can think of only reason for it not working  dates formatted as text. Is it the case?
I currently have column B formatted as Date, and chose the 03/14/01 format. :(
Thanks for the help Svetlana. I'm sure it is something minor I am overlooking, but I can't figure it out. I have tried formatting column B as text, date and custom but still cannot get it to work.
Douglas,
Minor things often cause big problems :) If you can send your sample workbook with the formula to our support team (support@ablebits.com) we will try to figure it out.
Svetlana, thanks, that did the trick!!!! You're amazing, and this site is wonderful! Thanks again!!
Please help me. I'm stuck on the following excel formula:
=IF($H$26="Acting","","",IF($H$26="Temporary","","",IF($H$26="PERMANENT"(VLOOKUP($D$20,'Job Title'!$A$2:$C$28,3,FALSE),""))
“Acting”, “Temporary”, or “Permanent” are text
If H26 is “Acting” or “Temporary” return should be blank
If H26 is “Permanent” it should perform a VLookUP at different D20 and compare it to spreadsheet named Job Title.
Getting error: "The formula you typed contains an error"
Hey, i need your help for
Col 1 has Unique id ( Emp Code) and col 5 has date.
i need to find out whether a Emp Code has Visited for more then once in a days.
exp emp code 101 and Emp has Visited for more then twice a days in 2 place.
need to make report regarding Emp Visited on tht day
Hello;
I'm looking to set up a formula that will count all values in column A, when column B has a date of 2012?
Thank you!
Hi Grace,
If you want to sum the values in column A, then you can use a formula similar to this:
=SUMIFS(A1:A6, B1:B6, ">=1/1/2012", B1:B6,"<=12/31/2012")
I've got a table of data that I have then created a number of concatenated columns from. From example, in my data, I have lists of contract numbers, and the month in which those contracts were processed (in some cases, this is across more than one month). I have therefore added a concatenated column that combines the contract number and the month number (1 for January, etc).
I want to be able to find out the number of times each contract has occurred within each month so I have tried a simple countif formula that says =COUNTIF(A:A,C1). Column A contains the concatenated column and C1 is where I have the contract number and month number also concatenated for the countif to be based on. However, I get a zero every time even though I know that combination of contract and month number appear three times.
Is my problem because all parts of the formula are referring to concatanated fields?
Thanks for any help provided  it should be so simple but there must be some sort of limitation in Excel that is holding me back.
I should add that the maximum length of the concatenated contract/month field is 10 digits.
Hi Svetlana,
I have a table that looks something like this:
high run
run
run
high run
run
run
run
run
run
high run
I want to count the number of "run"s that occurs in the cell +1 column and 1 row of the cell with the value "high". So in this example, the return value would be 2.
I am only able to count for one instance rather than the whole column. Can you please give any insights on writing the formula for this problem?
Thank you
Hi Svetlana,
I have a table that looks something like this: (0 is blank)
A1 B1
high run
0 run
0 run
high run
0 run
0 run
0 run
0 run
0 run
high run
I want to count the number of "run"s that occurs in the cell +1 column and 1 row of the cell with the value "high". So in this example, the return value would be 2.
I am only able to count for one instance rather than the whole column. Can you please give any insights on writing the formula for this problem?
Thank you
Hi need to calculate how many times for particular month my in time is 9:30, 9:40, 8:20,10:20,9:50,..........in month end 9:50. Please suggest formula for how
Many days I have come late my office time is 9:00.
Nice article, thanks!
I have two columns of data like below. I need to count the number of times the value in column A is greater than the one in column B. Is this possible using COUNTIF?
A  B
2  1
1  2
3  0
2  1
Result A > B: 3 times
Result B > A: 1 time
Hi Martin,
You would need an array formula to compare 2 ranges, like in the following example (except that you don't want the second condition):
https://www.ablebits.com/officeaddinsblog/2015/03/04/excelarrayformulaexamples/#countcellscondition
The formula could be similar to this, please remember it requires pressing Ctrl+Shift+Enter:
=SUM((A1:A10>B1:B10) * 1)
Thanks, that works great! This is the formula I’m using (in Google Sheets):
=ArrayFormula(SUM((Data!B2:B1000 > Data!C2:C1000) * 1))
=COUNTIF(I:I,""&"")
Column I contains formulas that return "", or a message, the message may vary. I am trying to count the messages, but the count returned is of cells containing a formula.
e.g. the formula ="" put in a cell will increment the count
This is in Excel 2013
Hello please am trying to play around to see if i can use COUNIF or COUNTIFS to make my formula to count P and PS as one and the same thing in my totals. Thank you so much for the rapid response
Hi Silvester,
You can add up 2 COUNTIF functions, like this:
=COUNTIF(range, "P") + COUNTIF(range, "PS")
hey there, i wanted to sum or count a list, excluding some specific names. Like there is a fruit list and wanted to count/sum excluding apples and mangoes.
hey there, i wanted to sum or count a list, excluding some specific names. Like there is a fruit list and wanted to count/sum excluding apples and mangoes.
i have five brands in the sales list A/B/C/D/E, want to sum only A/D/E
Hi Svetlana,
Pls help me
I want to count "o" in J2:PB2 when E2 is greater than 8 (E2>8) .
Thank u :)
Hi there,
Pls help me with this:
Trying to form separate column from array like this:
A B C D F G H I J (Excell rows)
1 2 3 2 0 2 4 3 7 (value)
A B C D E
123 (New value)
232 (New value)
320 .
202 .
024 .
243 .
437 .
Thanks in advance.
Hello George,
I'm sorry, it's a bit hard for me to understand your task. Could you please explain it in more detail? If possible, please send a sample spreadsheet with the way your data and the expected results look to support@ablebits.com. Please include the name of the blog post and your comment. We'll do our best to assist you.
I have 10 columns (1 row) of data like below:
ABCDEFGHIJ
1075012354
I need to form a new row with triplets of numbers from each column,
like this:
A 
107
075
750
501
012
235
354
Number 107 is formed of each separate value from cels A,B,C
Number 075 is formed of each separate value from cels B,C,D
Number 750 is formed of each separate value from cels C,D,E
.
.
.
etc.
Can enyone help me to do it?
Hello George,
You can use a combination of CONCATENATE and INDEX functions in the following way:
=CONCATENATE(INDEX($1:$1,1,ROW()1),INDEX($1:$1,1,ROW()1+1),INDEX($1:$1,1,ROW()1+2))
Please see a workbook with an example here:
https://support.ablebits.com/blog_samples/excelcountifexamples_164.xlsx
Hey Svetlana!
Well done! I can see you have been providing answers to people for over a year.
Have a wonderful day :)
Hi there 
I am looking for help.
I need a formula that will count the number of times "Strongly Agree" appears in column F only if there is a number greater than 0 in column AF
I tried using multiple countIF functions as well as trying a Vlookup and am hainv no luck.
Hello Liz,
Please use a COUNTIFS function (ending with 'S')
=COUNTIFS(F1:F10,A1,AF1:AF10,">0")
Applies criteria to cells across multiple ranges and counts the number of times all criteria are met.
https://support.office.com/enus/article/COUNTIFSfunctiondda3dc6ef74e4aee88bcaa8c2a866842
I have 10 columns (1 row) of data like below:
ABCDEFGHIJ
1075012354
I need to form a new colum with triplets of numbers from each row,
like this:
A 
107
075
750
501
012
235
354
Number 107 is formed of each separate value from cels A,B,C
Number 075 is formed of each separate value from cels B,C,D
Number 750 is formed of each separate value from cels C,D,E
.
.
.
etc.
Can enyone help me to do it?
Hi George,
Please use a combination of CONCATENATE and INDEX functions:
=CONCATENATE(INDEX($1:$1,1,ROW()1),INDEX($1:$1,1,ROW()1+1),INDEX($1:$1,1,ROW()1+2))
You can download a sample with this formula:
https://support.ablebits.com/blog_samples/excelcountifexamples_164.xlsx
Hello,
I want to COUNTIF a range A:B that is less than zero and out of that I want to pick how many are from Paris?
I can do the first part and count how many are less than zero but how do I pick from that how many are equal to Paris?
I seem to be able to do 2 elements in a statement but cannot add a third?
Carol.
Hi Carol,
To count cells with more than one criteria, you have to use the COUNTIFS function, as demonstrated in the following tutorial:
https://www.ablebits.com/officeaddinsblog/2014/07/10/excelcountifsmultiplecriteria/
Hello Can You please help me
A B
1,1500 1600
2,1300 1300
3,400 300
AB i want B3 in Red color
this must done in repeated columns
Hi Svetlana, how would i do countif for a scenario like this?
10
20
80
100 210
10
20
200 30
the countif formula should check the anything <=100 and add it.
like answers should be 210 and 30..the values of first 4 cells are added and next 2 cells are added...Thank you...
Hi Svetlana hope you can help me.
JOHN 6
JOHN 5
BARRY 10
BARRY 9
BARRY 7
ZACK 3
ZACK 4
ZACK 8
ZACK 10
JIM 1
JIM 2
Can i make a formula where the result is john 1 , berry 12 , zack 11 , jim 3.
so it needs to look at the first and see how many johns there are and then calculate all the numbers john has.
regards,
john
hi svetlana,
pls i need help about COUNTIF or COUNtBLANKFunctions
How to count more blank cells separately from date for example 22.09.2015 we have 4 blank application . i trayed this but not work =COUNTBLANK(S16:S39)COUNTIF(S16:S39,B43 or =COUNTIF(S16:S39,""&"*")
22.09.2015
22.09.2015
22.09.2015
22.09.2015
22.09.2015
23.09.2015
23.09.2015
28.09.2015
28.09.2015
Hello,
I just used your countif suggestions and think I'm doing something wrong because I'm not getting the correct value.
Here is the formula I used:
=COUNTIF(NexTrak!B2:B130, "Bariatric") + COUNTIF(NexTrak!C2:C130, "Washington")
However, instead of telling me the amount of clients in the Bariatric specialty in the state of Washington, it is adding them (most likely bc of the +). How would I use the Countif formula as a type of conditional formula. I actually only have 1 Bariatric Client in Washington and 39 Clients total in Washington.
Hi, I am working from a formula on Excel's Student calendar template. The current formula is =IF(LEN(B14)=0,"",IF(COUNTIF(Assignments[Month],DATE(WkYear,WkMonthNum,B14))>0,"Assignment due!",""))
I would like to change the "true" value from "assignment due!" to whatever the contents are in the cell is that it found in the look up (i.e the name of the assignment).
I Can't figure out how to make that happen can you assist?
Thanks for your help!
Hello Katie,
Can you please send the source data and the expected result to support@ablebits.com, so I will try to help.
Hi there  I am close to my solution but am stuck with my function. I have values of 17 that each number represents a certain type of "fail" for my employees in their audit. Each row in my sheet represents an employee and in their corresponding cell, there might be multiple reasons for them to fail an audit and sometimes the failed reason could occur twice in their audit. So, if Ben failed an audit only because of "insufficient financial information", then he would get a "1" in his corresponding cell, (where 1 corresponds to that particular fail). However if Donna failed due to "insufficient financial information" (1) and "MD referral guidelines not followed", (which corresponds to number 6)then on another case failed due to "1" again then she would have a "1,6,1" in her corresponding cell. So I have employee names in column A, then the fail results in column B. Then I have D1 labled "Fail Type" and E1 though K1 labeled 1 through 7. Then D2 labeled "count of Type" and starting with E2 through K2 I have the formula =COUNTIF($B$2:$B$5,"*"&E$1&"*")+COUNTIF($B$2:$B$5,E$1) in each cell  it will only count Donna's two "1's" in her cell, once. I need to have it count those both times they occur in Donna's so that in E2, it shows "3" instead of "2" as it does currently.
I'm sorry, it's a bit hard for me to understand your task. Please send a sample spreadsheet with the way your data and the expected results look to support@ablebits.com. Please include the name of the blog post and your comment. We'll do our best to assist you.
Dear Mam/sir
Can i calculate 00:01 to 00:59 mnts equal 1 and01:00 to 9:59 euql 2 how can i do it
thank
k sahoo
plz give me a example i can not under stood
Dear Lidiya,
Can i calculate 00:01 to 00:59 mnts Greater than equal to 1 and 01:00 to 9:59 Greater than equa 2 how can i do it
thank
k sahoo
What do i need to do to count data that has a date less than today, but only count as far back a 2 weeks?
=countif(A23:a,""today 14??
Hi Matthew,
To count with 2 or more conditions, you need to use the COUNTIFS function:
=COUNTIFS(A1:A20, "<"&TODAY(), A1:A20,">="&TODAY()14)
Hello, i'm trying to count the results to a survey i conducted and i need to graph very specific things.
What i want to do, in English, would be like:
If (column C)= Female, count how many times the word "weapons" is in column G
I don't know if it's there in the examples and i can't see it because i'm not used to Excel, or if it just can't be done.
Thanks for the tutorial though! I'm going to use some other things.
Hello Catalina,
Use the following formula:
=COUNTIFS(C1:C12,"Female",D1:D12,"weapons")
Please see a sample file:
https://support.ablebits.com/blog_samples/excelcountifexamples_180.xlsx
THANX YAR
please help me i need to pass or fail a learner in a row from C6:O6, by getting 3x30s and 3x40s
i have a table with "count" formula on one column then an "expired" word on the other, i was thinking if there's a way which i could see that the number of "expired" units will be equal to the number as have been counted. wish i could have shown you my table. tnx
Hi Svetlana,
Quick question on how to use the countif/countblank.
I have an excel spreadsheet where I need to determine the number of items in a column that are blank so I am using =countblank (A1:A94) but I have to continually change the range because if I do =countblank (A:A) I will get too many results.
So my question is which formula could I use to count blanks in all of A if column B = Yes
I figured it out after browsing the site some more.
For those wondering; here is the formula
=COUNTIFS(A:A,"",B:B,"YES")
Hi
I have looked at the responses above but I can't see anything close to what I need. I have 3 columns. the first has office names and the second has PO numbers, the third has dates. The second column has unique and duplicate PO's. I would like to count the amount of uniquem then duplicate PO's from a certain office in a certain date range. i.e Cardiff between 1215 and today.
Thanks
Hello Pete,
I added two auxiliary column.
Please see a workbook with an example here:
https://support.ablebits.com/blog_samples/excelcountifexamples_185.xlsx
Hi, I want to filter the value for two column. The column has 3200 rows, same goes to the second column. So, now I want to filter the number of row for column A that have greater value than column B. Please, i really need your help. :'(
Hi Svetlana,
I have a range of cells from F8:F65,to DB8:65 all with Values like "Pass" and "Fail". I want to capture the results of Pass in a formula using COUNTIF. My example is =SUM(COUNTIF(F8:F65,"Pass"),(COUNTIF(G8:G65,"Pass"),(COUNTIF(H8:H65,"Pass"))). But this is not working. It is working till the G8:G65, but later it is not working.
I know there are 5858 "Pass" in this range but want to capture this information in a cell without having to hardcode this.
Thanks and Regards,
KM
Let me ask u one .
what is the formula to count the redundancy of the value in a single cell with the range time?
e.g how many times , i write "N" In cell A1 From 2:30 to 2:45
=IF(G8F8,"Partial","Full")  I want to add another text. Can help?
Svetlana,
Is there any way to use an iteration of the countif fuction to match words on two different columns and give a total, but exclude if that specific word is on both columns.
Example Below. There are 4 columns A,B,C,D and if i use the countif and look for june on column A, it will give me a total of 1 which is found on A3.
What I want is a countif formula to look at column A and column C, and look for the word June and give me a total, but exclude from the total if the word june is in both columns, which would be 2 since C1 and C5 only show up once on both columns and A3 and C3 is exclude since they appear on both.
A B C D
1. march 2 June M
2. april T March 1
3. june 3 June G
4. july y july 6
5. May 5 June 4
Hi, I use =SUM(1/COUNTIF(M3:M100;M3:M100)) formula for calculate name in row and it is working without blank cell. but in this range I have some blank cell and formula is not working. Please help
svethlen mam..
am going for analysing data in spreadsheet which is taken from rating questionair data. here is data like.
a
b
c
d
c
b
d
d
c
a
in want konw how many A.B.C.& D ' s in this coloum.. plz sugest me a formula for this problem...
I'm trying to count how many "Yes" in I2:I322, only if D2:322 equals "SSA"
=COUNTIFS(USA!D2:D322, "SSA",USA!I2:I322, "Yes")
It's only counting a subset of all the "Yes"s that qualify.
I figured out this formula is working. The problem is that it seemed it was wrong because of filtered rows. So, please ignore this question. Thanks :)
Hello
Can somebody help me in doing this in excel. I have a bunch of rows with 8 numbers in each row. I want to compare the numbers in the first row with the numbers of the second row. Then it gives me a count of how many numbers are the same. Then we move on to compare the numbers of the first row with the numbers of the third row and again it gives me a count of how many numbers are the same AND adds it to the result of the first comparison. …. And so on till we end up to the last row(i.ei 10th row).
For example:
Row 1 2 5 7 9 10
Row 2 6 4 2 11 5
Row 3 6 9 12 2 7
Row 4 8 1 4 11 6
Comparing the numbers in row1 to the numbers in row 2 results in 2 as the numbers 2 and 5 are in both rows. Then we compare the numbers in row1 with the numbers in row3 which will results with 3 as the numbers 2,7,9 are in both rows. Hence the new returned value will be 2(result from first row checking)+3(result from second row checking)=5
Then we compare the numbers in row1 with the numbers in row4 which will results with 0 as there are no matching numbers between the row1 and row4. Hence the new returned value will still be 5(result from first row checking)+3(result from second row checking)+ 0(result from forth row checking)=5
Now we start comparing the numbers of row2 with the numbers of the other rows and so on
thanks
Hi Svetlana
Can I have a tab number in my countif formula e.g. =COUNTIF(C3:C46,"*C48*").
I am essentially trying to have a tab (in this case c48) that I can change the request in.
So for example if I change the content in c48 to OSS  it will count how many time OSS appears in my cell range of c3:c46.
Then if I change c48 to World  it will count how many times world appears in my cell range.
Thank you in advance
I am counting rows that have unique values and also match multiple criteria, but the formula I have is coming up a view short each time. Using a helper worksheet on the same tab does not help:
I4 refers to a Warehouse ID = say "2A", and I need to count the unique bin locations referred to in E2:E7111. So for a specific warehouse, i need the number of unique bin locations in the array for warehouse 2A.
{=SUM(IF($A$1:$A$7111=I4,1/COUNTIF($E$2:$E$7111,$E$2:$E$7111)))}
Appreciate your eyes on this to see if I'd doing something wrong.
Thanks
David
Hello David,
If possible, please send a sample spreadsheet with the way your data and the expected results look to support@ablebits.com. Please include the name of the blog post and your comment. We'll do our best to assist you.
Hi Svetlana,
Would it be possible to count a number of cells that contain numbers with letters? such as a list of number plates?
AV63 OEB
AV63 OEM
AV63 OEN
AV63 OER
AV63 OES
AV64 PYH
AV64 PYW
BJ13 LZW
BJ13 MGE
BV13 CZH
BV63 CGF
CK13 DKJ
FD13 KYJ
Thanks!
Hello Matt,
You can use the following function to extract only numbers from text string:
=SUMPRODUCT(MID(0&E5,LARGE(INDEX(ISNUMBER(MID(E5,ROW($1:$25),1))* ROW($1:$25),0),ROW($1:$25))+1,1)*10^ROW($1:$25)/10)
Please see a workbook with an example here:
https://support.ablebits.com/blog_samples/excelcountifexamples_197.xlsx
Hi!
I have a list of approximately 12000 rows with data. Column A has unique IDs, while column B has a date. How can I remove duplicate rows based on identical ID, only when there exist another date within 60 days of the first post?
123456 12.09.2015
123457 13.09.2015
123456 15.10.2015
123458 25.11.2015
123456 12.12.2015
In the example above, I want to get rid of the third line as it is within the 60 days from line 1. However, I want to retain line 5, since that is more than 60 days after line 1. Is it at all possible?
Sincerely,
Christoffer
Hello Christoffer,
I recommend you to add a combined column in the following way:
ID Date Combined
123456 9/12/2015 123456 more 60
123457 9/13/2015 123457 more 60
123456 10/15/2015 123456 more 60
123458 11/25/2015 123458 more 60
123456 12/12/2015 123456 less 60
Please see a workbook with an example here:
https://support.ablebits.com/blog_samples/excelcountifexamples_198.xlsx
Then you can use our Excel addin that allows you to remove duplicate rows.
https://www.ablebits.com/excelremoveduplicates/index.php
Hello Mr Svetlana, i'm a doctor and i'm trying to figure out how to organize my colleagues data shift. I tried to use the "countif" formulas and it worked fine for normal shift that has to count 1 (stands for 1 turn of 6,3 hours) but i would like that excel will count a night shift as 2 (because the colleague that appear in the night line one time does 2 turns because he/she remains for 12 hours. How can i do that?
Thank you very much
Hi Paolo,
It's difficult for me to suggest an exact formula because I don't know how you identify night sifts. But you can use the following approach:
=COUNTIF(A:A, "night shift")*2
halo i using COUNTIFS function but when i use it it appear #VALUE!
i just only write this
Location(title) JAN FEB
PgP1 ( WRITE HERE )
Hcp
Hello,
Example: =COUNTIF('C:\Users\Desktop\[test.xlsx]List1'!$B$1:$B$10;B11)
Why when I close test.xlsx file this function returns #Value!# error?
(for other functions a link is not problem)
thank you for your answer, really :)
Hello Lukas,
Unfortunately I haven't found a way to get the formula recalculated correctly without an open book.
Hello
I have a question regarding a spreadsheet I am putting together and I am unsure if using counts would be the best way.
ITEM #  TRANS CODE  DOC DATE
AA R 10/1/15
AA R 10/1/15
AA R 10/2/15
AB R 10/1/15
AB R 10/1/15
AC R 10/2/15
In the above example I have three part numbers, AA, AB, and AC. Each one is a receipt on the day in the last column.
I am trying to count the number of receipt days in a week for each part, not just the number of receipts per day.
So for the AA I would have two receipt days (10/1 and 10/2), for the AB and the AC I would have one receipt day.
If I were counting the number of receipts would results in AA:3,AB:2,AC:1
My problem is I can not figure out how to do the code so that way when I type in the part number it returns and then sums the number of receipt days and not the number of receipts.
Hello Jess,
I recommend adding a column that will check if the values have duplicates
=IF(COUNTIF(B6:$B$11,B6)=1,"no duplicate","has duplicate below").
Then you can use a Pivot Table to count filtered values.
Please see a sample file with the functions that I described:
https://support.ablebits.com/blog_samples/excelcountifexamples_202.xlsx
Our Excel addin that allows to remove duplicate rows can also be helpful for you:
https://www.ablebits.com/excelremoveduplicates/index.php
A B
1 Product Loan Range
2 Salary Loan <250
3 Salary Loan <250
4 Home Mortgage 250 < 350
Now i want to count how many salary loan under "<250"
=COUNTIFS(A2:A4,"Salary Loan",B2:B4,"<250")
Here am getting answer is zero. Since it is counting less than 250. But the Salary Loan under loan range "<250" counts 2 times.
I solved this issue by converting Range B to value 250,250350,..
Is there any way to count without changing the format in Range B.
Hi,
I wonder can you help,please
When I use COUNTIFS(A:A,A7,B:B,B2) this reads as doubles on same line no matter what the starting numbers.I use this in Lotto results and would like it to read from two different results,in stepwise format A:A,A1,B:B,B2,or is there a better way to do this,thank you in advance.
i have columns of headings standard MHRs and Actual MHRs I want to count the values in columns heading std mhrs.
Sorry for question.
found answer as COUNTIFS(A1:A1001,1,B2:B1002,2).
Thank you anyway.
Hello Svetlana
I have a spreadsheet where i have to count the amount of unique rows in column C that had the value "UDL" in column N.
Column C can have duplicates so somehow i need to find out how many unique ones there are
Hello Peter,
You need the following array formula (remember to press Ctrl + Shift + Enter to complete it):
=SUM(IF( (($N1:$N31="UDL"))*((COUNTIF($C$1:$C$31,$C1:$C31)=1)),1,0))
With row 1 being the first, and row 31 being the last.
Uniques imply that there is only one occurrence of the value in column C.
If you need unique values plus the first occurrences of the duplicates, then you need to use a Helper column, e.g. column O, and enter the following formula into its first cell:
=IF(COUNTIF($C$1:$C1,$C1)=1,"Unique","Duplicate")
Paste the formula to all cells below.
Then use the following formula to count:
=COUNTIFS(N1:N31,"UDL",O1:O31,"Unique")
You can also use the Helper column to count only uniques, then the initial formula should look the following way:
=IF(COUNTIF($C$1:$C$31,$C1)=1,"Unique","Duplicate")
Hi Svetlana,
I am trying to calculate the number of countries with a life expectancy between 5055,5560,6065...etc.
columnA: country name
ColumnB: Average life exp.
would i be able to use the =countif function to find he amount of countries with the given criteria?
Hi Noah,
To count with multiple criteria, you need to use the COUNTIFS fucntion. For example:
=COUNTIFS(B:B, ">=50", B:B, "<=55")
I am having one doubt regarding counting value like
A B
1 Grn:1 11012016 in this table i want to count in 11Jan16 how
2 Grn:2 11012016 many GRN I received it should not count double
3 Grn:2 11012016 like GRN:2 i received 2 time in same date so i
4 Grn:3 11012016 want to count only one time.
Please help
Hello Sunil,
Please see a sample file and my next answer:
https://support.ablebits.com/blog_samples/excelcountifexamples_210.xlsx
A B
1 Grn:1 11012016
2 Grn:2 11012016
3 Grn:2 11012016
4 Grn:3 11012016
in this table i want to count in 11Jan16 how many GRN I received it should not count double like GRN:2 i received 2 time in same date so i want to count only one time.
Hello Sunil,
I recommend adding a column that will check if the values have duplicates. Then you can use the COUNTIFS function to calculate the result by two criteria.
http://www.ablebits.com/officeaddinsblog/2014/07/10/excelcountifsmultiplecriteria/
Please see a sample file with the functions that I described:
https://support.ablebits.com/blog_samples/excelcountifexamples_210.xlsx
Our Excel addin that allows to remove duplicate rows can also be helpful for you:
https://www.ablebits.com/excelremoveduplicates/index.php
Hi Please im begging for your help on this please.
i have a problem with countif. how will i count Arriola with more than 2 days? i dont want to count arriola i want to count only arriola with more than 2 days.. please
A B MORE THAN 2 days
Lionel 2 Lionel = 0 << LIKE THIS RESULT
Lionel 2 Arriola = 1
Arriola 3
Arriola 1
Lionel 2
Arriola 2
Hi!
To count cells with 2 or more criteria, you need to use the COUNTIFS function.
Supposing that "Arriola" is in column and the number of days in column B, you can use the following formula:
=COUNTIFS(A:A, "Arriola", B:B, ">2")
I have a worksheet that contains all my sales of various products to various customers over several weeks.
Assuming column B lists the customers, column c lists the products, and columns f to z lists the sales volume sold each week, how can I determine the number of unique customers (col b) that purchased at least 1 of any product in any given week (col f to z)... given that customers could purchase multiple products in any week and be listed multiple times in col b?
Thanks
Hi Svetlana, I'm trying to identify duplicates in a column based on values in adjacent cells. For example:
A B C D E
375 500 Cheddar (D)
Soft Brie
125 Hard Cheddar
125 375 Cheddar (D)
375 Soft Brie
A & B are number format; C, D and E are Text format.
For a duplicate to be correct A & B must have numbers present, C & D must be blank  I have indicated the duplicates here with a (D) but not needed in the formula. If I had hair I would have lost it today trying to figure this out  please help.
Hi Roy,
If my understanding of the task is correct, the following formula should work a treat:
=IF(AND(ISNUMBER(A1), ISNUMBER(B1), C1="", D1=""), IF(COUNTIF(E:E, E1)>1, "dupe", ""), "")
REF: 213
Hi Svetlana many thanks for the quick reply. I was just venturing in to the ISNUMBER function when your solution arrived. Yes it works thank you, however, it doesn't wait for a comparison before stating "dupe"  my fault for not being very clear. Unless I'm mistaken ISNUMBER only caters for a single cell and not a range  is there a way around this please?
Hi Roy,
Yes, ISNUMBER accepts only an individual cell in the argument. Sorry, I do not quite understand what you mean when saying "it doesn't wait for a comparison before stating "dupe". Please specify what cells should be compared.
The formula I suggested works with the following logic:
If A1 & B1 have any numbers in them, and C1 & D1 are blank, check column E for duplicate values (i.e. check if the value in E1 occurs in any other cell in column E). If one or more duplicates are found, the formula returns "dupe", an empty string otherwise.
Hi Svetlana
Essentially, when I reread what I have asked of you, you have responded by producing exactly what I requested  my apologies for the lack of clarity. To keep it its simplest terms, I have a range of cells A1:E20 where a duplicate condition is met when a row has A1 & B1 with numbers in them and both C1 & D1 are blank, E1 would then be checked for duplicate values. However, on the first occasion that this occurs it cannot be considered a duplicate it is a unique value until a second occurrence appears etc. I have been trying COUNTA in place of ISNUMBER, still not quite there but I think it's the last bit that might be the key.
Once again apologies for the confusion, I really appreciate what you and the team at Ablebits do in supporting us lesser mortals.
Hi Roy,
No need to apologize. From my own experience, it's very difficult to exactly explain/understand the task without seeing the same source data :)
Please try the following formula. It identifies duplicates without 1st occurrences:
=IF(AND(ISNUMBER(A1), ISNUMBER(B1), C1="", D1=""), IF(COUNTIF($E$1:$E1, $E1)>1, "dupe", ""), "")
Is this what you are looking for?
Yes Svetlana  works a treat  great job  have a good weekend!
hi Svetlana, i have created an any year calendar and i want to mention holidays, here in Sri Lanka, the holiday will differ every year, so how i can display holiday by manual for every year?
Thawfeeque.
Help needed... I am trying to read number of cells which match "check" in another excel document and count if formula is not working correctly.I have a document "X1" at "C:\Users\XY123\Documents\Work\" which I named as sheet1_XLSX(C:\Users\XY123\Documents\Work\X1.xlsx). I am using this formula to open and do countif function like this : =Countif('[sheet1_xlsx]sheet1_xlsx.xlsx'!$E:$E,"check"). But the formula is returning as #value!.
Hi, I want to count all cells that have numbers only. I have some cells that have NA and I want to exclude those from the calculation.
thanks,
Di
Hello, Di,
Please use the count() function.
Example 1. Find and count duplicates in 1 column
For example, this simple formula =COUNTIF(B2:B10,B2)>1 will spot all duplicate entries in the range B2:B10 while another function =COUNTIF(B2:B10,TRUE) will tell you how many dupes are there:
Good Day!
May I know what is the function of "B2" in this example >> =COUNTIF(B2:B10,B2)>1 ?
Thanks a zillion!
Thanks a million, answered all the questions that Excelhelp couldn't give me (particularly on how to count dates separately from text).
Keep it up!
I have the following data:
Case Rate
A 0
A 2.58
B 0
B 0
C 13.45
C 0
C 0
D 0
D 0
D 0
I need to determine how many of the case groups have a total of Zero. In the above example, it should read 2 case (Case B & D) arethe only one that has a zero total
Note  the case letters are only for this example, usually it will be different names
I have tried the following formula but it doesn't produce the results that I am looking for: =COUNTIFS(A2:A16,A2:A16,B2:B16,0)
I'm trying to calculate only the number of cells in which the employees start date is less than 90 from there last day worked. These dates are captured on two separate columns for multiple employees. I can't seem to figure this one out.
Your help is greatly appreciated.
Hi Svetlana
Following on from post 213, I have modified the formula slightly and used it as part of conditional formatting via the "Formula is" new rule and it works perfectly. Is there any way that the identified duplicate rows that meet the formula can be copied to a new sheet next available row? The formula is = AND(ISNUMBER(A1), ISNUMBER(B1), C1="", D1="",COUNTIF(E:E, E1)>1) any help or direction would be much appreciated.
I have a column of UPS, FedEx, and DHL tracking numbers. I am trying to sum up the total # of tracking numbers in that column. How can I do this when the tracking number has both text and number context in it?
e.g.:
36006962160000026558847083172014
1Z9V14091300013079
7614784914
Have you tried using the following code?:
=COUNTA(A1:A3)
I am able to count using countif to get response to a particular column inmy worksheet, e.g, i could write countif(d12..d80,"Pass"). I want to add to this same expression to be able to look at another column, e.g., F and only count Pass where the corresponding number in a new cellF is equal to 10 or any number. How do I add this to the count if expression?
Thanks
I want to eliminate duplicate values and I have a problem with count if function, it gives error message even though i entered correct formula.
The formula i entered in data validation
=COUNTIF($E$2:$E$100,E2)=1
can you suggest possible solutions for getting error while using this formula.
Thanks
I want to SUM up a row but the total has to be either a sum up or blank if there is an empty value (a blank cell).
i.e.
A B C D(A1+B1+C1)
1 12 28 30 70
2 50 20 17 87
3 10 34 06 50
4 "Blank"
5 20 20
I've tried
=COUNTIF(G17,">0")+COUNTIF(H17,">0")+COUNTIF(I17,">0")
also
=SUM(IF(ISBLANK(G17),IF(ISBLANK(H17),IF(ISBLANK(I17),G17+H17+I17,""))))
as well as
=SUM(IF(G17:I17"",G17:I17,""))
The answer of total still wrong.
How should I set the formula at D?
Thanks.
Hello, Peggie,
Please try this one:
=IF(OR(ISBLANK(A1), ISBLANK(B1), ISBLANK(C1)), "Blank", SUM(A1:C1))
Hi bro(s),
I have a question about using COUNTIFS to count number of rows that have status different from "completed" with the example below:
StatusValue
completed 1
started 2
canceled 3
delayed 5
Result expectation: 3
How can I count with the exactly string excluded? Please help me answer, I need your help!
Many thanks,
Ngan Trinh
Hello, Ngan,
Please try the formula below:
=COUNTIF(A2:A5,"<>"&"completed")
here the Status column is in A1:A5
Hi madam,
iam struck with one error problem in excel.
There is list of students name in columnA : A1:A10
and also more students name in ColumnE : E1:E10
Now i want to count, how many times each name is repeated in both columns A and E using countif function.
Between A and E we have B, C,D columns contains different data columns.
COUNTIF(range, criteria)
i am not able to add both range under single criteria in countif function.
Please help me with the solution.
How to add two non adjacent column under single criteria.
=COUNTIF( both range?, "ravi")
A B C D E
1 ravi 435 Teja
2 sneha 250 sunil
3 anil 136 ravi
4 teja 786 sandy
5 sunil 250 praveen
6 reena 587 teena
7 naveen 121 praveen
8 sunil 456 anitha
9 teena 454 reena
10 sunil 895 anil
Hello, Praveen,
Here you are:
=COUNTIF(A1:A10, "ravi") + COUNTIF(E1:E10, "ravi")
can it possible to put both ranges A1:A10 and E1:E10 in single array like { A1:A10 E1:E10 } to reduce the formula length.
Good Afternoon  I am attempting to count how many nonerrors (#N/A) are in a VLookup column. For example, I might have a column of 500 errors, and 3 returned items. I need to know how to count those that are not returned as errors but as values. I can't seem to find a way to make this return back to me. Any help would be appreciated.
I have a PROBLEM which i face to maintain my stock.
I have some data in shhet1:
A B
S/L PRODUCT
1 CLR 0 R MER 5 R ZU 3 R
2 FYD 2 R DSR 3 R CLR 0 R
4 PML 3 R FGH 4 R LKN 0 R
5 DSR 4 R LKN 2 R ZU 1 R
NOW IN Sheet2
A B C
PRODUCT CODE
CLIARWAY CLR
BAG DSR
SPOON PML
JUG LKN PROBLEM IS I WANT TO COUNT AND ADD SHHEET 1 PRODUCT QUANTITY IN SHEET2 C CLOUMN E.G.
A B C
BAG DSR 7......IS IT POSSIBLE? PLEASE HELP ME THANK YOU.
Can you tell what is wrong with COUNT formula? =COUNT(C5:C105,A4)
How to calculate number of similar value count as 1 by using countifs formula.
I am trying to count the number of cells in column j that is between 0 and 91, and that falls between a certain date (ie:4/30/2016)with the dates being in column L
example: How many people have worked less than 90 days during a particular month.
Hi,
How to link Hlook up data value with vlookup on a excel workbook between two spreadsheets . if i change a value in Hlookup Sheet it might be automatically change in v lookup sheet .your spurt is required . Thanks in Advance .
Hi, I have a spreadsheet that is asking me to add a total of car rentals, there is a yes and no categoery going down to show if the customer is filling the car $65 so I need a function that will sub just the totals for the cust. that have n's and then sub + the $65 for only the cust with the y' here is an example.
A B C D E F
Date Dys rented Dly.rate T.bfore gas option Total
gs option
1 3 49.99 3x49.99 n(no +$65)
2 1 53.00 2x 53.00 y(+$65)
3 2 75.00 2x75.00 y (+65)
on A9 it says $65 , so A9 needs to go in the func and added to the y's for a grand total.but not added to the n's. Please help me with this function! The function needs to be in F1 and then I will copy the function down to the rest.
I want to count total of student in a certain month , for example: April 2015
I used =COUNTIF(A3:A4006,"April 2015") and I got zero.
it works but I think I missed something. Could you tell me?
Hi friends i need how to count the status,
Eg: Category A Category B
AAA Progress
AAA Quoted
AAA Quoted
BBB Awarded
CCC Quoted
I need AAA how many numbers Quoted respectively...
Sales Representative Month Amount
Jones Jan 20,000.00
Jones Jan 22,500.00
Rogers Jan 40,000.00
Rogers Mar 15,000.00
Rogers Jan 25,000.00
Franklin Apr 80,000.00
Franklin Feb 20,000.00
Jones Feb 35,000.00
Franklin Jan 12,000.00
Rogers Feb 90,000.00
Franklin Feb 75,000.00
Jones Feb 80,000.00
Total Sales for January 119,500.00
Total Sales for February 300,000.00
Total Sales of Jones 157,500.00
Total Sales of Franklin 187,000.00
Total Sales of Jones in January only #NAME?
Total Sales of Jones in February only #NAME?
Total Sales of Roger greater than 10000 #NAME?
Count Sales greater than 20000 8
Average sales of all agents in January #NAME?
itong my name po, pwede malaman kung ano formula nito?
i mean di ko po alam formula sa lahat na may #name?..
Hello all,
I'm trying to build a dynamic graph where the xaxis and the data graphed are based on which checkboxes (January 2015, February 2015, ..., December 2016) are checked off. If the first checked checkbox is April 2015, I want that to be the first value on the xaxis. Similarly, if October 2016 is the last checked checkbox, I want the graph to end there.
To accomplish this, I have a table with True/False cells linked to each checkbox. If the checkbox is checked, then the corresponding cell value is TRUE and the cell next to that reads "January 2015" or whatever the corresponding month is.
If the checkbox is NOT checked, the value is FALSE and the cell next to that is "". I then created a named formula of "Months" that I have defined as =OFFSET(E3:E1000,0,0,COUNTA(E3:E1000),1).
However, this is counting all the cells with "" in them as not blank, and therefore is graphing all the months (i.e. xaxis is static). How can I define Months as only being the months that are checked off and not also the cells with "" in them?
Thank you!
Hi
Value in cell A3 is 10
I want to check this value tn 4 Different Criteria
1)Less than 20
2)Greater than 20 but less than 50
3)Greater than 50 but less than 80
4)greater than 80
Please help
Regards
Venkat
Hi Venkat,
Can you give more details on what you want to do? It looks like you have just 1 cell with a value but multiple mutuallyexclusive criteria (10 cannot be less than 20 and also greater than 20). You may want multiple cells that use the COUNTIF function, or if you want to test the same cell for multiple criteria, use COUNTIFS.
Hope that helps!
Hello,
this makes me really crazy.
I have 3 different values in a column B and a timestamp in a column E. I have to create a graph with daily sum of values. (Line chart for A, B, C,...)
Sheet 1
========
A;2016.01.26. 15:55
A;2016.01.26. 18:11
A;2016.01.26. 21:10
A;2016.01.27.,01:02 > extra comma here
B;2016.01.27. 10:10
B;2016.01.27. 10:01
C;27/01/2016 11:55 > other time format
A;2016.01.28. 11:50
C;2016.01.28. 11:04
C;Fr 2016.01.28. 12:22 > extra day field
B;2016.01.28. 12:09
A;2016.01.28. 13:31
I have thousands of records and well, some times the timestamp field has another format or has some error. :/
Sheet 2
========
Column A contains the date values (for the graph).
A2 = 2016.01.01
A3 = 2016.01.02
.
.
.
A32 = 2016.01.31
I tried this formula, not worked.
B2: =COUNTIFS(Sheet1!$E$2:$E$5000;">="&A2;Sheet1!$E$2:$E$5000;"="&A2;Sheet1!$E$2:$E$5000;"="&A2;Sheet1!$E$2:$E$5000;"<"&A3;Sheet1!$B$2:$B$5000;"C")
So, the result matrix should be like this:
2016.01.01; countofAon0101; countofBon0101; countofCon0101;
2016.01.01; countofAon0102; countofBon0102; countofCon0102;
2016.01.01; countofAon0103; countofBon0103; countofCon0103;
.
.
.
2016.01.31; countofAon0131; countofBon0131; countofCon0131;
I tried also name the ranges because I'd like to use the autofill function with the date parameters as running values.
Cheers:
Poljakov
I inserted a wrong formula, sorry. Here it is what I tried.
=COUNTIFS(
Sheet1!$E$2:$E$5000;">="&A2;
Sheet1!$E$2:$E$5000;"<"&A3;
Sheet1!$B$2:$B$5000;"C"
)
Hi All,
Can I count a value that exists in columns rather than cells? For example, I want to know how many columns contain the number say 3, even if a single column has more than once cells that contains "3". I am interested in knowing the number of columns not how many times number "3" exists
Thanks in advance!
I would start by setting up a helper column containing an IF formula wrapped around a COUNTIF, for each column you are searching. For example, if columns AF are the ones you are searching, then use GL for these formulas. Each IF formula is to convert the results of a COUNTIF, into a 0 or 1, indicating whether that column contains that value.
Then in column M, use a SUM function to add up the results from the Helper columns GL.
Below is the formula,
=COUNTIF(A1:Z100,3)
Change the range of the cells as required.
Vijaykumar Shetye, Goa, India
please help. how to make formula in numbering like this:
1. MMPSI16040052
1. MMPSI16040052
1. MMPSI16040052
2. MMPSI16040053
2. MMPSI16040053
3. MMPSI16040054
3. MMPSI16040054
hi,
we have to required result how many R0715, R0716, R0718
R07150101
R07160110
R07150122
R07180129
R07150132
R07180137
R07170139
R07120147
R07150163
R07150168
R07150172
If your codes are in coloumn A...
=COUNTIF(A1:A12,"R0715*")
B1 contains p.qdg2, p.qdg2xh
B2 contains p.qdg2x, p.qdg2
B3 contains p.qdg2xfe
B4 contains p.qdg2
Need to count number of times p.qdg2 occurs in range B1:B4
Only p.qdg2 should be counted  not p.qdg2x or p.qdg2xh or p.qdg2xfe
ie/ result should be 3
Can anyone can give me the formula please?
I have been reading up on this but have been unsuccessful in assembling a working formula to solve my issue.
I am downloading a YTD sales report weekly and need to report out some key KPI's.
The goal is to dump the sales report YTD extract into the model weekly and have all the KPI's update based on date ranges, dsum logic, etc.
I need to calculate the # of orders and the # of shipments (referencing a weekly date range).
The data from the extract has columns for order date, order #, item # and qty.
I need to calculate shipments, which would be the sum of all the unique order #'s for the date range (there are duplicated order #'s in the data extract).
I also need to calculate the # of orders by item. This is more tricky as there can be multiple lines for the same item on an order.
Please let me know if you have some suggestions for a simple formula based solution without sorting the data extract or using a pivot table.
Thanks in advance for any support.
=COUNTIF($D$9:$D$38,"B")+COUNTIF($J$9:$J$38,">=16")
with the above formula,I wanted to find out total numbers of boys passed and failed in three subjects,English,Maths,and science.Full mark is 40 and pass mark is 16
this is my table
sl Name gender english maths science
1 Sunny M 22 21 18
2 mike F 14 12 19
3 Bunny M 22 21 18
4 mike F 14 12 19
so I wanted to find out total boys and girls failed and passed using the formula
In column "S", I have numbers 1,2,3... (based on the formula that checks a value in Column A (if blank, gives blank... else a number in Ascending Order).
I have a similar value in Column X as well. 1,2,3,... etc.
in between, I have Certain values in Columns U & V (derived from certain formula). In column Y3 I am trying to calculate using the below formula...
=COUNTIFS(S:S,"<"&X3,V:V,U3)
but I am getting everything as '0'.
Please advice.
thanks,
Manish Gupta
Hi I have a question:
I have a list of values in Column A on tab 1  Product
potato
tomato
squash
corn etc and they are unique
On the tab 2 I have 2 columns:
Column A has the same values as column A on tab 1 but they could repeat, and column B has some text, for example color. Not all column B is populated
potato brown
tomato red
potato purple
squash
corn yellow
I need to calc. value in col B on tab A, where it will count for each of the col A entries on tab A it will count how many have values on tab 2
So it will be on tab A
Potato 2
tomato 1
squash 0
corn 1
Thank you!
What do I do if I want to refer to a text cell to find values in a range?
For example, I have a table with service time. The header for columns will have text for "1014" or "1519", etc. I want to use the header text as a variable for my criteria, kind of like =Countif($B$2:$B$2000,">="&Value(Left(Header,2)),$B$2:$B$2000,"<="&Value(Right(Header,2)))
(the above does not work, wondering if I need an Indirect() function in there somewhere...?
I'm trying to use the COUNTIF function to count cells in a column that are >0, but I don't want it to include hidden cells. How do I select an entire column as my range, but not include hidden cells in my count?
Here is the formula that I tried using =COUNTIF(Compile!N:N,">0")
i want to count 2 values in one cell from different column
ex. count A for me from one column (means column A) and < 5 from another column (means column B)in one cell.
what will be the formula
thanks
Im trying to count blank cells. I have column A with numbers in it and column B with both numbers and blanks. What I need to know is how to count column A with numbers with Column B to get only the total number of blanks
column A column B
1200018401 9000035943
1200018402 9000035944
1200018392 blank
1200018393 blank
1200018396 blank
1200018397 blank
How can I calculate whenever column A has a number and column B has a blank. I need to know that total blank number
Dear Jen,
Use the formula
=COUNTIFS(A1:A100,">"&0,B1:B100,"")
Change the range of the cells as required.
Do let me know if this is what you wanted to do.
Regards
Vijaykumar Shetye, Goa, India
I have a mixed text and number format array that I am trying to use multiple conditions to count items. Columns are numbered for course rotations 113. rows are random and not important. Individual cells contain student name, rotation name and MAY contain which weeks withing a 4 week rotation they will be there. Eg one cell may have Smith GI which corresponds to a student for all 4 weeks and another have Green GI (1,2) meaning they are there only 2 weeks. I am trying to get the output in number of students per week per rotation. for the above would be 2,2,1,1. Goal would be to express results in an array of rows by rotation#/week and columns by rotation name. Tried using multiple countif functions as follows: =COUNTIFS($C$2:$C$18,"*GI*"&"*weeks*"&"*1*") + COUNTIFS($C$2:$C$18,"*GI*",$C$2:$C$18,"weeks") but didn't work. Also figure there should be an easier way to use a reference cell for the rotations text (GI) and the week (for the above formula used week 1) Any suggestions? Thanks in advance!!!
Hi, I am trying to evaluate the results of suppliers / products against specifications. In particular I am wanting to calculate the % of intakes from a particular item that meet a specification. e.g.;
SUPPLIER PRODUCT Spec No. in spec % meeting spec
Joe blogs Apples 0.10 50 98
For the 'No. in spec result' I am using a COUNTIFS formula where 'criteria 1' is the spec value inputted another cell ("<="&C2). This seems to work fine where the there is a value in the 'spec' cell, but for some products there isn't a spec so I enter N/A. In such instances the COUNTIFS formula returns a seemingly random numeric figure, instead of an error. This in turn returns a false value in the % meeting spec column... Please can anyone help?
Please help me to come up with a formula used to show exact date in which data was entered in a cell.
Hello Sydney,
Please check out the following example:
How to insert today date & current time as unchangeable time stamp
sheet1 i have item and quantity then i want to transfer the value of all items that has >=1 to sheet2? how can i do that?? thank you
Hi, I would like to count how many rows (in total) that fulfil more than 2 criterias. For each row, there is a unique ID. For example, one unique ID has 5 rows of Product A and 3 rows of Product B. Under Product A and B, the unique ID has different amount.
The criteria is Product A has amount more and equal to 1,000. Product B has amount more and equal to 1,000.
My question is what formula to use to calculate how many rows (in total) that this unique ID has and it need to fulfil the 2 criterias.
Appreciate your assistance on this.
Thank you.
Shahrul
I want to count when a range of cells (m8:m17) are not equal to 0 but only when cell m6 isn't 0.
Is this possible?
Hi!
The following formula counts how many cells in the range M8:M17 are not equal to 0 when M6 is not equal to zero, and returns an empty string (blank cell) otherwise:
=IF(M6<>0, COUNTIF(M8:M17,"<>"&0), "")
If you are looking for something different, please clarify.
I have a table in which first column i add date 1 July to 26 July 2016. In second column, I give rating to me (e.g. 0 to 10). I want to sum my rating only past 5 days but when last 5 day rating is less than 2, then add one more day. e.g.
Date Rating
15 July 5
16 July 3
17 July 0
18 July 8
19 July 2
20 July 6
21 July 7
23 July 1
24 July 5
25 July 6
26 July 3
when I sum last 5 day (21 July to 26 July) is 22, but 23 July my rating is less than 2 than I add one more day in rating (20 July to 26 July) than my rating is 27, I remove 23 July in my life.
Can you you help me in this.
Than You.
any one can help me in this.
Hi Svetlana,
I'm trying to count the blank cells in a column after a specific date. For example, I have a list with several projects I need to close before 31/03/2017. I've foreseen a column with the date of closure and I can count the project that I've closed allready and those I've closed to late: =COUNTIF(P2:P33;">31/03/2017") but when the project stays open, and the cell is empty, I can't count those. I'm looking for a formula that can count the projects that have passed 31/03/2017.
Can you help me?
Thank you
Hello,
Can you break this formula down for me?
COUNTIF9G31:BC31,"*x*")/2
Thank you.
Hello,
I want to count the Entry in excel what are entries are entered as well as i have to sum the pages in pages column.
for example
Name Pages Stage
1234_AAA 100 Stage1
1345_AAA 200 Stage2
1234_AAA 300 Stage1
1568_BBB 400 Stage3
1345_AAA 500 Start2
I need below output automatically
Count Total Pages
1234_AAA 2 400
1345_AAA 2 700
1568_BBB 1 400
Stage wise total pages
Stage 1 Stage 2 Stage 3
1234_AAA 2
1345_AAA 2
1568_BBB 1
Hi,
Using Excel 2013. I want to return the count of the number of cells that are colored a specific color AND have a specific value.
FOR EXAMPLE: I have APPLES (red), GRAPES (green) and STRAWBERRIES (red). I want to only return the number of red apples, not everything red. Can I do this? Please help
P.S. I am not using COUNTIF to count apples only as I am using that formula to return that value in a different cell.
state the results of the function,=IF(COUNT IF(B2:B9,">65")>5,"YES","NO")
Michael,
If the range B2:B9 contains more than 5 cells with values greater than 65, return YES, otherwise NO.
BTW, COUNTIF should be spelled with no space in between like this:
=IF(COUNTIF(B2:B9,">65")>5,"YES","NO")
hi
I wanted to enter these values 2724742560in a cell of a spreadsheet but after pressing the enter key the cell displayed #########. please explain why and how could I rectify the situation.
Hi Michael,
Most likely the cell is not wide enough to display the value, so just make it a bit wider. To quickly change the column width to fit the contents, select the column, and doubleclick the boundary to the right of the selected column heading.
Hello...
Do you know if this is possible ?
I have a workbook. One workbook per Month. Each workbook will have 1 worksheet per day (so between 29 and 31 sheets per workbook)
(In this example I have August 1  August 4 and a Summary Sheet)
I need a formula that will Find a name (In this case I used Captain1 or FF1 etc. instead of actual names) and find what is in the time Off column and total it on the Summary sheet.
I want the summary sheet to populate as new sheets are created. Is there a way to write a formula telling Excel to look in ANY and ALL sheets in the entire workbook and total those form me??
I can't figure out how to do it as technically the sheets haven't been created yet.....
Hello! What a great post.
I have some trouble counting a specific value in excel. I have a cell that I want to count the amount of cells from a row that contains the specific value "em". So far so good, but there is a catch. I only want it to count it as 1 if the cells with "em" comes after each other. Meaning if it finds three cells in a row like this: "em" "em" "em" "sm", it should only count it as 1. And: "em" "em" "sm" "em" "em" as two.
Hope you understood the question, and thanks a lot for any help! :)
How to count duplicates of 2nd column based on 1st column in a large excel file. Eg :
1 a
1 b
2 a
2 a
2 d
2 c
2 c
4 e
Output Required :
1 a 1 [ Count of "a" in "1" : One Time ]
1 b 1
2 a 2
2 c 2 [ Count of "c" in "2" : Two Time ]
2 d 1
4 e 1
please help need to find a way to to count how many times a person was late,i.e. d2:d25 =paul,e2:e25 =are times started ie 10:00,10:15 ect.start time is 10:00. i use this,COUNTIF(e2:e25">10:00")for the total count,but i need to find a way
to count for each employee thank you
Hi Jum,
You can use COUNTIFS to count with multiple criteria:
=COUNTIFS(E2:E25, ">10:00", D2:D25, "paul")
Hi,
I am using this formula
=IF(COUNTIFS($B$3:$B$1100:$G10:$G$1100,B10,$B$3:$B$1100:$G10:$G$1100,G10)>1,"FT","PT")
I have two colums AM and PM, I am trying to use this to highlight the duplicate number for a person i.e if the persons number shows up in AM an PM it will show FT and if it shows in AM but PM is blank will show PT.  This formula works but the problem Im having is when both Am and PM show "0" or are blank the formula still gives me FT when I need it to stay blank.
Can you help?
hi, please help... i need to have a formula that will count entries in the specified range, with two conditions. ive tried this but it doesn't work
=COUNTIFS(D13:Q13,"C", D13:Q13,"X")
I really need help on this, thanks and God bless
Hi!
I have a spreadsheet with employees, hire dates, managers, department. I have a second tab that keeps count by all employees, then broken down by each company and department.. I cannot figure out how to group the hire date and department to automatically count for me when I add a new person. we are about to hire 200+ so having it automatically update would be so much help. can you help me figure out what I need to put in the date part and how do I group hire date (ex. Jun16) and department (ex. Maintenance) to make my formula work?
Hi,
I want to use the countif formula for the list of the descriptions (in one column). In these descriptions, there are many cells with more than 255 characters. How to use countif here. I am getting the answers for all the description cells wherever the character length is less than 255. For others, " #value! ".
Can you please help me?
Also, I want to use vlookup for these description columns. How to do that?
Hello:
I am trying to count blank cells within a range (rows). I'm only interested if there are 3 or more blank cells beside each other. If cells A1 and B1 are blank and C1 is not blank, I don't need to know about cells A1 and B1. However if cells A1, B1, C1 are blank, then I want to know. In addition, if there are subsequent series of blank cells, for example M1, N1, O1, P1, I also want to know.
Is there a way to do this?
Thanks!
Christine.
hi
i want to know the formula which can give me best answer
example
30 qty pack is equal to 1 duty
he pack 35 then also 1 duty
he pack 25 then also 1 duty
if he pack 60 then will be 2 duties
Hi Svetlana,
Thank you for this very helpful article. :) I'm trying to use the countifs function, however it's not working for me. Here's the scenario.
I have one question which shows a list of anawer.
Ex: How likely will you buy this?
Product 1, Produt 2, Product 3
In each cell there's a drop down list of the answers such as 3 will buy it, 2somehow will buy it ans 1not going to buy it.
I'm using =countifs(A2:A102,"3", A2:A102,"2", A2:A102, "1")
but it's not even counting :(
Hope you could help with this.
Thanks a lot!
Hi Kristiane,
First off, remove double quotes surrounding numbers because they turn numbers into text strings.
If you need to get the total count of answers 1, 2 and 3, then add up 3 different COUNTIF functions, because COUNTIFS works with the AND logic while you need OR:
=countif(A2:A102,3) + countif(A2:A102, 2) + countif(A2:A102,1)
If you want the individual count for each type of answers, then use 3 separate formulas like this: =countif(A2:A102,3)
Hello,
I have a list of departments that I am trying to find <=2.0 hours for each department from a pivot table list of employees. I cannot figure out the best way to use the countif function to find only that department name and how many times that department comes up with less than or equal to 2 hours.
Column A: Employee Name
Column B: Department They Work In ex. Pack Room
Column C: Total number of hours worked
I need the Countif function to know to only look up the Pack Room Hours in column B and only count hours that are <=2.0.
I've tried using DCount but still can't get my result.
Hi,,You are doing best.
I need help.
in column A, i will enter the due date, e.g. due date is 15/09/2016. now i want that if the due date expires and extends to 19/09/2016 then fine of Hundred dollar per day comes automatically in column B and for 19/09/2016 fine will be 400.
Your nice help will be appreciated.
reply should be on email.
Thanks
Hi, I have a spreadsheet for analysing exam results. I need to count and summarise each student's results against each course, e.g. for each student, indicate:
pass (where all 4 subjects passed)
or fail in maths, fail in english (the rest are pass so silent).
or
CNC (where absent)
So how do I insert the text depending on pass or fail per subject.
Thanks.
Hi there,
I have a complex spreadsheet and I want to have a formula calculating the following:
From a range of cells to take a particular value (name) and then from another range of cells (column) to take another value matching the row with the name, then to count the matches in the cell.
I have tried this formula
=IF(AND('Domain 1'!E6="Andrea",'Domain 1'!Q6="Food"),1,0)
but the thing is that I need the formula to look at a range of cells in two different columns and then to sum up these values.
I would really appreciate if you can help me
Hi, how do I count the number of cells in a range that are bigger than 0?
The numbers in the cells are the results of formulas though.
Thanks for your help.
Thank you for the simple clear detailed information.
You are an angel.
Ok I have bee through a few help forums now and got tired of searching. I was trying to utilize a Countifs formula to determine employees available to work during certain time frames. Due to the way our system exports the information, an excel formula would work best. Here is how info is exported to excel:
A B C D E F
Name From To Sun Mon Tue
Employee 13:00 00:00 TRUE TRUE FALSE
What I need to do is count how many employees are available during certain times each day, example:
Time Sun Mon Tue
1pm7pm 1 1 0
Any assistance would be greatly appreciated cause this type of formula is not my strong suit.
I need a formula to get the total count of non empty columns in excel which is having "n" number of columns.
I need help counting unique invoices touched by the collector per work day. I used If(I1=I2,0,1) but still getting some duplicate invoices for others. I need column I to give the count of unique invoices touched that day.
Thanks,
JM
Hello!
Please check out the following tutorial, hopefully you will find a proper formula for your task there:
How to count distinct and unique values in Excel
Sir
COUNTIF(G7:G315,"SC") is 38
and I want to count How many R is entered in the next column exact SC means in column H7:H315. pl do the needful and Give formula
I WANT TO COUNT WITH IF BUT AT NEGATIVE
EXMPL
SUMIF > IF ISNT "THIS"
?
Hi Greg,
You can use the "not equal to" operator (<>) e.g.:
=COUNTIF(A1:A10, "<>"&5)
=COUNTIF(A1:A10, "<>"&"text")
Hi, I am having a problem counting how many part numbers with shortages on a multiple data. See below data:
YV756A YV756B YV441G YT081A YT081B
4100023003 1 0 1 1 1
4100024001 0 0 0 0 1
4100142001 1 1 1 1 1
Need to count how many part number with shortage on following models:
YV756 =
YV441 =
YT081 =
this is considering if YV756A and YV756B has 1 on each, it will take only as 1 part number with shortage.
Please help me create formula to count this.
thanks a lot!
Jenna
Hi,
I need help, if I have same words from sheet 1, and i want to count the words in 6 rows in sheet 2. how?
e.g.
sheet 1  ABC (AE1) criteria
Sheet 2  A1F1 range
By using countif formula.
once i put the this formula:COUNIF('Sheet1'!AE1,"*ABC*")
but it is calculating multiple.
i need help: I have a leads excel (clients) and i plan to calculate how many leads we got:
yesterday
today
last7days
this month
I have P column that have "7" standard possible answers; like the state of the lead. I need a formula for each state of the lead to count the nr of leads for the above time periods.
Thanks,
I really appreciate this answer i tried for one week to do it.
What about count if greater than 5 and less than 8 for example? or between something?
Hi Khamkeo,
In this case, you need to use the COUNTIFS function, for example:
=COUNTIFS(A2:A10,">5", A2:A10,"<8")
A B C D E F G H I J
B 1 0 1 1 1 0 1 1 1
C 0 1 0 0 0 1 0 0 0
D 0 0 1 1 0 0 1 0 1
E 1 1 1 0 1 1 0 1 0
F 0 1 0 1 0 0 1 0 1
G 0 0 1 0 0 1 0 0 0
H 1 0 0 1 1 0 1 1 1
I 0 1 1 0 0 0 0 0 1
J 1 0 1 1 1 1 1 1 0
find duplicate column..
highlight it
Help me with this...
can anyone help me with this ??
i can find the duplicates column in alphabetic mode but i can't in numeric mode
please help me out with this
hi i was wondering if you can use the countif function with a cell reference as part of the criteria. basically instead of saying =countif(Range,"<5") rather saying =countif(range,"<A7"). your help would be greatly appreciated.
thanks
Gavin
Qty. Rate
2 699
1 899
1 809
2 539
1 719
1 539
3 685
1 539
I use
=COUNTIFS(A:A,">599",A:A," 2)+(719 > 1) +(685 > 3) = 6
Qty. Rate
2 699
1 899
1 809
2 539
1 719
1 539
3 685
1 539
More then 599 and lees or equal to 799
I require output : 6
Detail .
(699 > 2)+(719 > 1) +(685 > 3) = 6
Please help me i want to calculate electricity rate in excel
Example:
Sr. No House no Name Meter reading
1 1 ABC 50
2 2 XYZ 56
Criteria is if reading 0 to 50 then 0 rs charges if reading >50 but 100 but 150 then 4 rs charges.
i have data of 500 employee ID's with different tasks. I want to use the function countif to get the no of tasks per employee id in mass, it is possible please help me
I am trying to format a row of cells. Its to track requirements for scouts. If 1 of cells E6:E10 is an "A", and if all of cells E11:E14 are an "A", and if cells E16:E17 are an "A", and if E18 or E19 are "A", E20 will read "C", if cell between E6:E19 is "A" than E20 will read "P", or " " if none do. I have been trying for 3 days and I keep getting errors. Can you assist?
can anyone tell me how to sort data in multiple sheets ?
can it possible to sort multiple data same time in multiple sheet?
Hi Svetlana, I have a column A and a column B which can have a Y (short for Yes) entered into either of them for each row, but cannot have the Y entered in both in a row. The purpose is to record the number of, size A (140 litres)or Size B (240 litres).
Once the size is recorded, I am also recording how full each of the containtes is. (100%, 75%, 50%, 25%) This is recorde with a simple Y within the relevant cells.
At first i did not seperate the container sizes so i was able to use the ifcount function to total each column using the following formuala(=COUNTIF(E4:E12,"Y")
Are you able to tell me how I can total the number of "Y" in each of the 100%, 75%, 50%, 25% colums but based on whether the container is size A (140 litres)or Size B (240 litres).
Thanks for your tips!
Hi Swetlana, Will you please help me to find the value for the below data:
107
107
105
255
255
15
21
22
I want to count all unique values considering with duplicate as a one value.
Hope you will help me.
Hi. I really appreciates everyone participation in this platform. Can any one help me with a formula how to calculated if an amount is 1000 and it's for 4 people makes it 4000 but if it's more then 4 like 5, 6 or 7 get it from 1050 and calculate.
Hi,
what formula can I use to put the following criteria in one cell and get the cell highlighted if any one of the criteria is met.
a.) if criteria range of cell has more than 3 text
b.) the sum of text in the criteria range is more than 5
c.) if the text are togather in criteria range any blanks in them, it should be counted as ONLY one text and not multiple.
d.) Everytime a text is entered in the range of cell, the cell should count 160 cells in reverse (backwards) to count the number of text from the current entered text coloumn and not count all the text in the criteria range.
I don't understand the example #1 countif with multiple criteria function. It says we want to count the numbers between 5 and 15. =COUNTIF(B2:B9,">5")COUNTIF(B2:B9,">=15")
If we are looking at the range that is greater than 5 and less than 15, why is there an equal sign on 15 if it is suppose to be less than 15?
What is wrong with this formula? It produces a wrong value if zero.
=COUNTIF(B2:B86,"Not Done")
sounds like cells have 0 values
use this =COUNTIF($B$2:$B$86,"0")
or use two formulas in different cells:
1. =IF(COUNTIF($B$2:$B$86,"0"), "not done","done")
2. use this =COUNTIF($B$2:$B$86,"0")
IF THE Cells are blank then use this
=COUNTIF($B$2:$B$86,"")
ciao
I need to count the number of names in a single cell (example B14).
I don't want to do so by specific names since the worksheet needs to be applied to a large number of people. I have tried the formula =countif(B14,"*").
However when I enter two names in cell B14 Smith Jones it only counts it has 1 instead of two.
Does anyone know how to solve the issue.
Thx
This is for Dave...
=IF(LEN(TRIM(B33))=0,0,LEN(TRIM(B33))LEN(SUBSTITUTE(B33," ",""))+1)...
hope it helps. if i understood your question correctly.
change the cell reference in the above function to your liking.
Thanks
P.S. Great Post on COUNTIF...
Thanks for the help
I need to know how to transfer statistics from individual excel worksheets located in a folder to excel workbook put on sharepoint. I also need to know how to get the statistical data from each individual excel worksheet to total for each day of the month.
Thanks for your assistance.
I would like to use countifs for Criteria_Range. My Criteria Ranges is also in between Dates Range. Can it is possible to use the Criteria Range in between along with Range in between particular Dates.
eg. If there are two products named Apple and Ball updated in sheet for month of Jan. The said product sold in a month of Jan. Both the products are mentioned in A column. I would like to know how much Apples and Balls sold within particular Weeks for month of Jan.
Kindly revert on mail.
Hi,
I'm try to count the newest month with tips over 100 dollars and stop the count when the tip drop below 100:
Column A July August Sept Oct Nov Dec
Sara 125 94 121 82 120 135
Working from Dec to July (newest to oldest month) the count would only be two, as the tips drop below 100 dollars in Oct....what formula can I use??
Hello,
I need som e help:
How to remove Columns where values are missing in >50% of rows?
Countblank didnt work for me. I have 30000rows, 300columns.
Thanks,
Jamie
Hi Jamie,
the example is two row of data: headers top row, data second row
Having difficulty writing a COUNTIF dynamic function that correctly counts a criteria based on the last 20 entries. Get confused using the OFFSET function, which I understand is essential for a dynamic database. Here's the formula I thought would work. Please advise. Thanks!
=COUNT(OFFSET(AQ54:AQ488,COUNTIF(AQ54:AQ488,"<=3")20,0,20))
the question tells me to multiply a value and then add another value to it. How do I do this??
I appreciate any help you can give me. I have a list of names down in a column.Each name has an associated value in the column to the right of these names.I copy a list of names from the internet and paste them along with their values to a blank portion of the spreadsheet.These names and values are in columns but they are separated by columns of other information and are three columns to the right.The Downloaded names in the column also include additional names that I do not need and the names that I download may be in a different order each time I copy the spreadsheet.is there a formula to pick out the values next to the downloaded pasted names for only the list of names that I require on my spreadsheet.I have tried many different formulas but do not seem to get them to work. thanks
Hi, i would like to know if there is a function for determining the specific number and location of spaces within a cell.
For example,
Cell A1 contains: X and cell B1 contains: X
Thank you
I want to find the duplication in colomn.
Tell me how to use countif formula.
Hi, I am setting up a sheet for bookings of a holiday home. I have date of entry and departure in 2 separate columns, I want to set this up so that when entering a new booking it will not allow duplicates or come up with a warning, can anyone help with what formula to use?
Thanks
I am trying to count unique text in a column A3  A186. Why doesn't this work? =SUMPRODUCT((COUNTIF(A3:A186,A3:A186)=1)*(A3:A186""))
It looks like the same formula from above....
=SUMPRODUCT((COUNTIF(A2:I2,A2:I2)=1)*(A2:I2""))
I am using EXCEL 2010.
Hi Ablebite Team,
For the "COUNTIF not blank" you wrote the formula as:
=Countif(C2:C12,""&"")
It is good but for the cells which contains the formula and the result of formula is: "" (showing empty); by using above formula the counter will count them as not blank, but we do not want to count them. Please help what to do.
Thanks,
Regards
I wish to count the numbers in a column where the number to be counted is less than the number one row below it. Is there a way to to this?
Example:
Column F
f1 contains the countif or sumproduct or whatever formula
The range is F2:F72
the values in F2 on are similar to:
F2: 25
F3: 19
F4: 43
F5: 14
F6: 6
F7: 73
F8: 37
F9: 41
F10: 45
The total in this case would be 4 (F3: 19, F6: 6, F8: 37 and F9: 41)
Hi Ablebite Team,
For the "COUNTIF not blank" you wrote the formula as:
=Countif(C2:C12,""&"")
It is good but for the cells which contains the formula and the result of formula is: "" (showing blank); by using above formula the counter will count them as not blank, but we do not want to count them. Please help how to count non blank cells excluding those cells.
Thanks,
Regards
i need a help regarding Countif as am keeping formula for one set of numbers which are duplicate.i need to get the count beside which is the newest like eg:12345 old one 1 should be beside
12345 new one in same row i need 2 beside.
12345 2
5236 1
52879 1
12345 1 I need to get here 2
How do I count multiple dates in one cell? Ex: Cell A1 contains: 2/19, 2/20, 2/21 I want cell B1 to count 3. I am using this formula =LEN(TRIM(A1))LEN(SUBSTITUTE(TRIM(B1),",",""))+1 but when I delete the dates in Cell A1 the number 1 appears in cell B1.
hello
I need to count cells with specific color .
Is it possible?
Hola
cuantas veces puedo utilizar la palabra "countif" en una formula para sumar un mismo valor en diferentes columnas, total de columnas (6)
ejemplo: =countif(b2:b100,"1/0")+countif(c2:c100,"1/0")..........
y muchas gracias por la ayuda que me puedan prestar.
atentamente
armando
if you r there i want to ask something
Hi there...I have data that lists names of people and how many times they register per month. So Column A is a list of names and there could be multiple occurrences. If you are only supposed to register 2 times a month and i would like a way to identify by name those that registered more than 2 times a month and the frequency of times they registered. How do i do this?
Hi
i want to if 20% then show 4 if 21% to 30% then show 6 if 31% to 80 % show 8 if 81% to 100% then show 10
how set this formula in excel please suggest me with example
Hi! my current formula is COUNTIF(a1,"PCS") my prob is, if it has another text in the formula, it doesnt count as 1. what formula should i use when i wanted it to count as 1 regardless if it has other containing text.
Hi! my current formula is COUNTIF(a1,"PCS") my prob is, if it has another text in the cell e.g PCS 1 jgp, it doesnt count as 1. what formula should i use when i wanted it to count as 1 regardless if it has other containing text for as long as it has PCS
Hi!... well i want to know that if we have Date sheet of something issuance of inventory and now we want to sort that some one code or person how many times have issued the inventory how should we formulate this data.. actually i know the way of "Filter & the way of "Find" i m trying to formulate this data that i putt name or code in any specimen cell and got detail of all issuance times .. still confused and trying to find .. could you please have any idea
thanks you .. tany
Hi!
I have a spreadsheet with columns A and B. In column A is new results, in column B is old results. I need to count the number of occurances where the value in column A is greater than the corresponding value in the same row of column B.
I have tried using
=COUNTIF(A2:A100,">"&B2:B100)but it always returns 0 even though there are many instances of an A value being different than the corresponding B value
I also tried =COUNTIF(A2:A100,">"&B2)But that returns the number of A values greater than B2 specifically instead of the corresponding B Value of the same row.
Please Help!!!
Hi, Kate,
SUM function will solve your problem, try this:
=SUM((A1:A4>B1:B4))
Finish entering the formula by pressing CTRL + SHIFT + ENTER instead of just Enter.
Another option is:
=SUMPRODUCT((A1:A4>B1:B4))
I have 40 students, I wanna use COUNTIF to know how many students got from 7 to 7.9. I wrote it like this. +countif(a2:a41;">=7"&"<7.9") is it correct?
Thanks in advance!
No it should be
=COUNTIF(A2:A14,">7")COUNTIF(A2:A14,">7.9")
This should give you the answer
=COUNTIF(a2:a41,">7")COUNTIF(a2:a41,">7.9")
There's another function that allows multiple criteria  COUNTIFS. Try this:
=COUNTIFS(A2:A41, ">=7", A2:A41, "<=7.9")
Hi!
I have Col A containing "Problem Ticket Opening time", (e.g. 20170405 19:20:04), Col B containing "Problem Ticket Closing time", (e.g. 20170409 12:52:10) and Col C the Customer Name having the problem/ticket (e.g. Mr John Smith). Think of 3,000 rows and think that the same customer has repeated tickets. Sometimes tickets for the same customer repeat every few days (which i dont mind to count) BUT sometimes the customer (Mr Smith) calls today for a problem and calls AGAIN tomorrow (within 24hours).
This is something i want to record within a month:
E.G. Mr Smith created 5 tickets that were under 24hours gap.
I am still trying to work out the logic. HINT which could be useful: I have managed to convert all times in Col A and B in Year Days (e.g. 31/3/2017 is day number 91).
I am stuck...
part number call out no. Qty
nas 15
nas 15
nas 15
pvb 25
pvb 25
tvs 35
tvs 35
xl 40
xl 40
xl 40
I have callout number for each part. How to use countif formula in excel to count number of callout. Would like something like below.
part number call out no. Qty
nas 15 3
nas 15
nas 15
pvb 25 2
pvb 25
tvs 35 2
tvs 35
xl 40 3
xl 40
xl 40
Dear World,
Good Morning :)
I have a question on countif formula ... as a example
1. GSS102C1934E5814135
2. TR036C216E5318140
3. GSS101RET18E4923145
i need to know the formula for count if there is " number number "
as example numver "1", in center of full txt there is "C1934", i need the furmula to find cells with finding numbernumber formula .. if you see number"3" example. there is "wordnumber", i could fiqiur out to use search formula .. but i need furmula for counting or searching cells with " numbernumber ".
Waiting for answer if anyone can help me please...
Best Regards,
Reza Peiravi.
Thank you so much. Incredibly helpful!
Please suggest formula 
If in Column A I have names (Names are repeating) & In Column B Status against name like Yes & No.
So If I want to count how many Yes are there against any particular name than how to do it. Pls help
Hello,
assuming, that you want to count "Yes" against "Peter" use the following formula:
=COUNTIFS(A:A,"Peter",B:B,"Yes")
Just replace the name in the formula with the one from your data.
Hop it helps!
Hi,
I have a spreadsheet where I want to count yields on investments between various rates (i.e. >=1% and 1")countif(p8:p29,">2").
this returns 0.00%. Please advise. Thanks!!
Hello,
I want to know formula to count cells that does not contain some values...more than one.
Good day all hope someone can help me
ok here it goes hope it makes sense
I need a line written for a worksheet of mine that does the following
i have items that are being sold call it a orange
then i have a date that it has been delivered
now what i want to be able to do is have excel calculate how many of oranges how many apples how many grapes etc. there are 7 different items that i have still needs to be delivered based on a text insert "to be delivered"
Thanks let me know hope this is enough info
… Here is what I am trying to do:
=COUNTIF(H1179:H3396,TODAY())
This is my current formula I use to determine how many units are processed for the day…Fortunately / Unfortunately I processed 87 installs yesterday from 3 ICSB locations so my formula doesn’t provide me with a quick answer to Marks daily question of “How many do we have done today” so I sit here and count them manually soooo I want to add to it:
(D1179:D3396,”Carol Stream”)
Basically I want a formula that I can utilize for each location that only counts the installs done for that location and not all installs done within a range that are dated for TODAY.
If you can help it would be appreciated!!
Thanks
Thank you!
When are you gonna add windows 11
Greetings, Svetlana!
First let me tell you how impressed I am with the clarity of your explanations. Your written English is more lucid than that of most native speakers— seriously! My hat’s off!
Let me try to explain what I want to do here, and please bear in mind that I’m a novice.
I’m in the midst of trying to create a calculator in Excel (2010) that will enable our sales support personnel in a large financial services brokerage agency to efficiently and accurately return guaranteed/nonguaranteed lifetime annual income results from our brokered line of fixed indexed annuity products, given varied investment input, and each product’s individual growth and payout parameters. This would allow us to give very accurate and definitive advice to our contracted agents about which annuity contracts would be most appropriate for given clients.
The four unwieldy IF/AND statements which are copied and pasted below result from each of 4 possible value output combinations obtained from two binary decision points (which are interfaced with two independent groups of two form control radio buttons). I have tested each of the four IF/AND statements separately and they return correct output.
1)
IF(AND(F2=1,I2=1,C5<=44),"NA",IF(C5<=54,0.040,IF(C5<=59,0.045,IF(C5<=64,0.050,IF(C5<=69,0.055,IF(C5<=74,0.060,IF(C5=80,0.070))))))))
2)
IF(AND(F2=2,I2=1,C5<=44),"NA",IF(C5<=54,0.035,IF(C5<=59,0.040,IF(C5<=64,0.045,IF(C5<=69,0.050,IF(C5<=74,0.055,IF(C5=80,0.065))))))))
3)
IF(AND(F2=1,I2=2,C5<=44),"NA",IF(C5<=54,0.030,IF(C5<=59,0.035,IF(C5<=64,0.040,IF(C5<=69,0.045,IF(C5<=74,0.045,IF(C5=80,0.055))))))))
4)
IF(AND(F2=2,I2=2,C5<=44),"NA",IF(C5<=54,0.025,IF(C5<=59,0.030,IF(C5<=64,0.035,IF(C5<=69,0.040,IF(C5<=74,0.050,IF(C5=80,0.060))))))))
Let me add that each successive statement after the first simply reduces each of the whole series of nested IF outputs by .05.
Here are my two questions with regard to all the foregoing:
1) How do I integrate the four IF/AND statements into a single statement that will correctly function in concert with the radio buttons and return a single correct output?
2) Does Excel provide some function or other way of reducing the complexity of the nested IF statements?
If you can help me with those questions, I’d be much obliged.
With kind regards,
Bill Hunter
Hello Bill,
Thank you very much for your kind words! For me to understand the task better, please reply to my email with a small sample of your data, formulas and expected results. (I've removed your email address from this blog for security reasons).
Is it possible to use countif function in whitch criteria is text in comment attached to the cell?
Does Countif work with Frequency? I've found an example to count how many different values there are in a large array as the following
= SUM( (FREQUENCY(A1:A1000,A1:A1000)>0))
so I thought that COUNTIF should work to
= COUNTIF(FREQUENCY(A1:A1000,A1:A1000),">0")
However, the formula is not accepted. Do you know if there is a limitation in the type of argument?
Hello,
Please I want to group items but want to write a function so that all those who qualify are assigned 1 and those who do not qualify are assigned 0. Please help
Hello,
I am trying to write a formula to count the number of calls for the first meeting from two separate spreadsheets. I was able to count the total calls for all the meeting but I can figure out how many calls for the first meeting and 2nd meeting and so on.
My first Spreadsheet is the meeting sheet and I have customer column, created date. the second sheet is the phone call sheet with customer name and the date (each call create one date)
I used countif formula to count if the customer exist in the phone list then count the number of call but this formula only gave me the total then I added additional count if formula to say if the phone call date less than the meeting created date then count those number but all I got an error value. Can you help?
Thank you,
LE
Hi there , I have a simple table I did not set it up as pivot table. First row are dates and under each date there are columns with stock symbols( 1050 symbols under each date average ). I am using a count if formula in conditional formatting to determine how many times each stock symbol appears in my table =COUNTIF($A$2:$Z$100,A2)=5 it is a relative reference and I ask a certain color for cells that meet criteria . I set up the range to be same as in formula A2:Z100 Every day I add up symbols and some times I delete columns that are dated more than 2 months ago. The problem is that every day after I add up a new column the range that formula apply to is changing so I have to manually set it up ( conditional formatting/manage rule /this worksheet/applies to )
How can I overcome this problem ? Basically I was looking to add up every day a column and symbols that meet criteria of countif formula to be highlighted let say green
Hi,
I want to know from you that how can I count the two cell data at a time like:
colA
OC TC
OC SC
OC SC
OC EC
OC TC
OC ST
R1 SC
R1 TC
R1 SC
R1 TC
I want to know for OC how many TC of SC and for R1 how many TC or SC Like 
TANK YOU.
BR,
Achira
Hello Svetlana,
I have been reading through your website and can't see the answer to what I thought would be a fairly common question. Can you please help?
I have a created a spreadsheet of people from 10 different work teams. The team names are in column E. Columns J through AG are a range of competencies people are required to complete.
For each person’s row, where they have completed the competencies matching the column heading I would like to record the date they completed that particular competency.
For example:
. A B C D
1 Name Team Competency 1 Competency 2
2 John Red 10/08/17 16/07/17
3 James Red 16/07/17
4 Bob Red 16/07/17
5 Sara Blue 16/07/17
6 Gale Blue 11/07/17
7 Alice Blue
8 Dave Blue 16/07/17
9 Jane Green 11/07/17
10 Blair Green
What I cannot work out is how to create a formula to count the number of people from the Blue team (or any specific team) who have completed Competency 1.
Ideally the results of these formulas will be used to create a table similar to this:
Team Com 1 completed Com 2 completed
Red 2 2
Blue 3
Green 1
Thank you for your assistance.
CS