# COUNT 2 Variables In One Column Against Another In Separate Column

Jun 17, 2013
I want a formula to do the following. Count all instances when column A contains S or A and column B = 1. The example below would equal 2 (ONES MEETING CRITERIA ARE IN BOLD).

Example

N 2

S 1

A 1

D 3

X 2

View 2 Replies
ADVERTISEMENT
Dec 6, 2013

I need to look up the name in E2 in the list in column A and if it matches then lookup name in F2 in list column b, if it matches then the corresponding number in column C is displayed in column G. If neither names are in the 2 columns the words"Not on lists" is displayed in cell in column G.

The other problem is one name is spelled two different ways I want it to look for both spelling before moving on to looking up the second name.

I started with this formula but I'm getting #N/A or "not on list" when they are on the list. I'm using ranges prod_sum is columns AthruC, Last_name is range BthruC. =IF(AND(VLOOKUP(F4,prod_sum,3,0),VLOOKUP(I4,last_name,2,0)),"not on list")

View 6 Replies
View Related
May 30, 2014

I am trying to write a formula to read the cells in column H individually if cell is blank write no to corresponding cell of column I, if the cell has any sort of data write yes to corresponding cell of column I

Currently H uses this formula ='name of column from sheet 1'!P:P

View 2 Replies
View Related
Apr 25, 2014

For column "B" count all the 1's if column header is equal to name in column A.

For Column "C" needs to be checked if a value was filled in column "I" if yes then check if in column "L" has a value, count all these values.

View 5 Replies
View Related
Feb 25, 2013

I have 10 very large workbooks that are all setup in the same format. In column Z is a numerical value from 1 to 83. I have been trying to filter the sheet and then copy one at a time from 1 to 83 but that takes a LONG time especially when there is 10 workbooks to do.

Is there anyway I can run a function or macro or something that would just automatically look down the column Z and put each row into a it's own workbooks?

I have attached a sample of what the workbooks look like right now.

Sample123.xlsx

View 4 Replies
View Related
Nov 23, 2011

Is there a way to do this without using a macro, but I need it to be in a macro.

Column A has a value I am calling a label, ex. ABCDEF which occurs over and over. Column B has a list of animals, many of which repeat AND will be together if they do repeat. In other words, all rows in Column B with Cows are together, occurring in consecutive rows. I need a macro that will look at each row in column C and increment +1 starting at 0. That will be concatenated with the value in Column A and pasted as a value in column C.

See the linked spreadsheet tabs for Before Macro and how it should look After Macro is run.

[URL] ........

View 1 Replies
View Related
Mar 5, 2014

I am trying to count the distinct times a value shows up in a column, if another column has a 2 in it.

For example:

Columns

A, B

2,P25

2,P25

3,P5

3,P6

2,P5

The results shoud be: (2) Because I only want to count the P25 one time.

I'm using Excel 2010

View 2 Replies
View Related
Mar 10, 2014

I have two columns. Column A had numbers and column B has names. I need a count from column A for each name in column B.

View 1 Replies
View Related
Feb 6, 2009

I have two columns with dates. Colum A has the date of the deadline of a document while column b has the day it was sent. Column X will display the difference if its a positive integer ( i.e. if the document has been sent after the deadline). Now i have another column Y which displays the month as an integer of when the document was actually received.

Now i need a counter which will count the number of instances a positive integer is registered in column X according to the month in column Y. I have been trying everything but cant figure a simple way to do it. Im doing this so i can be able to see how many documents are sent after the deadline per month.

View 14 Replies
View Related
Apr 24, 2009

I think I am working all around this in Excel 2003 and feel like I am in the neighborhood, but can't seem to quite get there. On sheet1 I have 2 columns of 100s of rows. All of the cells in column A will be filled in with a date as time goes by (1-May-09 for example). Several of them may be 1-May-09 as a matter of fact. In column B, some of the cells will have a number in them and some of them will be empty. On sheet2, I want to construct a formula that returns a count of cells in column B that have a number in them based on a specific date in column A. For example:

AB

1-May

1-May777

1-May

1-May

1-May

2-May999

3-May

2-May

1-May

2-May111

1-May

If I could get the formula right, it would return an answer of 1 for 1-May in the example, because only 1 of the 1-May entries in column A has a number in the adjacent cell in column B. A formula for 2-May would return an answer of 2 since only 2 of the 2-May entries in column A have numbers in the adjacent cell in column B, and so on for the month. If I understand things right, there are too many arguments for COUNTIF. It seems that SUMPRODUCT should work, but I can't make it so.

View 2 Replies
View Related
Oct 28, 2009

I have a formula that counts if a date range is present. However I need to change it to count another column only if that date range is present. For example a17 a50000 the user will enter the date of the order. and in column B has the order number. I want the formula to count the order numbers for a data range in column A.

Here is what I have but it is counting the dates in col A not the order numbers in B?

View 3 Replies
View Related
Dec 19, 2010

I would need to count unique frequencies in column A, but only for a specified value in column B.

Example:

A|B

1|1

1|1

1|1

2|1

2|1

2|2

2|2

3|2

3|2

I am using Excel 2007 and found this formula that counts all unique frequencies in column A: =SUM(IF(FREQUENCY(A2:A10,A2:A10)>0,1))

In my example, result = 3 Now, I would need to add the possibility to count only for B=1; in my example, result should be = 2.

View 9 Replies
View Related
Jan 22, 2014

I am trying to Count (or counta?) cells in one column if they have data but only if within a date range in another column.

So, in the example below, I would want to count how many cells in column E have data in them, but only if the date in column A falls between Jan 1 2014 and Jan 5 2014. (In this case, result should be 4).

A

B

C

D

E

01/01/2014

[Code].....

View 4 Replies
View Related
May 14, 2013

I need to populate sheet 1 of the spreadsheet attached.

I have tried several formula's but don't work and am getting desperate!

I need to count Column A of sheet2, when "Adverse SEN" occurs but only when there is an "x" in Column B of sheet 2 appears next to "Adverse SEN".

So basically i need to populate Sheet1 of the spreadsheet with the data is sheet2 of the spreadsheet.

I need a formula to calculate how many time an adverse SEN was - where there is an x - resubmitted, approved at meeting, delegate approval obtained, approval outstanding, rejected or approval not required.

I am using excel 2003, so please don't provide me countif functions.

View 2 Replies
View Related
May 15, 2014

I have a column that repeats it self and I want to perform a count on Column B, based on the values in Column A.

Example attached : Book2.xlsx

View 2 Replies
View Related
Jul 25, 2014

how to count the unique occurrences in column A based on the value in column B. In the example below, I am trying to count the number of unique names in each state (Illinois=1, Colorado=2, New York=2). I would like the formula to count unique occurrences for the entire column A because I will be adding to the list.

..A.............B............C

John......Illinois

John.....Illinois

John.....Colorado

Alex.....Colorado

Alex.....New York

Steve...New York

Steve...New York

View 10 Replies
View Related
May 6, 2009

I am wanting to count the number of records (excluding cells with no value) based on criteria in a corrosponding column. In column "AS" I have a number of records that are not sorted showing values "7", "13" and "2".

In column "AL" there are values attached to some of these records based on certain IF statement conditions. I am wanting to count and sum the number of records in column "AL" that meet the conditions of "7" in column "AS" and so forth.

View 3 Replies
View Related
Oct 18, 2011

How do I count unique values in Column A only if the values in Column B match?

A B

1 a

2 a

1 a

4 b

5 b

1 b

The formula would return "2" for "a", and "3" for b. Basically, there are names in column B, and I want to know how many unique things are in column A for each person. If there is a better way than a formula (pivot table?) that would be great - like a table that has each of the names (from Column B) and the number of unique items from Column A next to each unique name.

View 5 Replies
View Related
Feb 4, 2014

I need to count column E when it does not say "MTO" or if column G is blank. E.g. below would return me a value of 2. I would count row 1 and 3 only.

Column E Column G

10-Jan-14

MTO

06-Dec-13

18-Oct-1321-Oct-13

View 9 Replies
View Related
Apr 27, 2004

=COUNTIF(A19:A28,(AND(B19:B28="YES",C19:C28=5)))

What is wrong with my formula above? I am trying to count Colunm A if the value of Column B is "YES" and Column C is equal to "5".

View 8 Replies
View Related
May 30, 2014

I have 10 tabs in a workbook, the first five tab is for 5 Departments for the Month of March, the other 5 is for the same 5 departments for the Month of April.

I want to compare a particular field for each Department for the two months. The field is in column N.

Is there a code that will copy column N for Finance March, Column N for April and paste them into another worksheet in the same workbook in Column A and B, then go to the next department HR and copy Column N for HR March and April and paste in the same worksheet where Finance already as in column D and E, then go to Operations March and April tabs and paste into the same worksheet as column Worksheet G and H.

Basically the copied columns are pasted March April next to each other for all the businesses in the new .

View 1 Replies
View Related
Jan 16, 2014

In column G I have 1 if the item is a Map, this 1 is placed there if Column H has an x. In column N I have a date

I would like to count the number of Maps that have a 1 in G AND a date in N.

View 4 Replies
View Related
May 8, 2009

I made a quick little spreadsheet that explains what I am trying to accomplish. Basically I need to search a column for a known number, when it is found, I need to look at another column on that row, and if the cell is a specific item , count it.

View 9 Replies
View Related
Nov 30, 2009

I'm using this formula to count the number of times this statement is in Column "D"

View 4 Replies
View Related
Jul 27, 2006

I have 2 columns - Column A and Column B. I want to count the number of

'YES' in column B ONLY when Column A is blank.............

View 2 Replies
View Related
Dec 2, 2013

I am making a weekly plan for machine inspection at the end of every column i need to sum how many machine will be inspected.

L= area

L1=10 ,) L1 has 10 machines ... this number can be change in the future that is why t is variable. for example:

L1=10, L2= 25, L3=20

week1

L1

L3

sum ?

View 9 Replies
View Related
Nov 25, 2009

i have data on number of employees in culomn A range from 1 to 10000. i need to generat four dummy variables in column B,C,D and E as the following

s=1 if number of employees 1-50 and zero otherwise

m=1 if number of employees 51-100 and zero otherwise

l=1 if number of employees 101-1000 and zero otherwise

xl=1 if number of employees 1001-10000 and zero otherwise

View 2 Replies
View Related
Dec 3, 2013

I have a datasheet with 6000+ entries. One column has lists of companies, of which there are around 300 and their are entered into this column multiple times. I organized and identified the largest ones but a work file of 6000 is making it a long process to find every single company listed, paste their name onto a separate table to analyses. Is there a formula to take all the different company names and arrange them in a list OR list them just once in a column next to it? I will have to do this again and the analysis of the companies is the most important.but I find I need to spend all evening steadily combing the haystack for needles!

View 4 Replies
View Related
Dec 9, 2009

A B C D

COL 0

COL 0 1

COL 0

COL 0 1

COL 0

EDM 0

I need to add the number of 0's in column B if Column A is COL and C OR D is 1. correct function yields 3 for this example. I've played with =sumproduct(if)) and =sumproduct(if(and))) etc... can't figure it out.

View 9 Replies
View Related
Jun 28, 2007

I have data in three columns. The first column contains the machine name (Robot 3, Robot 4, and Robot 5), the second column contains the paint color (1-20), and the third column contains the data that I need to sum. For example the data could be paint purges, the number of purges from each robot. Each row of data will contain a number of purges for each robot, for each color. The data is provided by day, so I will be summing the data weekly.

View 8 Replies
View Related