How To Use Variation Of COUNTIF Function To Generate A Total Number Of Occurrences

Feb 21, 2014

I'm trying to use a variation of the COUNTIF function to generate a total number of occurrences. The RANGE is a singular column on each of five tabs in a spreadsheet, but the CRITERIA (hopefully) is made up of two separate cells on one tab of the same spreadsheet. Here is the formula as I have it written:

=if(A2="","-",sum(countif('Monday-No Shows'!D:D,or("*" & A2 & "*","8),countif('Tuesday-No Shows'!D:D,"*" & A2 & "*"),countif('Wednesday-No Shows'!D:D,"*" & A2 & "*"),countif('Thursday-No Shows'!D:D,"*" & A2 & "*"),countif('Friday-No Shows'!D:D,"*" & A2 & "*")))

The purpose of this formula is to check to see how many times a student does not show up for an appointment over the course of their time with us. We have one tab with all the pertinent info on each student and I'd like to use this formula for a "No Show" column to more easily know when to cancel a student's services. The problem is that I can only get the function to search for one criteria right now. I've tried using the OR function and adding it to the current function but it always gives me 0 as the result, but if I take out the OR it returns me a higher number. Here's what it looks like with the OR added:

=if(A2="","-",sum(countif('Monday-No Shows'!D:D,or("*" & A2 & "*","*" & B2 & "*")),countif('Tuesday-No Shows'!D:D,or("*" & A2 & "*","*" & B2 & "*")),countif('Wednesday-No Shows'!D:D,or("*" & A2 & "*","*" & B2 & "*")),countif('Thursday-No Shows'!D:D,or("*" & A2 & "*","*" & B2 & "*")),countif('Friday-No Shows'!D:D,or("*" & A2 & "*","*" & B2 & "*"))))

A2 designates the students first name and B2 designates their last name. If I eliminate the OR and resort to multiple COUNTIF's, it will generate twice the number of responses that I want, I fear.

Example.xlsx

View 6 Replies


ADVERTISEMENT

How To Get Number Of Occurrences Of A Grade And Its Total Value In Separate Columns

Apr 6, 2014

In a worksheet of marks of students, i have entered grades A,B,C,D,AND E.Grades are entered in cells o3,AB3,AO3,BB3 AND BO3.

In BQ3,I want to get -in the range of O3:BO3

a)how many "A" are there?
It should display for example A=2,

b) how many "B" are there?
It should display for example B=2,

c)how many "C" are there?
It should display for example C=2,

d)how many "D" are there?
It should display for example D=2,

e)how many "E" are there?
It should display for example E=2.

In BR3, I want to get >

If A=10, B=8, C=6, D=4, E=2 then

display the total value for the grade letters.

Pls see the attached file for more clarity.

View 7 Replies View Related

Generate Iteration Number Of Countif?

Jan 24, 2013

I'm looking for something one step deeper than a countif. I need something that will tell me what iteration number it actually is within the countif, in relation to date, as shown.

Name
Date
Iteration #

[Code]....

Any formula that could be used to do something like this?

View 2 Replies View Related

COUNTIF Formula: Total Of The Number Of Cells?

May 24, 2006

I have cells C22:C27 with a number that could change each week. How can I get a total of the number of cells that = 0,1,3,4,5,6,7,8,9,10,11,12?

View 3 Replies View Related

Lookup: Picks Up If A Variation Number Has Been Entered

Aug 11, 2009

I have been working on a spreadsheet with 3 sheets and have done everything except the last function which I just can't work out. Data is entered on the first sheet in a list with an item number, description, dates etc and then finally, if they are a certain type of item, a variation, a 'variation number' in a column.

The next sheet is then called 'variations' and here starts my problem. I want to have a formula that picks up if a variation number has been entered on sheet one in the 'variation number' column and if so, add that item into this sheet, in order.

So to summarise, I need sheet 2 to search on sheet 1 in a specific column for numbers 1-30(ish) for a series of items. I then need sheet 2 to list each of these in order, copying over each item that goes with the number from sheet 1 in the same format.

View 5 Replies View Related

Use The COUNTIF Function Formula To Count The Number Of Items In Column A?

Mar 7, 2014

We have one excel file for monitoring of action items generated by the management after the study. As since there were around 3000+ rows has been generated since in the beginning of 1990's till to-date. So I was thinking of instead of getting the result through filter manually, I want to create a formula that will count of how many has been closed this year and this month out of the total numbers of action items.

Is it possible to use the COUNTIF function formula to count the number of items in column A, and date of column B, and closed in column C.

In below, we can see that there were 4 items under Revalidation has been closed this month and the total number of closed this year is 6.

TYPE
MTD Closing Date
Status[code]......

View 9 Replies View Related

CountIf Function On Positive And Negative Number In Attached Excel Sheet?

Apr 22, 2014

count if fuction on positive and negative number in the attached excel sheet. I would like to count how many numbers are positive and negative in the A column of the attached excel sheet.

View 4 Replies View Related

How To Count Total Occurrences Of Repeat Numeric Data

Jul 13, 2012

I'm working on spreadsheet where I have to match the data on two columns, and then count how many times that same number appears on both columns (see below table) In this below sample, I should get total of 3. (23654 , 12345 and 57963).

A
B

12345
23654

67891
12345

57963
11111

23654
57963

56954
77777

View 4 Replies View Related

Counting The Number Of Occurrences Before The Current Week Number?

Jul 10, 2014

I have a spreadsheet for tracking jobs. Most everything is based off of week # rather than date. I am trying to get the stats page of the workbook to tally the total number of late jobs per week.The current week is taken care of because there is a function that automatically displays on time yes or no and I just set it to count the yeses or nos.The problem I am having is for past weeks.

I tried- =COUNTIF(Table2[On-time],"No"+(CountIF(Table2[Week # Hidden],"<Weeknum(Now())" but that doesn't work. I also tried isolating the < like this. =COUNTIF(Table2[On-time],"No"+(CountIF(Table2[Week # Hidden],"<"Weeknum(Now()) and that did not work either.

------ UPDATE

In response to using CountIFS I have also tried-

=COUNTIFS(Table2[On-time],"NO",Table2[Due Week '# Hidden],"<Weeknum(Now())") this just returns a zero value even when I have a late job listed three weeks ago.

View 10 Replies View Related

Macro Allow To Total The Data On The Total Sheet Depending On What Unit Number Is Selected

Apr 22, 2009

This may not be the best way to do this, but I don't know Macros or Pivot Tables.

I am looking for a way with formulas to do the following:
Within a workbook the 1st sheet is the data entry.
In another sheet that will total data from the data sheet is where I want to be able to total columns of data, depending on what is entered in one specific column:

Example:
Data Sheet, E2:E2999 is a unit number selcted by pull down tab entry.
G2:G2999 in the same sheet is where the data is.

Q: What formula would allow to total the data on the Total Sheet depending on what unit number is selected in column E on the Data Sheet and the data amount in column D from Data Sheet?

View 9 Replies View Related

Conditional Summing: Find Those Combinations Of Variable Values Which Generate Highest Total Gain

Jun 17, 2008

The aim is to find those combinations of variable values which generate highest total gain. I attached the spreadsheet which shows the variables (A through K) and a Gain column. I created 5 additional tabs which show all possible 2,3,4 and 5-member combinations of the variables. These tabs are like coordinates of which variable combinations should be examined. As an example I used the first combination from the second tab = A and B. If you look at these two columns on the EXAMPLE CALCULATION tab you will see 7,7 in the Number combination which is the first number pair for these two variables. The headings of the red and the yellow columns calculate the total count for this number pair and the total gain. These were recorded on a separate EXAMPLE RESULTS tab along with some other pairs which appear afterwards (these were recorded only from the first 39 rows of the AB data). I need a macro which will cycle through each variable pair (only using the combinations from the tab 2 for now, annd later from 3,4 and 5 tabs) collecting statistics for each unique number combination it encounters (printing to a separate sheet one after one), such as shown on the EXAMPLE RESULTS.

View 9 Replies View Related

Add Each Day's Total While Displaying A Positive Number If The Total Exceeds 6000

Dec 21, 2008

I'm sure this can be done but I don't think I have the formula correct. What I am trying to do is add each day's total while displaying a positive number if the total exceeds 6000.

View 5 Replies View Related

Count The Number Of Occurrences Of A Number In A Range

May 5, 2007

I would like to count the number of occurence of a user given number in a range through VBA code. Have attached a sample with this.

View 2 Replies View Related

Countif To Find Total Sales

Jan 19, 2009

I have a column of names, and I want to be able to count all the instances of each name, as each instance represents a sale of a product.

Countif(Sales!B:B,"Dave") works, counting all the instances of Dave.

But if I have all the names in column A, and try to have column B give the results (from another WS), as in: =COUNTIF(Sales!B:B,'Best Customers'!A1), I get a "0" as the result. Yet XL help says countif can be used as =COUNTIF(A2:A5,A4). where A4 holds the value to search for.

While we are exploring this, is there a good way to look in a column, get every different instance of the names, and output them into another column?

View 9 Replies View Related

Formula To Multiply Total Number Per Category With The % Of Total?

Dec 13, 2013

number for item detail level from category standpoint. For example, in the category sheet has total number per category and per month and in the item detail sheet has a list of item number with category. I want a formula to recognize which item belongs to which category then use the total number of category by month to multiply with % of total in column D from Item Detail Spreadsheet.

View 2 Replies View Related

Count Each Month (Using Countif To Total Employess)

Oct 29, 2008

i have a list of employess who i need to count each month. i need a way i can say count if >0 for month = Oct. each employee has a summary of there work for a month in a list going down.
example

___John
Jan__0
Feb__19
Mar__50

___Bob
Jan__4
Feb__56
Mar__12

Right now i have a way i am summing up the total work for all the employees
"=SUMPRODUCT(B21:B512,--(A21:A512=A4))" <------'A4=Jan in the formula'

How could i change this to reflect count the employees and not sum the total? The idea is a need to know how many employees had a number greater then 0 for the month of Oct.

View 2 Replies View Related

COUNTIF Formula: Gives A Total Of How Many Names Are In That Range

Jan 5, 2009

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?

View 4 Replies View Related

Generate Text Value Based On Number Of Times ID Number Previously Appeared?

Aug 3, 2012

Is there a function that allows you to read column A for an ID (these may or may not include letters/numbers/"?", are non-sequential and are of variable lengths) and, if it is the first time that it has seen an ID column B will read "sample_1_arm_1", if its the second time it has seen an id it will read "sample_2_arm_1", etc? An example of what I am trying to do on a much larger scale:

id
event_name
C83-858
sample_1_arm_1

[Code].....

View 3 Replies View Related

Countif Or Vlookup: Get The Total Count Of New And Active-to-date

Oct 15, 2009

I have two columns - Employee and Status of Deal. Now, I need to get the total count of New and Active-to-date but on a per employee basis. Am I making any sense? To clearly put it, I need a formula that will answer the questions below:

How many New and Active-to-date deals does Michael et al have? I tried to use Countif but that gave me the total number of deals, not on a per status basis. Will VLookUp work or a combination of both? If so, how? I'm using Excel 2003.

View 3 Replies View Related

Count Number Of Occurrences

Dec 27, 2006

I have a somewhat large spreadsheet that is imported from an AS/400 database which shows the number of times something is being used. It lists the object in a row for each use. For instance, if the object is being used 4 times, there would be four rows of this object's name as well as a 0, 1, 2, 3 next to the correct row. Where it is being used is listed in the H Column.

I'm just trying to count the number of times each object is used and where it is used and list it out in another worksheet. Like this:

Object 1, 4 uses, Place 1 2 3 and 4.

Can someone point me in the right direction in terms of where to start with this? I don't mind giving it a shot in terms of the coding but I'm somewhat at a loss in terms of the general "how to".

View 8 Replies View Related

Number Of Occurrences Of Each Letter

May 26, 2007

I need to figure out the number of occurrance of a letter in a word written in a cell. For Example i am writing "pattern" in a Excel cell. I want to know the marco/vba code that will give me the number of occurrance of each letter. The output should be:

p=1
a=1
t=2
e=1
r=1
n=1

View 8 Replies View Related

Count Number Of Occurrences In Excel

Apr 22, 2014

In a datafile I have one column containing a trip 'origin' and a second column contains 'destinations'. I want to count how many times each trip occurs (so the same origin/destination pair). This is doable using COUNTIFS but unfortunately respondents did not provide consequent origins and destinations. I encountered the following formulations

-Alfastraat, Amsterdam
-Alfastraat 5, Amsterdam
-Alfastraat 5, 1021AB Amsterdam
-Amsterdam, Alfastraat

Since the format is different among and within respondents functions containing LEFT, RIGHT, MID are not useful (at least, my trials did fail). I found a VBA-script for a FUZZYVLOOKUP which sounded promising. Unfortunately the data is stored on a remote PC without VBA on it.

Is there a way to count the occurrences of trips given the circumstances?

View 1 Replies View Related

Count The Number Of Consecutive Occurrences

Nov 18, 2008

I have an excel spreadsheet to record employee holiday and sickness figures.

It is set on as a grid e.g. column A stores all the dates and then employee names are used as column header.

One of the triggers I need to use is where, an employee has been absent 28 consecutive days. When an employee is absent I simply enter 'ABSENT' against there name.

Countif will count the number of time absent appears in the column however I need it to only recognise it if it is only 28 days in a row.

View 8 Replies View Related

How To Show Number Of Occurrences In Last 6 Weeks

Oct 12, 2012

I am trying to create a table that will show the number of times a registration number has occurred in the last 6 weeks.

I can get it to display the values if I manually enter the rows that are in the last 6 weeks but I would like it to do it for me so other people can view the data without having to change values etc.

so Basically I have the date an entry was made in column B and the registration numbers are in column M. I have tried various combinations of COUNTIFS, SUM(IF and DCOUNT but to no avail! It either returns a 0 or an error.

BTW I am working with

=COUNTIFS('Event Tracker'!$M$605:$M$4999,A2)*('Event Tracker'!$B$2:$B$5000>=VALUE(O2))

*Where cell O2 is the date 6 weeks ago* at the moment which returns a 0 or the manual formula which is

=COUNTIF('Event Tracker'!$M$605:$M$4999,A2) where M605 represents the first entry 6 weeks ago.

View 8 Replies View Related

Sequential Count Number Of Occurrences

Apr 13, 2013

I have a list of numbers in column A- for example

4
3
5
4
3
4

What I want is in column B to give the sequential count that each number is for that number. In other words in row one the number 4 appears for the first time and so the sequence number is 1. It next appears in row 4, so the sequence number there is 2, and for row 6, it is 3.

The completed table will look like this:

A B
4 1
3 1
5 1
4 2
3 2
4 3

Any formula for the cells in column B? My actual list is about 5,000 lines and so I need a formula that is not slow.

View 2 Replies View Related

How To Count Number Of Occurrences Of Particular Value Within Column

Jul 23, 2014

Row Number (A)
ID Number(B)
No.of Repetitions(C)

1
1234
4 or TRUE

2
2538
1 or FALSE

[Code] ............

In need checking if a particular ID number is repeated more than once in column B. I need to write a formula in each cells of "No.of Repetition" column or Column C to check if respective ID number in column B is repeated more than once and display the count or display a condition true or false.

View 6 Replies View Related

Count The Number Of Occurrences In Cell

Feb 16, 2007

=SUMPRODUCT(--('2007'!$E$2:$E$500=$A$20),--('2007'!$O$2:$O$500=G2))--('2007'!$AA$2:$AA$500='2007'!$AA$3)

I need to count the number of occurrences in cell AA3. I need only to count the occurrences of AA3, that also have the contents of A20 and G2 in them.

View 9 Replies View Related

Counting Number Of Occurrences Of A Date

Jan 10, 2008

I am running Excel 2007 at work in compatibility mode. My company is in the process of switching to Excel 2007, but not everyone has it, so I save my files in Excel 97-2003 format, so they can be viewed by everyone.

Problem:
I am trying to count the number of occurrences of "dates" between a starting date and an ending date. (e.g., cells B16:B1000 contain dates when a test at work was performed. I want to count all tests that occurred between 12/30/2007 and 1/9/2007.) Please note that the dates cross the new year

More Info:
I have searched this board, found a similar post, and tried the different formulas listed but get a result of "0" (zero). If I try the same formulas at home using Excel 2000, they work. The formula types I've tried include regular and array styles I am led to believe that this is either an Excel 2007 bug (bug??? - Nah, not from Microsoft!), or one of the cute changes between the new and old versions that I keep running across. The last possibility is that I am doing something wrong, which a smart betting man wouldn't rule out either!

View 9 Replies View Related

Count The Number Of Occurrences From 2 Columns

Mar 29, 2007

Look at 2 columns and assess if certain criteria and then count the number of these certain criteria. I give an example below:

Column 1: Has a drop down box of possibilities from: "Red", "Amber", "Green", N/A

Column 2: Has a drop down box of possible choices of: "Significant", "Other".

What I would like to do is have a formula which will count the number of times you have "Red and Significant", "Red and Other", "Amber and Significant", "Amber and Other", "Green and Significant", "Green and Other" and "N/A and Significant" and "N/A and Other".

View 3 Replies View Related

Count Number Of Occurrences (not Incidents)

Apr 26, 2007

I am working on a spreadsheet that tracks employee attendence and I am hoping there is a formula that can count the number of occurrences (see below) not the number of incidents (total number of times it comes up).

v
h
v
v
v
h
h
v

incidents of v: 5
occurrences of v: 3

View 9 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved