# Counting Each Occurrence Of Multiple Values

Dec 2, 2008
I'm working on an attendance sheet, and have allocated certain letters for related occurrences. For example, V=Vacation day, S=Sick day, B=Bereavement, etc. Over a two-week period (eg - D19:D32), I want to total the number of times one of these values has been used, and add to work hours. Where an employee will enter 7.5 in D19 to indicate hours worked, they may instead enter a 'V' for a vacation day, and have 7.5 hours still added to their total hours in the pay period. I have a formula that works, but it is so incredibly long that I'm thinking there must be an easier way.

Right now, I'm using the following:

=SUM(D19:D32)+(COUNTIF(D19:D32,"V")*7.5)+(COUNTIF(D19:D32,"Vh")*7.5)+(COUNTIF(D19:D32,"S")*7.5)+(COU NTIF(D19:D32,"Sh")*7.5)+(COUNTIF(D19:D32,"H")*7.5)+(COUNTIF(D19:D32,"B")*7.5)+(COUNTIF(D19:D32,"A")* 7.5)

View 3 Replies
ADVERTISEMENT
Sep 24, 2009

I have a few dozen columns of data and would like from each row to count the number of negative numbers in every 3 occurrences. E.g. in row 2 I’d want to count the negative occurences in B2, E2, H2, K2 etc. Also, I’d like to be able to count the total number of occurences along each row, again counting every 3rd occurrence, though this time both negative and positive values.

View 4 Replies
View Related
Sep 3, 2008

i want the formula to be used in excel to make acounter in another column for the values the occured repetitively

like to have these two column.

ex:

Oper No

Work Center

10 Paintsh

20 Paintsh

30 Paintsh

40 Paintsh

50 Paintsh

60

Paintsh

70 Paintsh

80 Paintsh

90 Paintsh

here the operation no is the counter for the repeated work center whose name is paint sh

View 9 Replies
View Related
Dec 21, 2008

I want to count the number of sales in three periods. prior 7 to 12 months, prior 4 to 6 months, and over the last 3 months.

I have three letters that occur in column B of sheet 2.

A for active, P for pending, and S for sold.

The date of activity appears in column C for each event. It is in mm/dd/yyyy format. Currently I have over 5000 rows.

I would like to total the sales for each period and place it on sheet 1.

can you help or point me to the right place to read up on it. I can get the information by using a pivot table but there has to be a faster way.

View 9 Replies
View Related
Mar 2, 2006

I have one column with names and another with date ranges (JAN06) etc. I

want to count the number of times a name occurs within a given date range.

View 12 Replies
View Related
Aug 11, 2013

How to make information gathering easier. So I have a spreadsheet with information in one tab and Graphs & tables in another. I am trying to count how many times a word appears in my last column (the word is "HM - GM") but I only want to count how many times that appears in the month of Jul (The July column is my first column, it shows as "Jul-13" but when you click on the column it appears as 01/07/2013). I have tried a few =COUNTIFS formulas I found around the site, but none seem to work for me. I am trying to get the counted information into a table so it will show how many 'HM - GM' were in Jul-13.

View 5 Replies
View Related
Feb 9, 2014

I have saved this on a 2010 workbook as I am at home but this will be used on a 2003 workbook.

I have several projects on one spreadsheet which multiple users will be working and I am trying to create a summary sheet of the work carried out.

Each user is expected to carry out a task on each row of the data held in each worksheet (research, call, update etc) and each task (Option 1-5) is assigned a value. Each user is expected to meet a certain level of points per day to calculate productivity.

I am looking for a sumproduct along the lines of the summary sheet attached but mine just takes one sheet into consideration and I need one for all sheets.

View 12 Replies
View Related
May 2, 2009

I have a spreadsheet with data from a survey. There are 375 respondents (rows) and 26 questions (columns). I use COUNTIF in order to figure out the frequency of responses and SUMPRODUCT to do some finer analysis. Here's my problem, some of the questions have multiple valid responses. In those cases the data was entered into the same cell. So I have a column that looks like this:

1,4

2

1

3,12

1,11

8,

3,14,9

I can't figure out how to count the number of "1"s. It would be much easier if the responses could only be 1-9, but unfortunately they can be 1-20. So far, I've come up with:

View 3 Replies
View Related
May 7, 2014

I need counting unique values with a number of given conditions. I need this to be a formula so that I can just add data to my spread sheet and it will automatically calculate.

The formula I have is:

SUM(IF(FREQUENCY(IF(A:A=Z1,IF(B:B=Z2,IF(C:C>Z3,IF(D:D<=Z4,G:G)))),G:G),1))

The goal is to count all of the unique value in column G:G that meet certain criteria (have ending times greater than Z3 and beginning times less than Z4, etc.). Once I get the formula to work, I'll simply drag it down to have it calculate for similar lightly changing criteria (like different beginning and ending intervals). However, the formula doesn't seem to be working. It's only giving me zero values (I have "ctrl-shift-entered").

View 9 Replies
View Related
Aug 15, 2014

I have a spreadsheet, similar to the one attached, that monitors deliveries. The reasons for deliveries not being made on time are merged across to have one reason per delivery vehicle.

I am trying to count the number of times a reason occurs, but utilizing a COUNTIF function it will only count a merged cell as one count, rather than per each delivery.

Merged Count if examples.xlsxâ€Ž

View 8 Replies
View Related
Aug 13, 2014

I am looking to count the unique amount of customers who are listed in column C based on the criteria that they purchased the product on the 1/08/2014 and that the product came from Department 3. The output I am looking for in this example would be 3. I can do it for this example but when I have 300 different customers it starts getting tricky and I'm a bit stumped on how to incorporate an array formula into a countifs() function or whether there is an alternative.

Date DepartmentCustomer

1/08/2014 3 A

1/08/2014 3 B

1/08/2014 2 C

1/08/2014 3 D

4/08/2014 3 A

5/08/2014 2 A

5/08/2014 3 D

View 7 Replies
View Related
Feb 25, 2009

I'm trying to get a count of unique values in column B when criteria matches for columns A,C and D. The worksheet I'm trying to complete looks like this:

2366 2005 T [number of corresponding unique values of B]

For example:

--D---C---A-B

2366 2005 T 2

(as opposed to 3)

A

B

C D

T

655 2005 2366 T

656 2005 2366 T

656 2005 2366 W

659 2005 2367 W

659 2008 2369 W

659 2006 2370 F

659 2005 2370 W

660 2005 2370 W

660 2008 2371 W

660 2006 2371 T

660 2005 2371 W

661 2005 2372 W

661 2007 2372

View 9 Replies
View Related
May 7, 2014

I need to count unique values with a number of given conditions. I need this to be a formula so that I can just add data to my spread sheet and it will automatically calculate.

The formula I have is:

SUM(IF(FREQUENCY(IF(A:A=Z1,IF(B:B=Z2,IF(C:C>Z3,IF(D:D

View 9 Replies
View Related
Feb 26, 2009

I'm trying to get a count of unique values in column B when criteria matches for columns A,C and D. The worksheet I'm trying to complete looks like this:

2366 2005 T [number of corresponding unique values of B]

For example:

--D---C---A-B

2366 2005 T 2

(as opposed to 3)

A

B

C D

T

655 2005 2366 T

656 2005 2366 T

656 2005 2366 W

659 2005 2367 W

659 2008 2369 W

659 2006 2370 F

659 2005 2370 W

660 2005 2370 W

660 2008 2371 W

660 2006 2371 T

660 2005 2371 W

661 2005 2372 W

661 2007 2372

View 9 Replies
View Related
Jan 21, 2014

I have a large sheet (several thousand rows and growing) - see a small cut of the data. The columns following on from this have a list of people's names, hence why a lot of the data repeats (as a number of people attended each program).

Program

Clinic Title

Start Date

[Code].....

formula that will automatically give me that answer?

View 2 Replies
View Related
Jun 26, 2014

I am working on an attendance spreadsheet in Excel 2003 at work that will display data showing number of learners allocated to an activity, number unallocated, number attended, number not attended, number of acceptable reasons and number of unacceptable reasons by Block Letter. My problem is that for a number of reasons the same learner number is allocated to a number of activities each day. I need to know how many learners from each block have been allocated, not how many allocations each learner has from each Block.

I have tried different formulas, but fast running out of time

I have attached a modified sample from the main spreadsheet

I need : Cell H4 to calculate the number of unique values from Column C on Mon tab but only meeting the following criteria Mon!$N$3:$N$4000="AM", Mon!$O$3:$O$4000=D4, Mon!$B$3:$B$4000="mon1" I can then apply to the other rows.

View 7 Replies
View Related
Jan 1, 2014

I cannot get various formulas (Countif, Match, Frequency, Etc) to work properly.

I am trying to arrive at a total number of matches of numbers in cell range B1:G1 with any numbers entered into the cell range of K1:P11 and have the total of matches display in cell H1.

However I do not want to count duplicate numbers from the K1:P11 cells. (if the number 5 in posted in K1:P11 multiple times I only need it reported once in H1)

B1:G1 is the constant and the numbers will not change - K1:P11 cells will be populated by adding numbers until the all the numbers in B1:G1 is completed and match.

Range

B1 C1 D1 E1 F1 G1

2 7 19 45 22 13

H1 Total of matching numbers in cell range K1:P11

View 3 Replies
View Related
Jul 31, 2013

I have a list of "GPC" or company identification numbers. And for every campaign being sent to the company it will have the same GPC of identification code. I want a formula that indicates if it is the first time mailing the company (as a result return nothing for column D ""), the second time mailing them, third, or fourth. So basically I need a formula to find the duplicate values and return whether it is the first, second, third, or fourth time that code appears in column A.

The current formula I have is a little off because it checks against the cell beforehand. I'm not sure how to modify the formula or what different forumla I need. Attached is an example. I am looking at column A and trying to return the data in D. You can also see the faulty formula I currently have in place.

View 2 Replies
View Related
Jun 9, 2008

I have a huge set of data values given per 0,5 hour. Now I want to make a chart which shows how many hours each value has taken place.

Here is what it looks like with the arranged data as y-values. Instead of the x-axis showing the number of values, I would like it to show the above mentioned.

View 14 Replies
View Related
Feb 14, 2014

accomplish VLOOKUP for multiple instances of a same Lookup value

First let me explain about my file:-

Table~1:-

1.B2:B19 I have list of items which required to build a product

2.D2:D19 I have list of shortages against each item

3.C2:C19 I have list of dates when each item shortage will get fulfilled

Table~2:-

1.C22:C31 I have picked the largest 10 different dates from Table1 by using LARGE formula.

Against each date which is update C22:C31, respective shortage qty has to get VLOOKUPED.

When there is a same lookup value, it has to keep pick next value (Shortage Qty) for same date.

View 2 Replies
View Related
Jul 19, 2007

Is there anyway that the UDF can remove duplicates? It's not a huge problem, but would make things a bit easier.

View 2 Replies
View Related
Dec 12, 2012

This is a re-submission of a question previously submitted because the title for the first submission was so poorly worded.

I have a column that has numerical values in random order. I want to locate the first occurance of a value in that column.

I have unsuccessfully tried an Index-Match function - apparently unsuccessful because the values must be in ascending or descending order?

View 6 Replies
View Related
Oct 31, 2009

I am writing a program which would look for look for the word " TOTAL" in sheet1 and then assign several values in sheet 2 based on cells offset of address of "TOTAL". This is repeated and down rows of sheet 2. Everything works except that it is giving repeating the first "TOTAL" address; i.e. it doesn't seem to go to the next met criterion.

Sheets("Summary").Range("A1").FormulaR1C1 = "=COUNTIF(Sheet1!C,""TOTAL"")" ....

View 7 Replies
View Related
Jul 12, 2014

I have a lookup table in which names of students and the planned session dates are available.

I need to create a chart that has Student Name and Each date of month. The chart should have value of 1 wherever a match is found in the look up table.

I am wondering if combination of searching for multiple strings (student name and date ) will work somehow. The below image explains my problem

StudentTimeTable.png

View 5 Replies
View Related
Mar 17, 2009

The purpose of the formula is to locate the 2nd occurrence of an entry where criteria in other columns are met (used to determine whether people can qualify for an item based on attendance and another condition).

I am using this formula but I know it needs some adjustments and can't seem to work it out or maybe am going about it completely wrong.

=IF(COUNTIF(D2:D205,D2)>1,AND(T2="Y",U2="Y")*1,0)

I need the formula to indicate the second occurrence of this cell with the criteria that BOTH first & second occurrences have T2="Y" and U2="Y". My formula only indicates the first occurrence and the first occurrence if T2 and U2 meet the conditions.

View 8 Replies
View Related
May 30, 2012

Given a database as follows:

In A40:

HTML Code:

kindNo.IDSiteAOCOptdMOBMOSShsTAOSDOO

OTH11180MCF411.9296170T2/1/10none16 mos5/4/12

OTH11180MCF411.9208170T2/1/10none16 mos5/5/12

OTH11181DDF415.64132T1/31/08none36 mos5/6/12

OTH11181ESF415.68132T1/31/08none36 mos5/7/12

OTH11182PDF47.94132T1/31/08none44 mos5/8/12

bop11183BPF413.722135T3/6/08none37 mos5/9/12

[code].....

I would like to retrieve all No. from ColumnB if the following 3 conditions are met:

1 Column A "kind" is "oth"

2 values in Column K "DOO" are superior and equal to Cell B2:01-may-12

3 values in Column K "DOO" are inferior and equal to Cell D2: 31-may-2012

Formula presently used in B4 is:

Code:

=IFERROR(

INDEX($B$41:$B$52,

SMALL(IF(($D$2>=$K$41:$K$52)*($B$2

View 3 Replies
View Related
Dec 9, 2013

In an employee attendance file I am trying to count the number of times an employee has taken 3 or more days of leave together (continuously) in a month. My attendance file looks something like this

sat

sun

mon

tue

wed

thus

fri

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

In the example above E001 has taken 3 continuous days leave twice so formula should return 2, for E002 & E003 the answer would be 1 each.

View 4 Replies
View Related
Dec 24, 2013

I'm getting an export from a CDR. This export contains the date and times people log on and off from a queue. For logging in they dial 511, for logging out they dial 512. They get a voice prompt and type their password. I need to know how much time they daily spend in this queue

At first this looks pretty easy. I just make a sum of all the times they called to 511, then a sum of all time they called to 512 and finally I substract those values and I end up with the correct time spend in the queue.

The problem comes when they call multiple times to 512 without actually logging off. For example, they type the wrong password or simply hang up.

Result is this in the CDR

FROM TO DATE TIME

101 511 23/12 08:34

101 512 23/12 11:58

101 511 23/12 12:34

101 512 23/12 14:45

101 512 23/12 14:47

101 512 23/12 15:00

The actual time spend in the queue is 5 hours and 50 minutes. But Excel calculates this as 35 hours and 22 minutes, because it counts the 512 values no matter what.

How can I make sure that Excel only calculates the values of they are either the last value in the row OR if they are preceded by 511?

View 2 Replies
View Related
Aug 14, 2014

I'm trying to extract all the numbers from the left of the delimiter ":" . They can occur once or more.

E.g. cell F2 contains BP2.2.1:40 BP2.2.1:50 BP2.2.1:60 BP2.2.1:70 BP2.4.1:80

and what i want as a result is : BP2.2.1 BP2.2.1 BP2.2.1 BP2.2.1 BP2.4.1.

I've tried =IFERROR(LEFT(F2,FIND(":",F2)-2), " ") but only displays 1 out of a possible 4 in the cell.

View 12 Replies
View Related
Jun 25, 2008

I've read the how to for finding the nth occurrence using index/match but the example given does not really help solve my issue. The file I've attached is a condensed version of the actual file, which has more columns but I deleted all but the necessary ones for clarity. What I am trying to accomplish:

On sheet1 there are three columns, Business, Amount, and Closing Date.

Not all the business names have a closing date and the spreadsheet is sorted alphabetically by business name, so sorting by closing date, and using the method used in the topic " find the nth occurrence in excel", is not an option.

On sheet2, I would like to see ALL the business names that have a closing date in the respective month, as opposed to just the first. Then to the right of the business names I have the sum of all the amounts in that month, but I figured out how to get that one already.

View 2 Replies
View Related