Multiple Condition SUM With Or Criteria

Sep 18, 2007

I am trying to use an OR condition within a sumproduct formula. Why am I not getting correct results?

(see attached)
I want to sum all costs for each of my PO #s:
If the Rebate Type is IPT, Wireless, or Security, then the result goes in the "Fndtn Ext Cost" column
If the Rebate Type is IPT Advanced, Wireless Advanced, or Security Advanced, then the result goes in the "Adv Ext Cost" column.

The formula I am using is as follows:

=SUMPRODUCT(($A2=PO)*(OR(Rebate_Type=$F$3,Rebate_Type=$F$5,Rebate_Type=$F$7))*(Ext_Cost))

But for some reason, even though the OR statement is evaluating to FALSE (I tested it by itself), it's still summing ALL the extended costs for that PO #.

View 9 Replies


ADVERTISEMENT

Copy Rows From Multiple Worksheets To New Condition Based On Criteria

Nov 20, 2012

I have multiple sheets with the same format.(all columns have same format) in column "A" i have a value lets say "B1-1".

What I need to do is to copy from all sheets the rows containing in column "A" the same criteria("B1-1") to a new sheet and skip the rows that have a blank cell in Column "A".

View 5 Replies View Related

Excel 2003 :: Concatenate Text Strings From Column Using Multiple Criteria Condition (formula)

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

Average By Condition/Criteria

Oct 8, 2007

I am trying to create a macro using arrays to calculate average sales from a list of sale amounts that originate from different cities. Each city has its own city code and I want to display the average amount of sales for each city. The attached file is the template that ive created to do this. I am having trouble getting the arrays and loops to work. If anyone can help me out I would greatly appreciate it.CitySales2.xls

View 3 Replies View Related

Delete Based On Condition/criteria Using VBA

Apr 16, 2006

I want to be able to delete certain rows based on multiple criteria. If data in the row does not meat the crieteira, it shud be deleted. I have attached the excel file sample in which I want to keep the highlighed rows and detele the rest. Its base on Origin city and Destination city combination. Eg: If Origin city="A" and Destination City = "B", I want to keep the row. Like wise for all highlighted rows. but if the Origin City = "B" and Destination City = "U" I want to delete the row.

View 9 Replies View Related

Run Macro When Cell Condition/Criteria Met

Oct 6, 2006

Two ranges A1:A20 (input values) and B1:B20 (results).

Input values are always the digit 1 which starts the calculation and the result comes up in the cell to the right.

Example:
Input (1) in cell A1 gives a result value in cell B1.
Input (1) in cell A12 gives a result value in cell B12.
I need a macro “StartCalc” to do the following thing:
Go to cell A1.
Put in the value “1”
Check the result cell B1.
If “result value” > 20, then run macro “Test” (this macro is working)
Go to cell A2.
Put in the value “1”
Check the result cell B2.
If “result value” > 20, then run macro “Test” (this macro is working)
…….
Go to cell A20.
Put in the value “1”
Check the result cell B20.
If “result value” > 20, then run macro “Test” (this macro is working)
End of macro.

View 4 Replies View Related

Average Of Cells By Condition / Criteria

Feb 7, 2008

I have an Excel file ( book) that I use for scheduling my restaurant employees. There are currently formulas in place that retrieve information from cells on one sheet to a cell on another sheet. For example:

If, on the first sheet I schedule Joe the following section on Tuesday AM (D14), his name will be automatically shown on another sheet which list the section/floor plan in quick view.

I need a formula (on a third page) that will allow me to tell me how many times an individual employee has had this particular section. The sections are listed with a letter preceding it. Such as D**, P**, B**, SB**, etc.

View 3 Replies View Related

Print Data Corresponding To Condition/Criteria

Apr 16, 2008

I have been building a HR database. There are more or less 20 worksheets in it, including staff personal datas, contracts informations, overtime, leave etc.
All the calculations work, and I can print my payroll correctly. So everything is good.

However, what I really would like to do is to be able to print all salary slips in just one clic or two.

I think I have to create a VBA Macro to do so. But I never learned to use this tool. And I think this macro is too complicated to create for a newbie like me. So, I'd really like you guys to help me in creating it.

What I want this macro to do:

1° To check if the staff in question is still hired by the ngo
(I have on worksheet 'employee register' a column A named 'staff code' and a column Q named 'inactive'; i put a "x" when an employee is inactive, and the column automatically remains blank in the other worksheets)

2° If the staff is still hired, to print the salary slip of this staff
(I have a worksheet 'Salary slip' in which I have a cell (D5) that allows me to select the 'staffcode' in a validated list, when I select the staffcode, the information concerning the slip update automatically)
(my "staffcode" validated list still contains the inactive staffs, I dont know how to fix this)

3° Repeat this operation for all hired staff (all active staffcode)

View 5 Replies View Related

Count Specific Criteria Based On Another Condition?

Jan 3, 2013

I'm trying to create a formula that tells me the following:

If the item is marked as closed (vs. active), then how many renewals/terminations replacements/etc are there? These are two difference columns in a worksheet.

View 2 Replies View Related

Count Cells Meeting A Criteria/Condition

Sep 8, 2006

I have a data sheet which has a number of columns

I am only interested in one of the column which is 'Type'. Within this column it specifies the type of order it is. I would like to count through the sheet and get a final count of the different order types on the other sheet, so if there are 56 instances of 'trace' orders then I would like this displaying on the other sheet as Trace = 56, and so on

View 9 Replies View Related

Delete Rows When Meet Criteria Or Condition

Nov 21, 2006

I have a spreadsheet with 3023 rows and columns A-L. Here's a small sampling of Column A (with heading "sku" included, copied exactly as it appears in the spreadsheet):

A
sku
3102-0400-100000
3102-0400-200000
3102-0500-100000
3102-0500-200000
3102-0600-100000
3102-0600-200000
3102-0700-100000
3102-0700-200000

I need to delete every row in which column A includes the text "200000".

Although the above sampling shows "200000" appears in every other row, that is not the case in all 3023 rows.

View 9 Replies View Related

Start/Stop Loop Based On Condition/Criteria

Aug 31, 2006

I have a piece of code that put a check in all checkbox in column B from row 5 to row 50 but in column C, I have data from row 5 to 38. I want the macro to stop at row 38 in column B. When the cell in column C is empty stop putting checks in column B. How can I make this macro Check all checkbox down column B and stop when column C is empty. How do I add a loop to stop when the cell in column C is empty?

Private Sub CommandButton1_Click()
Dim CB As Variant
For Each CB In ActiveSheet.CheckBoxes
CB.Value = False
Next
End Sub.......

View 3 Replies View Related

Format Pivot Table Based On Criteria/Condition

Sep 7, 2006

I am using pivot table for my customer aging which a sample is enclose. What I want to do is to Highlight the field " Customer Name " in colour if the the Field " Type of guarantee" is other than 0. Also a message of " Credit limit Exceeded" if the outstanding is more than the Credit limit.

View 2 Replies View Related

Macro: Copy Data Based On Criteria/Condition

Oct 16, 2006

Attach is a sample of my project. I have to loop through B9:B80 in sheet("Raw Data") and capture the value of each cell. EG:

* if Value captured is 120A --> check with sheet("SP14F") from the row which contains the same value.

* i have to check that the aperture, outer and inner values of Layer 120A and so on..of the Raw Data sheet is the same as that of in the SP14F sheet.

* if the values are not the same, change the font to red

i understand that this task requires looping and arrays.

View 4 Replies View Related

Count Number Of Entries Meeting Condition/Criteria

Oct 24, 2006

I have a spreadsheet that has 35000 entries and i am trying to count how many material are assigned to a particular group but cannot get it to work. I have included a test spreadsheet to explain what i am trying to achieve

View 3 Replies View Related

Copy Cells In Range List By Criteria/Condition

May 24, 2008

In a data table, I need to sequence down a criteria list in Autofilter to the end. The list contains may contain either numberic or string dat, but no blanks. At each criterion, I need to copy the range and paste to another workbook. After reviewing many posts, I beleive I can create a VBA macro to do everything except sequencing.

View 2 Replies View Related

Multiple Condition, Multiple Range Formating

Apr 10, 2009

In range C15:C45 I have names of some steps. Starting from column D, row 6 have a drop down with 6 possibilities. Now based on what is selected in row 6 (so cell D6, E6, F6 and so on), I would like to color certain cells from 15 to 45 in that particular column (certain steps that are applicable to option selected in row 6 of that column). And as month goes by, users do that in more and more columns.

Also, steps overlap between conditions that are selected in row 6 and I would like this to macro (or formulae) to be running so that as soon as user selects the condition cells are colored and then they can fill out only those cells. So, I couldn't figure out any way to do this by conditional formating as there are more than three conditions and range is not continuous.see attached file as an example of final output.

View 4 Replies View Related

Copy Rows Where Cells In Column Match Condition/Criteria

May 5, 2008

I did a search to find a question similar to mine and I found this:
Copying data matching a criteria into another spreadsheet

This is exactly the same concept I am trying to accomplish, but don't know how to...at all. I couldn't follow the thread either.

I have a schedule which is constantly being updated (simplier version attached). I want to create a schedule, which will:
1) First ask which region to display the information for (I would like to create the same pop up menu to choose from)
2) Then, it will select only that region's information (all rows & columns) and copy them into a new worksheet and lists it all
-if you go back to the Master List, you can again choose another Region and it will create another new worksheet with that region's information
3) Don't know if this is making things more complicated, but at the bottom of the attached file, there are 3 lines under "Land".

Is it possible to list these under the same spreadsheet as the region it is pertaining to but classify it separately under "Land" (ie leaving space, so it is clear this is separate

View 9 Replies View Related

Lookup Multiple Criteria & Sum Result On Multiple Criteria

Oct 21, 2006

I am trying to solve a problem. I am currently using this formula
= SUMPRODUCT(--(Sheet2!B2:Sheet2!B300="MARKETING"),--(Sheet2!D2:Sheet2!D300="200612"),Sheet2!E2:Sheet2!E300)

This formula works for me as it is but I would like to add more months to 200612. I want this to also be 200701 and 200702. In another cell there will be up to 10 months. Is there a way to do a Vlookup or something that will look up these months in another table, rather than keep typing them out in the formula?? Otherwise my formula will be very long.

So the info looks like this in excel
MARKETING 200612 -10
MARKETING 200701 -25
MARKETING 200708 -50
ECONOMICS 200709 -30

The info goes on and on. The two variables are the MARKETING column and the month column. My problem is that I would like a seperate table that can be the months. So 200612 and 200701 is one table, and 200708 and 200709 is another table. The table changes often so I dont want to mess with the formulas, rather a table.

View 5 Replies View Related

Count Where Text Value In 1 Column & Month Of Dates Meet Condition/Criteria

May 23, 2008

need a formula to calculate the total number of x's in one column (column B, C, E are training types= x) where the corresponding column date falls within a date range. It’s to total each type of training done for each month. I have 3 training type columns and a cell that calculates the total number of trainings for the each month:=COUNTIF(F2:F100,">="&DATE(2008,2,1))-COUNTIF(F3:F200,">="&DATE(2008,2,31)).
So now I just need it broken down by training type per month. How many x's in each column for February as an example.

View 7 Replies View Related

Copy Worksheet Data By Condition/Criteria To Respective Named Sheets

Jun 2, 2008

Now what I am looking to do is search my spreadsheet for specific criteria and then copy and paste these rows of information to a new sheet.

In my first spreadsheet that I am using as a database, I want to be able to select any entry from the month and copy it to another spreadsheet named for that criteria.

In other words, I want to find every entry for January, copy just that data's rows and paste them to the January spreadsheet, February to February, etc. My date fields are in column A.

I also want to do the same with representatives names found in column B.

This will break down the data for each rep and each month. Using the filter, then copy and pasting would be cumbersome.

View 9 Replies View Related

Multiple Criteria SUMIF Using Column As Negative Criteria?

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

Macro For AverageIFS With Multiple Criteria In Same Criteria Range

May 18, 2014

Macro for AverageIFS, with multiple criteria in the same criteria range....

View 9 Replies View Related

Using Multiple If Condition?

Dec 22, 2013

formula using if condition. I attach the sample file about my problem.

View 14 Replies View Related

Multiple Sum Condition

Jan 25, 2007

I am trying to sum based on a set of conditions including time. The formula works fine except when time is between 11.30 pm to 12.00 am.I have attached the sample which will make the scenario clear. I am not sure how to modify the formula to ensure it works when the time is between 11.30 pm to 12.00 am.

View 8 Replies View Related

Multiple Condition Sum

Jun 4, 2008

I am trying to write a formula, that looks at row A1:A6 (Country), and equals A11 (Country chosen), but also looks at Columns C:E (Month), and equals B10 (Month Chosen). I can then add the figures in C3:E10. However I want a YTD idea, and so ADD Month 1 through to Month chosen in cell (B10) for the relevan contry chosen (A11). Uptil now I have used SUMPRODUCT, but am only able to sum one column, and not the required numbe rof columns.

View 6 Replies View Related

If Condition With Multiple Text

May 27, 2014

I got four product name in column & want to bring other product name equal to same same product in different colum
like if products name in column range is PRV IT should bring birkett in other colum

PRV SHOULD BE IN NEXT COLUMN AS BIRKETT
TANK " " "" WAM
INSTRUMENT " " " " AGI
HVC " " " BAILEY
and rest of should be Marston

I had put that formula but didn't work 100%

=IF(C5>="PRV",IF(C5>="TANK",IF(C5>="INSTRUMENT",IF(C5>="HVC","BAILEY","AGI"),"WAM"),"BIRKETT"),"MARSTON")

View 8 Replies View Related

Multiple Condition Vlookup

Jan 9, 2009

I've been trying to figure out how to do a vlookup using two conditions. Reading some other posts, I saw this could be done by combining a MATCH function but I'm still having trouble. Here is what I'm trying to do: I am trying to match cash amounts based on two look up values....one being the identifier (cusip) and one being the pmt code. http://i105.photobucket.com/albums/m204/RAK_08/data.jpg

This data is formatted exactly the same but comes from two different sources. I need to match the pmt amounts for a cash reconciliation.

View 4 Replies View Related

Looking Up Multiple Items On More Than One Condition

Jul 18, 2014

I have added this example:

Test lookup main supplier.xlsb

I have a list of 5000+ items that I need to check (only 6 of them in this example in the red table).

I have a list of 25000+ items in a lookup table (only 10 of them in this example in the blue table).

Each item can have more than one supplier, but has only ONE Main supplier.

I need VBA code that determines if the supplier in B1 already is a main supplier for that specific item in the lookup list (yes or no).

I tried filtering it but that appears to be too slow for 5000 x 25000 items.

I have tried with VLOOKUP and Match, but I do not know how to combine the two conditions.

View 7 Replies View Related

Multiple Condition Formula

Apr 16, 2006

in cell A1 and cell B1 I have a "yes", "no" or "maybe"
in cell C1 and D1 I have a number

if cell A1 and cell B1 "yes" multiply cell D1 times 2 (all results in cell E1)
if cell A1 "yes cell B1 "no" multiply cell D1 times 1.2
if cell A1 "no" cell B1 "yes" multiply cell C1 times 1.2
if cell A1 and B1 'no" multiply cell cell C1 times 2
if cell A1 "maybe" cell B1 "yes" multiply cell D1 times 2
if cell A1 maybe cell B1 "no" multiply cell C1 times 2
if cell A1 "yes" cell B1 "maybe" multiply cell D1 times 2
if cell A1 "no" cell B1 "maybe" multiply cell C1 times 2

View 6 Replies View Related







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