# Excel Formula That Count Multiple Columns Having Any Specified Value

Jan 14, 2014
I have multiple columns in excel that contains values like this

A B C D E F G H

TrxVolTrxVolTrxVol Trx Count Vol Count

122001400013500

125031290012499

130001300012700

Now at the last columns G & H i want to get the result that how many column of title "Trx" are having values greater than or equal to 1 and how many columns of title "Vol" are having values greater than 2500 respectively.....

View 1 Replies
ADVERTISEMENT
Jun 18, 2014

If I have 2 excel files. One with data about electronic equipment and one with more general counting data, i will explain..

For example the electronic equipment excel file contains data about notebooks, desktops, epads etcetera and also prices and how old they are etcetera. The excel file also has a column for serial number, so for example a notebook serial number looks like this: 23N34ERT3 and an epad SN looks like 25OKE445EE. IF i filter the SN on text and begins with: ??N then it will show me only notebook data(because the N stands for notebook). Same if I only want the Epad I just filter on ??OK, so i get all the epad data.

now for the general counting data file, in this file i actually want to put data which i get from the other electronic equipment file. For example i want this data to be retrieved:

a. total number of rows of notebooks from the electronic equipment file

b. total number of rows of epads from the electronic equipment file

c. how many rows there are for notebook that are 0 - 1 years old(in electronic equipment file there will be a column called product_Years so in this column you have data like: 1,4,12,3) + that are from model: A from the electronic equipment file

d.how many rows there are for notebook that are 2-3 years old + are from model:A from the electronic equipment file and then going on for 3-4 years model:SD etc......

e. in the electronic equipment file there are prices for each model, i also want to calculate the prices for each rows which i get here in the list above.. These rows must be calculated with prices from electronic equipment file

Is there any easier way than constant filtering and copy pasting the data?

View 1 Replies
View Related
May 27, 2014

I'm using Excel 2010 and my spreadsheet contains numbers in columns A:E and approx 500+ rows. Here is a 10 row example of my data:

A B C D E

0 1 2 3 4

5 6 7 8 9

0 2 4 6 8

1 3 5 7 9

1 2 4 5 8

3 4 5 6 9

9 8 1 2 3

7 6 1 4 0

0 8 2 1 9

1 0 5 3 2

I would like to count the number of consecutive times each number appears (to a max of 9 consecutive times in a row). So, from my example above:

Number 1 appears:

1 consecutive time = 1 (appears in row 1)

2 consecutive times = 1 (appears in rows 4 & 5)

3 consecutive times = 0

4 consecutive times = 1 (appears in rows 7, 8, 9 & 10)

Number 2 appears:

1 consecutive time = 4 (appears in row 1, row 3, row 5 & row 7)

2 consecutive times = 1 (appears in rows 9 & 10)

3 consecutive times = 0

4 consecutive times = 0

Number 5 appears:

1 consecutive time = 2 (appears in row 2 & row 10)

2 consecutive times = 0

3 consecutive times = 1 (appears in rows 4, 5 & 6)

4 consecutive times = 0

and so on....

View 9 Replies
View Related
Feb 22, 2007

I have been using the wrong formula to count total entries in columns and only just found this error. The MAX formula in cell B4 is: =MAX($B$12:$B$36). If the all the rows are full within range F12:F36, then the MAX formula is fine to count the total within range B12:B36 (25) so I thought. But sometimes there are omissions between F12:F36. If there are 2 blank cells anywhere within F12:F36 for example, then B4 needs to show 23 respectively. In the sample WkBk B4 needs to show 8

View 2 Replies
View Related
Sep 28, 2012

Want a single count of multiple columns based on the columns selected value. Data is in text format.

Have tried multiple COUNTIF statements and have tried using pivot table (Excel 2010) both only give me total counts for all. I think I need an OR statement somewhere, but not sure where?

In other words, if a single record has an "any" in the any fields or a "yes" in the yes fields, I want to to count that as one record.

Sample data:

Pegnancy Smoke

Pregnancy Alcohol

Pregnancy Marijuana

Pregnancy Powder

Stress Cigarettes

Stress Marijuana

Stress Alcohol

Stress Medication

[Code] .....

View 2 Replies
View Related
Oct 19, 2009

I have a transactional data set with a line for each transaction and I am looking to count the number of documents (each contains multiple transactions) against criteria.....

It looks something like this.....

Column A Column B

Document No Category

11000001 A

11000002 B

11000003 B

11000002 A

11000001 A

Is there anyway to do this without subtotalling for each document and then a count?

View 9 Replies
View Related
Apr 23, 2013

I need to count how many times a code appears over a 6mth period only on a single day. The data would look something like:-

1/1 2/1 3/1 4/1 5/1 6/1 7/1 8/1 9/1 10/1 etc

a b c a a b a a b b

If counting b the result would be 2 on the above 10 days as it appears on the 9/1 & 10/1 it would not be included. It is to be used to count the number of times somebody only appears on a single day over a period of time but not count them if they come back the next day.

I cant think of a way to do this using in built formulas (Countifs, sumproduct, etc) The example is basic and there could be up to 20 codes.

View 4 Replies
View Related
Feb 25, 2014

I have this work sheet with several formulas in columns Z to AD. All of them highlighted red work fine as for as I can tell. I am stumped with the one needed for the cell highlighted yellow AD2. It should count all the dates in AD1 that are Requested Changes Made and/or Rejected in Column "M". AD2 is a total of today minus 8. Equipment Change out - TEST.xlsx

View 5 Replies
View Related
Mar 13, 2014

What I'm trying to do count the TRUE values in multiple columns, if the criteria is correct in another column.

I've tried countifs but end up having the company included into the count, or only count the row that matches all the criteria.

If I do =COUNTIFS(A2:A7,"A",B2:B7,"TRUE")+COUNTIF(C2:C7,"TRUE") then I get 5.

When I change it to +COUNTIFS(A2:A7,"A",C2:C7,"TRUE") it works but there's a time where I need to check up to 8 Options.

Company

Option 1

Option 2

a

True

True

b

True

False

c

True

False

a

True

False

a

True

False

b

True

True

View 10 Replies
View Related
Mar 19, 2013

What I'm trying to do is input a formula in col G which will look for instances of the city named in col F in both cols A and C. This should then return the total of these, from cols B and D that have the letter "F", into col H. Therefore, in the attached example, cell G2 would return "1", G3 would be "0" etc.

Should I be using VLOOKUP or COUNTIF, or maybe a combination of these or something totally different?CityCodeCount.xls

View 3 Replies
View Related
Aug 17, 2007

I am trying to figure out how to create a formula using multiple criteria in different columns. Ideally, I need to use the whole column (i.e. E:E rather than E2:E400) because I don't want to have to update the formula every time I input data.

I will simplify my spreadsheet for example purpose. Basically, column A has a unique identifier that either begins with an "M" or an "R." Column B either contains a person's name or a "-". Column C contains a dollar amount.

1. I need to be able to count all the cells in Column A that begin with an "M" AND have a "-" in Column B.

2. I need to be able to SUM the $ amounts in Column C ONLY for the items that begin with an "M" in Column A and have a "-" in Column B.

Is there any sort of formula that might do this? I have tried SUM arrays but as I said before, I would rather be able to use the whole column.

View 9 Replies
View Related
May 4, 2013

I would like to take the data from worksheet1 and put into worksheet2 but limit the length of a list (the real spread sheet has over 100 rows and i would like them in 4 sets of 25 versus the example I provided). Is there an array or macro that would make this work (keeping the formatting)..

Excel 2007

B

C

3

Name

Company

[Code].....

View 9 Replies
View Related
Nov 24, 2011

I am maintaining employee attendance in day& night wise in month. in this two type of Employees are worked ( EMT & Pilot) Day & Night but i want to

How many EMt's R Worked in day ?

How many Emt's R Worked in Night?

How many Pilot's R Worked in day ?

How many Pilot s R Worked in Night?

How many EMt's Take Off, Leave? And also Pilot R same

Below mentioned type i was using format

NameDesigLocation21-Nov22-Nov23-Nov24-Nov 25Nov26-Nov27-Nov28-Nov29-Nov30-Nov

S H Kumar AngarakulaEMTAddatigala / ITDANN

Satya Rao KakiEMTAddatigala / ITDAOffD

Venkata rao SurabattulaEMTAddatigala / ITDADOff

Srinivasa BhomidPilotAddatigala / ITDANN

VV SATEESH KOTHAPALLIPilotAddatigala / ITDADD

View 5 Replies
View Related
Dec 21, 2004

I have a column (A) in sheet1 with these values:

Code

a1 04800128

a2 04800178

a3 04800128

a4 04805555

a5 04800128

And in Sheet2 - Column A and B has these values

Code

a1 04800128

a2 04800128

a3 04805555

a4 04800128

a5 04800128

Status

b1 Y

b2 Y

b3 Y

b4 Y

b5 N

I need to count in sheet1, where the code of sheet1 will be matched with sheet2 code and its status should be equal to "Y" .. I do not want to hard code these values as I have a huge data.

View 4 Replies
View Related
Jan 15, 2010

I want to be able to look at two columns and set a criteria to count. I want to look at column A and if its blank then look at column B and if it has a value of more than 0 then count.

A B

1 1.00

2 Yes 4.78

3

4 5.00

5 Yes 4.89

6 11.99

So this example would count 3

View 3 Replies
View Related
Nov 7, 2005

I need a formula or function that will sum the number of occurences a

specific text string is entered into cells in column B. I only want to count

the occurences when a number that is in column A (on the same row as the

text) is equal to a specific number. Sounds easy but it's very frustrating.

View 9 Replies
View Related
Apr 20, 2014

I have two columns in a spreadsheet, and I need to write a formula to determine how many times each combination shows up. Example:

SKU-A Location1

SKU-A Location1

SKU-A Location2

SKU-B Location1

SKU-B Location7

SKU-B Location7

SKU-B Location8

SKU-B Location8

SKU-B Location8

SKU-B Location8

I want it to have the data converted to be like this (with the third column being the the number of times that combination appears):

SKU-A Location1 2

SKU-A Location2 1

SKU-B Location1 1

SKU-B Location7 2

SKU-B Location8 4

View 6 Replies
View Related
Aug 2, 2007

I need to know if there is a formula to count how many cells are the same between to columns, IE: If "Bob" had #s 2, 3, and 5 and the correct numbers are #s 1,3, and 5, Is there a formula to put in the cell below "total" to figure out how many of the #s Bob has are the same from the correct #s?

BOB-----CORRECT-----TOTAL

2-------------1-------------2 (Bob picked #3 and 5 which are correct)

3-------------3

5-------------5

PETE-----CORRECT-----TOTAL

1-------------2--------------1 (Pete picked #6 which is the only 1 correct)

3-------------4

6-------------6

View 9 Replies
View Related
Mar 13, 2014

I want to to copy selected columns of sales data into rows organized by salesperson. I have just started out with VBA and find that I cannot do it myself.

My original data are in the form of the following:

invoice_no

product

sales

qty

total

[Code] .....

I want to display the data in another sheet in the following format:

sales_a

sales_b

sales_c

sales_d

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

View 2 Replies
View Related
Nov 7, 2009

I have 8 different files all have a set of data in them

each one has a long list of (column a-n) however the number of rows change by date. I need each file copied into the finalfile.xls one after another. in the files that will be merged into the final file the final row i need copied is blank.

I have all the copy formulas and everything set, I just need a range to copy that automaticaly takes cell a10 to the first blank a cell from each file and pastes it in the finalfile.xls under the last paste so they dont over write each other.

View 9 Replies
View Related
Jun 3, 2012

I want to count the number of duplicate rows where the exact text in columns A and B match. An example is as follows, where column C would be the desired result. Note that there are hundreds of different text values of column A and hundreds of column B, I just simplified the example.

Excel 2007

ABC1AX72AX

3AX

4AX

5AX

6AX

[Code] ......

View 9 Replies
View Related
Aug 5, 2012

Have Excel 2003. I have

List of email addresses in column a

List of email addresses in column b

** I would like a formula that will take all the values in column A and compare it to the entire list of entries in column B.

Would like it to show in Column C any entries in Column A that ARE NOT in the entire column B.

*Would like it to repeat for entries that are in Column B, but not in Column A and show in D.

*Then would like a count of the differences for each column (that is pretty easy).

It needs to look at the entire list of entries in the column as these will be email addresses. We want to know what is missing from Column A that is not in Column B and what is missing from B that is not in A.

View 3 Replies
View Related
Dec 27, 2011

I'm using Excel 2010. One spreadsheet I'm using has 1048576 lines and is a XLSX file. The other file has 65536 lines and is also a XLSX file. When I try to do a VLOOKUP, I'm given an error stating "invalid reference. This file version cannot contain formulas that reference cells beyond 256 columns or 65536 lines.

If both are XLSX files how do I expand the amount of columns in the one spreadsheet with 65536 lines? I thought all XLSX files had a million lines.

View 4 Replies
View Related
Apr 26, 2014

i am trying to complete a spreadsheet which most of it is done but one column i have i have to average everyother square in each column which i did but when i total those columns at the end i get the dreaded #div/01 which means any value that i dont have in a particular column it will not add is there anyway to fix this. i am attaching a sample of the spreadsheet so you can see exactly what i am trying to do .

View 6 Replies
View Related
Jun 1, 2007

I am trying to use the DCOUNT function to count based on two different criteria in adjacent columns is this applicable.

Situation:

I have column B that contains initials and I have column C that contains a type (of store) so it'd look like this

jp RET

jp RTO

jb RET

ma RTO

Rn CI

ma Fur

tc CI

ma RET

jp RET

and I want to have a count of how many RET's there are for Initials JP ect

View 6 Replies
View Related
Oct 15, 2009

Im having a problem finding a formula that will count and take an average of multipul ifs.

On sheet 1 of the attached file is multipul queries raised for us to answer.

On sheet 2 is an empty table which i would like help formulating.

In the Submission Lag Time Column i would like a forumla that looks down Column L on Sheet 1 and gives me an average for the amount of days a query has been with us from each company (column B) per month (going off the dates in column D).

I the same formula will be used for the other 3 columns, put looking down a different column on sheet 1.

View 11 Replies
View Related
Jan 3, 2007

The formula below contains an error (one of many as I've been trying to resove this). = COUNTA(IF(CZ4:DE4,DI4:DN4,DR4:DW4,EA4:EF4,EJ4:EO4>"1",Games / Activity,Games)) The formula should return the following result:

If two or more cells in the above ranges contain numbers and cell C4 isn't empty then return the words "Games / Activity", otherwise return "Games". If C4 is empty keep blank. Can this be done with a standard formula?

View 2 Replies
View Related
May 20, 2014

I'm trying to find out if there is a way to count a specific number from a cell that has multiple numbers in the cell. I have attached a worksheet.

Example, on the attached worksheet, I want to count how many 16's in column C and input that total number into G18. Then I want G19 to tell me how many 17's in Column C, then how many 18's in G20 and so on. I want to do this for all days in a month, 1 through 31. If there are no numbers, then "0" or a blank cell is ok. Not to concerned with zero's.

Attached Files: xlsx Book2.xlsx

View 7 Replies
View Related
Dec 7, 2013

What I require : Column F to be blank as long as the following is true:

1) Column A (Order) cannot be blank.

2) Column E (Status) has to be equal to either "Completed" or "Successful".

3) Column D (Sales) has to have the same date as Column C (Contact), but due to bad data quality each order number can have several rows and as long as the Sale date from one of the other "Duplicate" rows equals the contact date it needs to be counted. This is as long as there is not already a row for the Order that already has Sales / Contact day matching.

In the attached spreadsheet, I have highlighted the rows that should be blank in column F in green. My attempts at formulas to count this are in the columns highlighted in red.

WORKAROUND.xls

View 1 Replies
View Related
May 20, 2006

My question is:

I do multiple audits using excel, and would like to start a database as I put more audits into one folder. So it updates the values as I insert more audits into the folder.

My audit is a workbook which has multiple worksheets. But for each audit, it is the same worksheet with the same cell. The audit consists of yes and no questions, where you put in a x for either one. I would like to start a database, so for each question on my audit, I would have a percentage of yes or no for all my audits. For instance, question 1 , 7 out of my 10 audits, I had yes for that question.

How do I write a macro, so it counts the x's for multiple workbooks, and updates automatically for each question as I add more audits into that folder.

View 4 Replies
View Related