# Adding Multiple Criteria In Same Column?

Jun 24, 2014
I'd like to add the numbers in column C that correspond with Fuji, Fuji Royal, or Fuji Premium in Column B. Essentially I am trying to count up the total number of all variety of Fuji apples. I've tried using the sumif and sumifs formula, but haven't been able to crack it.

RED APPLESSIN ESPECIFICAR2.352

RED APPLESROYAL GALA1.029

RED APPLESCRIPPS PINK280

RED APPLESROYAL GALA896

RED APPLESCRIPPS PINK1.064

RED APPLESFUJI867

RED APPLESFUJI PREMIUM1.919

RED APPLESROYAL GALA4.871

RED APPLESCRIPPS PINK1.176

RED APPLESFUJI112

RED APPLESROYAL GALA1.064

RED APPLESSIN ESPECIFICAR2.282

RED APPLESSIN ESPECIFICAR4.522

RED APPLESCRIPPS PINK1.176

RED APPLESROYAL GALA2.352

RED APPLESCRIPPS PINK7.056

RED APPLESFUJI1.96

RED APPLESPINK LADY1.344

View 9 Replies
ADVERTISEMENT
Jan 30, 2013

If i have the following layout of data

Column 1 Column 2

January 1000

January 1234

February 1300

March 1600

January 15

March 123

April 234

January 3000

I would like a formula that adds all the January numbers together returning a result of 5249

To move this one step further i would eventually need to add these numbers based on quarters, for example if the value is January February or March in column 1 then add the numbers in column 2.

I'm sure i have done this before using a countifs maybe but my mind has drawn a blank

View 1 Replies
View Related
May 13, 2014

=IF(A5:A6="John","Present", "Off")

How to add few more names aside from John. What if I wish to add names like William or Leo on the search criteria?

For example, John or William or Leo

View 4 Replies
View Related
May 26, 2009

I am having difficulty trying to consolidate a much larger version of the attached spreadsheet. I need to be able to have excel automatically add up the assets, based upon the firm ID. I have looked around and thought that SUMPRODUCT or SUMIF would work for what I need, but I've been unable to get either to work. I almost need to do a VLOOKUP and have it SUM at the same time.

View 3 Replies
View Related
Mar 24, 2014

I've attached a sample workbook to show what I am trying to do. I would like the formula to say "if Sheet2!A:A is "MON" and if Sheet2!R:R matches Sheet3!A:A, and if Sheet2!I:I doesn't match any of the values from Sheet1L:L, then I'd like the sum of Sheet2!F:F. It seems pretty simple but I've tried a million different variations of SUMIFS, SUMIF, IF, AND, etc. and I can't figure it out.

View 1 Replies
View Related
Sep 29, 2011

Need to create a macro?

Delete rows where multiple column meets multiple criteria.

detail:

delete rows where

Column H is less than 10000

AND

Column C is empty(blank)

Those 2 criteria have to occur at the same time..

View 1 Replies
View Related
Apr 10, 2013

i have data stored like:

col1

XXXX1244 50

XXXX1519 60

XXXX1244 50

xxxxx1111 10

xxxxx1519 65

the last 4 caracters are numbers. I need to test these numbers and sum the corresponding values them in a single cell without adding new column(SUMIF like).

so in the above example I need to sum all ending at 1244 or 1519, therefore the sum showed in the single cell equals 225

to extract from a single cell: =VALUE(RIGHT(D8;4))

I tried to use an array formula but it seems to crash if a blank cell is in the array

View 5 Replies
View Related
Mar 25, 2010

I have a single page of consolidated data that I need to pull from. The data is formatted like the following

Column A Column B

Category

Subcategory 1 Data

Subcategory 2 Data

Subcategory 3 Data

Subcategory 4 Data

All in the same column. I need a formula that will look for a certain category and then a certain subcategory and then provide the number to the right. The Categories and subcategories are in Column A and the data I want pulled over is in Column B

View 4 Replies
View Related
Sep 24, 2012

I have two sets of criteria I want to incorporate into one formula. In the first column, if the criteria is matched, it will check the criteria in the next column. The criteria in the second column is something that resembles the 'or' function. So if criteria equals x,y, or z, sum the results from the data range c3:c98. I tried writing it like this.

=sumproduct(--(a3:a98=a),--(b3:b98=x(or(b3:b98=y,b3:b98=z))),c3:c98)

View 1 Replies
View Related
Sep 25, 2007

I currently use this filter to display rows with exact values as shown in this example:

Sub New_SheetUnpaidInvoices()

Application.DisplayAlerts = True

Worksheets("Closed Yr. 07").Activate

Columns("S:S").Select

Selection.AutoFilter

ActiveSheet. Range("$S$1:$S$1127").AutoFilter Field:=1, Criteria1:= Array( _

"BOB JONES", "JIMMY SMITH", "SUSAN LEE", "JONES SMITH LEE"), Operator:=xlFilterValues

End Sub

Sometimes, however, the worksheet cells contain simply combinations of last names like "JONES SMITH LEE" or other combinations. And, the last names appear in random order. So, I'd like to able to filter all rows that contain portions of the string without having to worry about the order and the exact string, etc. If the autofilter can return rows anytime it finds Jones, Smith or Lee regardless of order, that's be great.

View 7 Replies
View Related
Sep 25, 2008

I'm trying to use the advance filter for multiple criteria in one column. It works fine if the criteria is ="*10*" (ie where the cell in the range has 10 in the string) plus other = criteria. What I cannot get to work is where the range doesn't equal 10 in the string. I've tried ="<>*10*" and other variations to no joy.

View 4 Replies
View Related
Sep 3, 2009

I want to do is randomly pull from a field of data, MINUS any cells that do not meet the criteria in other columns. So if column A is my target column for the random selection (containing 10 unique entries), and column B has 10 repeating colors, and column C has 10 repeating animals, what can I use to perhaps create this effect: A random pull from column A, but only from rows in which column B says red and column C says cat? (The pull being 1, 4, 7, or 9 in the below example, of course.)

Data (this example is also attached in an excel doc):

One Red Cat

Two White Dog

Three Blue Horse

Four Red Cat

Five White Cat

Six Blue Cat

Seven Red Cat

Eight Red Dog

Nine Red Cat

Ten Red Horse

I have tried variations on IF and INDEX to no avail. Perhaps something with SUMPRODUCT?

View 3 Replies
View Related
Jan 26, 2004

I'm trying to create a SUMIF statement that that has an embedded OR statement within, and am unable to make it work.

Basically I want to say if "column Q" equals one of 2 criteria ("cat" or "dog") then sum the corresponding number in "column P" I've tried the following statement, but it is just resulting in a zero:

=SUMIF(Q9:Q32792,OR("cat","dog"),P9:P32792)

I've seen support on statements with multiple criteria in DIFFERENT columns, but not if searching for multiple criteria in the SAME column.

View 5 Replies
View Related
Aug 1, 2014

I am working with an aging report where data is formatted in column. In the last column I would like to assign a value based on criteria from the adjacent columns (ex: If balance > $10,000 then value = "Hold").

My idea was that I would asign variable to the column, start a for next loop, and insert the criteria in an if then else loop. Is this the best way to go about it, should I be using case select, and how do best assign the variable to column so that I can loop down the entire report.

Here's an example of what I'm working with

Balance

Current

90

[Code]....

View 2 Replies
View Related
Dec 2, 2006

Option Explicit

Dim lastrow As Long, t As Long

Sub Method()

lastrow = ActiveSheet.UsedRange.Rows.Count

For t = lastrow To 1 Step -1

If Cells(t, 8).Value <> "" Then

If Cells(t, 9).Value = "Y" And Cells(t, 10).Value = "" And Cells(t, 12).Value > _

6 And Cells(t, 12).Value < 60 Then Range(t, 25).Value = 20

End If

Next t

End Sub

Alright, the above code is not working. I am not sure if it is the write part (t,25 value) that is wrong. I want the Y column to be written with a method numbered "20" if the conditions (H is not null, J="Y", K="", and 6<M<60). I have numerous other methods to put in. The reason I'm not doing Case Statements is this is jsut to write the basic code, and then I will have to move it over to ReportSmith using ReportBasic.

View 5 Replies
View Related
May 15, 2014

I am trying to create a list of all instances where contents in A3 is found in C5:C12 and return the values in D5:D12 without any spaces. Right now I can do it in two steps but I'd like to clean it up and do it with only one formula.

View 7 Replies
View Related
Nov 29, 2013

I have attached an example workbook with a tiny subset of data and a number of criteria from the Dashboard Engine page removed.

What I need is to sum the total value for each division on the second sheet based on the date criteria (so for the first cell Jan 1/2010 - Jan 31/2010) and on a match between division name on the Dashboard Engine sheet table and the Masterdata sheet. I have tried a number of variations but keep getting a 0 for each return.

Sample Workbook.xlsx

View 12 Replies
View Related
Mar 6, 2013

I have been trying multiple SUMIFS and SUMPRODUCT formulas to try and revamp my budget spreadsheet. My first criteria is the month being a certain number (contained in a column), if that condition is met it needs to look for the account number I am budgeting for (row heading) and if it matches both criteria I need it to sum the Column that has the row heading of the account number. I have succeeded in doing a SUMIFS and manually finding the column that has the heading of the account number I am looking for, but I would like this to be an automated process so I can copy the formula. Below is the data I'm using (a very, very small portion of it), and the results are how my budget sheet is going to look. These will be on separate tabs in the workbook.

EX: For July electric revenue (44211) I need my formula to: (if the Month column=7 & if the Account Code row heading=44211, sum the column that has the heading of 44211). So far I cannot get this to work.

DATA

Account Code

44211

44215

[Code]....

View 4 Replies
View Related
Aug 20, 2013

I have a challenge I haven't quite been able to figure out:

I need a 6 digit trace code to be automatically generated for each job based on the date, the product type and the job number.

The first 2 digits on the trace-code are alphanumeric and the sequence for each job is AA, AB, AC etc.

The last 4 digits are a date code (YYWW.... two digits for the year and two digits for the week number).

The criteria is that multiple jobs of the same product type within the same work week must not have identical trace codes. So Job 1 gets "AA" plus the date code... Job 2 gets "AB" plus the date code, etc. If Job 3 is done in the next work week, it cycles back to "AA" and gets the new date-code.

Generating the date-code was simple enough, but coming up with a function or rule to assign the two-digit alpha has been a challenge that I have not been able to beat.

Below is an example of how the Trace-code column should work....note that Trace code on one product type might be identical to the trace code on another product type.

A

B

C

D

1

Date

Product type

Lot number

Trace code

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

View 3 Replies
View Related
Jun 16, 2014

Any quick way to extract data from a table. I need to extract a value from a column that meets criteria from two different columns. I thought I could get this to work with vlookup, but have had no success. Sample data below in table 1 and I would like to get my data into table 2.

elevation

type

grade

percent

weight

5000

5000

5000

5020

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

View 9 Replies
View Related
Dec 30, 2008

I have a large worksheet that lists employees and the hours they work each day in a pay period.

For Example:

Column A holds a date and Column E holds the number of hours worked for a paytype. So i want to create some function that sums the numbers in column E, but only those where column A holds a date.

Then i want to return that number to a cell, say C20. I think I've managed to tell the macro which rows i want to return values from, but I can't figure out how to say "add these numbers together and put the total in C20."

I'll check this frequently if clarification is needed.

View 9 Replies
View Related
Apr 17, 2008

I have a large file of invoices, and some have been paid. The problem is, sometimes it is not paid against the correct invoice, so I have a lot of credit and debit that should offset each other. I want to go through the sheet and highlight all the rows that has a matching ID and an a 0 value when total amount column was added up to another row. I would like it so that it highlights a different color for every pair of offsetting amount, but the same color highlight is fine too.

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
May 14, 2013

I have a table that looks like the following, only it's actually much larger:

_Red Blue Green Blue

A 2 4 2 3

B 5 2 1 1

C 3 1 2 5

D 2 3 4 2

As an example, I'm trying to sum all cells that match Blue and C. The answer should be 6, but I always end up with either zero or #VALUE.

View 4 Replies
View Related
Jul 1, 2013

Example data:

01/05/2013

150

Yes

01/06/2013

1

Yes

[code].....

Basically I'm trying to write a formula that will sum the total of the numbers from column B but only where the month equals June AND column 3 says "Yes".

So the answer would be 101, because rows 2 and 5 are the only rows of that table that meet all the criteria, and the sum of their column B cells would be 101.

I thought I was getting there with Sumproduct and Sumif but I'm now drawing a blank. There is a little extra complexity in that I'm actually pulling the month value from a set of cells elsewhere, but if someone can solve the puzzle above I hope I can do the rest on my own as it's just locations of data to pull from other worksheets really.

View 9 Replies
View Related
Sep 17, 2007

I need create a macro to perform the following - I don't know if it needs to be an Excel macro or via VB. This is to speed a process up and eliminate any spreadsheet messing around for our "admin" staff - they are not good with excel at all!

So, I have a daily/weekly down load of a spreadsheet (exported from access).

* I want to copy the values of column AK to A

* Then delete all entries in column D that equal 19, 20 and 6

* Then delete all entries in column AL that equal "A","B","C" or "D" but not "E","F" or "G"

* Then delete entire rows where the value in column A is a duplicate within the list

I will call this spreadsheet, for the purpose of this exercise, the "Master". I now have another spreadsheet with values in that should relate to values in either (or both) columns A and B in the "Master". I need Spreadsheet 2 values to be highlighted as cross checked in the "Master" and then all those in the "Master" that do not appear in the 2nd S/S will be normal white cells thus showing that they need to be chased by our Admin staff.

View 6 Replies
View Related
Jan 2, 2013

This formula allows me to find the lowest value in column U where column N contains the text "NO".

{=MIN(IF($N$2:$N$10000="NO",$U$2:$U$10000))}

I want to add another condition so that the formula only returns the lowest value in column U where (i) column N contains the text "NO" and also (ii) column F contains the text "YES".

View 11 Replies
View Related
Dec 19, 2011

Is there any method to speed up a for each loop to count text in a cell with multiple criterias in a single column. This is on example:

Code:

For each rr in r

If rr = "a" And rr.Font.Strikethrough = False Or rr = "B" _

And rr.Font.Strikethrough = False Then

a = a + 1

end if

next

View 1 Replies
View Related
Feb 23, 2012

Excel 2007. I have an Excel file that contains a data dump from an external database file with numerous analytical sheets that perform calculations. Some of these calculations utilize the SUMIFs function that was introduced in Excel 2007. This function does an outstanding job of summing a column on the data sheet based on multiple criteria.

However, someone high up in management in my organization would like to "drill down" into the data behind the

SUMIFs formulas to get a quick snapshot of the lines in the database that roll into the

SUMIFs formula. =SUMIFS(DataBase!E:E,Data!A:A,C7,DataBase!B:B,D7,DataBase!C:C,E7,DataBase!D:D,F7)

If I double click on a cell with the formula above, Excel takes me to the Database tab and selects Column E which is close, but not exactly what I need. What I really need is for Excel to only show the rows on the database sheet that make up the total in the SUMIFs formula and not the entire data dump from the database.

At present, we have to manually apply the autofilter on multiple columns to show the rows in column E that make up the total in the SUMIFs formula which is a tedious and time consuming task. Is there a way to force Excel to do this? Suggested custom database application or pivot tables, but we do not want to reinvent the wheel.

View 2 Replies
View Related
Dec 20, 2012

I am looking for a way of creating the following conditioned concatenation.

I have two tables, let's call them "summary" and "detailed".

The "detailed" table is something like the following:

ID

VOL

001

01

001

05

[code]....

The "summary" table below gets info from the "detailed" table. The 'ID'is now unique. I'm looking for a formula on the 'VOL (concatenated)' column cells it should get all rows from the "detailed" table with the same ID and then concatenate the 'VOL' column results, comma separated:

ID (unique)

VOL (concatenated)

001

V01, V03, V05

002

V01, V04

003

V06

PS: I have people using this table with office 2003, so compatibility is necessary...

View 1 Replies
View Related