Is ther any way around not being able to do this - I read that if u make the ranges an array it shoul work - Shift, Control, Enter - or something but I can get it to work. I was hoping to use copuntif for this :-

How do i create a formula for countif with range name

I did create a formula =COUNTIF(C2:C868,"NS") but it show 0 NS range name contain working shift NS 0:00 - 9:30 7:00 - 16:30 7:30 - 17:00 7:45 - 17:15 8:00 - 17:30 8:15 - 17:45 8:30 - 18:00

I have column A fill with dates and column B with customer code. I'm looking to count the number of time the customer code (column B) is repeating but ONLY in previous year. Meaning that the count range must be adapt for each customer code. Will a countifs is able to work with this request?

I am trying to solve a a problem that I am having.

I have a list of projects in one column and start dates in a different column.

I want to create a dashboard that breaks down projects by month, quarter and year to date.

I have tried various formulas centered around CountIf. Bottom line is I want to review a column of dates and determine how many projects started last month, etc.....

I am trying to use the COUNTIF function but over a selectable range. in other words instead of a fixed range like =COUNTIF(A1:A11,"=yes") I want to be able to choose the range Axx:Axx selected by drop down menus.

I am trying to determine how many times a value occurs in each quartile in a data set, with the range of my quartiles changing for each row.

Above is a simplified sample of the data I am working with. What I would like to do is calculate the length of a quartile for each row, then determine whether "Red" is in the 1st, 2nd, 3rd, or 4th quartile

Right now I have two output tables. The first is a "Quartile" table, which for each row counts the number of values entered, divides by four, multiplies by the appropriate quartile and rounds down. For this I use the function

=rounddown(counta(range)/4*(quartile)) For Q1 in this dataset, that is =rounddown(counta($B2:$I2)/4*(1))

Then I have a table which calculates whether "Red" occurs in each quartile, with references to the cell values in my quartile table. My formula for Q1 here is

Where Q1 equals my rounddown formula noted above, returning "1" in this case. For subsequent quartiles, I change my reference in the Match formula to start with the previous quartile +1, and end with the current quartile.

I want a conditional format change to happen when certain criteria is met. I have a conditional formula in column F Let's say F173 If the value in A173 value is found anywhere above cell A173, then make a blue box surrounding cell F173. I want to be able to copy this conditional format down column F

When I apply the countif function to a named data range, it evaluates to #VALUE. I'm trying to count the number of entries in the range (Belgium.Data) that are strictly greater than zero, to calculate a y.t.d. average that won't be biased by incomplete data. The range-name is well-defined - the arithmetic functions like sum, sumproduct etc work and evaluate correctly across the range, but countif always refuses to return a value. I've also tried

Even the last didn't evaluate, even though "=SUM(Belgium.Data)" evaluates correctly. I can't seem to use the actual cell-references either, since the range is non-contiguous - I miss out every 11th cell to compute an average on the last 11 cells - and Excel doesn't seem to like the comma ("union") operator, insisting the 2nd component of the union is COUNTIF's "criteria" argument.

I am trying to take a large spreadsheet with 2000+ rows of data each with its on unique date associated with each row (its a dump of invoices that need to get paid). I need to count how many invoices are each of the seperate 52 weeks of the last year using I believe a Countif function. My problem is I cannot seem to get the criteria written correctly. For example I want to count out of the 2000+ rows of data, how many invoice dates fall between say, Jan 1 and Jan 7. I would think it would be as easy as using the Countif function and then writing the criteria as a forumula to count invoices that have a date that is greater than or equal to Jan 1 BUT less than or equal to Jan 7. It is that precise formula that is giving me much frustration.

I have a similar Sumif forumula problem as I need to total the $ of the invoices but I think if I get the criteria to work for Countif it will work for Sumif.

I am using the CountIf function (in column B) to count the number of events called "EVENT1" from columns C (Time) and D (Events), but the range needs to include all cells which, at the current B row, have the same value as in row A. I want to use a dynamic range so that I can account for the repeats.

I have a start date column and column for status. Status is either "in-progress" or "complete". I want to count the number of "complete" items that fall within a specific date range. I have tried countif but I can only seem to get a count of all items that fall between the date range. I do not want a pivot table for this.

I have a column of values in "£"s and i need to count how many entries there are within a range. I have been able to do it with text but not money values with £ signs!!

I have 2 columns, one containing a piece of data and one containing dates. I want to count how many times the data is in the first column, based on a specific date range in the 2nd column. I have attached a sample SSF with a better explanation inside it.

I have a range of numbers between 1 and 25 in 50 cells.

How could I use the countif function to look at that range of numbers for values between 5 and 10 and count those values that meet the criteria of between 5 and 10?

Or if there is another function to use, let me know.

I have a data set that alters each week which means at the moment I have to update the ranges manually each time. I would like to use a dynamic range and think I need to use the Offset and CountIf functions. Both the start and end of the ranges are dynamic. The range is based on grouping the numbers in Column E (LocNo)

What I would like to do or think the way to achieve this is by:

First looking at Column E

Count how many cells are equal to criteria. (CountIf)

offset 5 columns left from the first cell that meets the criteria (Offset -5)

offset X rows down based on how many cells meet the criteria (Offset X)

I've include a spreadsheet spread sheet which 'should' help illustrate the problem showing the ranges I would like and how the data changes each week.

I have certain cells in column A2:A22 that have names of people. I want a formula in Cell A23 that gives me a total of how many names are in that range. I know this is simple, but how do I put my criteria that if a cell is not blank to count it?

I was wondering if it's possible to use a countif so that the condition can be a range of values also? For example, A1 = 14.12.08, A2 = 15.12.08 and A3 = 16.12.08

So I can have a countif that looks like: Countif(B1:B300, A1:A3). It doesn't work when I try it, but was wondering if there's a way to achieve the same result? So if B1:B300 contained any of the values in A1:A3 it would count the amount of times they appear in the B range.

I have attached the jpeg on my question. (attached the excel file). basically, on my selected range, it has number from 0 to 6 in the five columns. how can i set the formula (countif? or which other better formula) to detect if 4,1 and 1 exist in the range?

I need a macro to identify when cells are >= 90% in a range, and count them. Then put the result in cell Z58. Range is I51,L51,O51,W51,Z51. i.e if all cells are 90% then put value of 5 in cell Z58. Here is code i have that isnt working:

How can I use COUNTIF to count the values in a range which are greater than 0?

I put =COUNTIF(B2:B100000)>0 but that didn't work?

(I'm using XL 2007 hence the range greater than 65000 rows. But I don't think COUNTIFs syntax has been changed in 2007 so I assume I'm having a brain fart.)

I am trying to do a basic count in a range, however am a little brain fried and its not working. On attachment, column D is to list all times out of column A and B listing only unique entries (have tried to use Macro with advanced filter however not liking it being an extract). Column E is to be a count of how many times the break time in Column D appears.

I have a workbook which contains 1 spreadsheet that contains data entry for approximately 20 employees. The workbook then contains a separate sheet for each employee to display the detailed information

Column A stores the dates from Jan1 to Dec 31 Row 1 contains the employees names. The data entered consists of approximatle 4 different 1-letter codes as to what transaction occurred that particular day.

What I would like to do now is be able to count the number of cells that contain a code for 2 different time periods. I would like for it to count 2 weeks ago and separately count 2 weeks in the future.

In trying to get this last calculation, I've added a column for WEEKNUM next to the date (column B) and used somethign along the lines of =CountIF(C2:c366,Weeknum(Now()-2)) and also tried +2. Neither have worked.

I've been testing the countif function and for some reason it isn't working for me.

I have the following text in cells A1:A3 "apple" "banana" "peach"

I have the following text in cells C1:C3 "apricot" "banana" "grape"

I put the following formula in B1 and copied down into B2 and B3. =COUNTIF($C$1:$C$3,A1)

It is meant to count how many of each fruit in A1:A3 is also in C1:C3. The banana is the only one that is in both lists so the formula in B2 should return 1.

But all three formula's return zero.

If I change the range in the countif formula to relative it works. eg., =COUNTIF(C1:C3,A1)

I have a drop down list in a column called Report Type (example below).

Report Type - Drop-Down Menu in Column F Business/Operational/Work Plan Budget Report Performance Report Program Quarterly Report Program Mid-Year Report Program Annual/Year-End/Final Report Service Quarterly Report Service Mid-Year Report Service Annual/Year-End/Final Report Financial Quarterly Report Financial Mid-Year Report Financial Annual/Year-End Report Auditied Financial Statements In-Year Reallocation Annual Reconciliation Report SRI Report Other Report

I need to count all the cells that have: Budget Report, Financial Quarterly Report, Financial Mid-Year Report, Financial Annual/Year-End Report, Audited Financial Statements, In-year Reallocation, and Annual Reconciliation Report

The attached spreadsheet has a "master" workesheet in which I enter customer info, salesperson info, and date. The totals spreadsheet automatically calculates number of sales, contact value.

I need to modify the following formulas to only calculate the data within a date range shown in 2 cells.