Conditions / Criteria Based On Arrays With Different Formulas?

Dec 16, 2013

I'm having trouble with doing a similar thing with conditions/criteria based on arrays for different formulas (e.g. IF, COUNTIFS, SUMIFS).

Here's what i'm trying to condition and than use different formulas:

column A - Region
1. Europe
2. Europe
3. Asia
4. Asia
5. America
6. Asia
7. America
8. America
9. Europe
10. America

[Code] ....

QUESTIONS

1. (IF, AND ?)
For all cases listed in column A that have "university" in the column B, If there is at least one case having "Europe" write 1, if there isn't write 0.

The conditions are "Europe" in column A and "university" in column B.
If there are cases like that, I want formula to produce 1.
If there are no cases like that, I want formula to produce 0.

* In this example the formula would produce 1. for "Europe" and "university".
* If the formula was looking for "Oceania" in the column A with "university" in column B it would produce 0.

2. Using COUNTIF with multiple criteria.
Count all of the cases that have "Europe" in column A and "university" in the column B
The conditions are "Europe" in column A and "university" in column B.
If there are cases like that, I want formula to do count.
* In this example the formula would produce 2 for "Europe" and "university".
* If the formula was counting "Oceania" in the column A with "university" in column B it would produce 0.

3. Using COUNTIFS with multiple criteria.
Count all of the cases that have "Europe" in column A, "university" in the column B and "GER" in column C

The conditions are "Europe" in column A, "university" in column B and "GER" in column C.
* In this example the formula would produce 2 for the 3 conditions.
* If the formula was counting "Oceania" with "university" and "GER" it would produce 0.

I've spent a lot of time searching the Internet for this (e.g.how to use IF with an array, about different functions and formulas...) and found nothing that works.

For COUNTIF(S) they just didn't work, event with ctrl+shift+enter.

View 7 Replies


ADVERTISEMENT

Index Arrays - Conditions Are Based On Dropdown Menus

Mar 16, 2014

I am looking to create an index array. the conditions for the array are based on drop down menus. I want to have it that if the drop down menu has * in it, the array should calculate everything rather than a specific value.

={IF(ROWS(I$14:I14)>$H$7,"",

IFERROR(INDEX('Sheet1'!$C:$C,SMALL(IF(('Sheet1'!$T:$T=Sheet2!$H$2)*('Sheet1'!$U:$U=Sheet2!$I$2)*('Sheet1'!$L:$L>0),ROW('Sheet1'!$T:$T)),

ROWS(I$14:I14))),"")}

In the SMALL array I have three conditions:

1.'Sheet1'!$T:$T=Sheet2!$H$2
2. 'Sheet1'!$U:$U=Sheet2!$I$2
3. 'Sheet1'!$L:$L>0

The array works fine but only if I place an actual value in the drop down cells which are H2, I2. The third condition is just to ensure it only calculates the array for rows that have numbers above 0. My question is how can I amend it so that selecting "*" in the drop down cells will calculate for everything?

View 3 Replies View Related

Summing Ranges Based On Two (or More) Conditions/criteria

Jul 7, 2009

I have a cell that I need to make a calculation if certain other cells =Y, or to show "0" if the other cells =N. I can do the calculation for the Y part but how do I add the N part of it? Here is what I have:

=SUMIF(J19:J40,"Y",H19:H40)*0.08

View 13 Replies View Related

Formulas That Can Be Used With Arrays

Jun 12, 2007

Does anyone happen to know of a list of formulas in Excel that can be used as Array formulas?

I am trying to get a better grasp of what happens with array formulas in Excel - for instance MATCH seems to be a good candidate to hold an array of values when confirmed with CSE, but INDEX seems like a formula that wouldn't itself hold an array of values (although it might be able to lookup the corresponding cells of two arrays with corresponding rows and columns).

View 9 Replies View Related

Query Worksheet & Return Rows Based On Conditions/Criteria

Jun 1, 2008

I am trying to query a names sheet where each row may contain more than one occurence of a member ID. There are no duplicate rows ( records), because the dates are different for all rows.

1. I want to retrieve all of the rows from the names sheet that match a unique member ID. So far I only get one row.

2. And if mistype the number, it gives me a wrong record .I would like to get an error message that if I don't get a match, that it appears in the somewhere like dialog box or even entry in one of the cells that no name exits.

View 4 Replies View Related

Copy Formulas Based On Criteria

Mar 12, 2007

how I can copy formulaes in cells B2:S2 down the row if the corresponding A-cell is not empty (contain a string)?

View 3 Replies View Related

Extracting Unique Data Based On Multiple Criteria With Formulas

Sep 27, 2013

I have data and after doing some data manipulation it looks like this

Job #
Part #
Lot #
Total
Grand Total

[Code]..

What I'm trying to do is making a summary sheet that has only the first record with unique values using the Job number, part number, and lot number as the criteria. The grand total in the first record is the total for all of that job,part,lot so i need to bring that value over to the sheet as well. I have been able to do this easily with the duplicate finder, but need a formula to automatically do this.

View 2 Replies View Related

Select Row Based On Cell Criteria Remove All Formulas From Row And Change Fill Color

Apr 23, 2014

I have a worksheet that when a row changes based on the value of column B, I want to remove all of the formulas found in the row but keep the existing values, and then change the color of the row.

In the sample file attached, when the value is "Closed", that row will keep the existing values and then it gets grayed out. Rows that are still marked "Open" need to retain the formulas in case other information changes.

I have tried copy/paste special using autofiltering but that doesn't work because of the hidden lines. This file changes on a daily basis and I need a quick way to update the file.

SampleFile.xlsx

View 1 Replies View Related

SUMIFS Using Arrays As Criteria?

Feb 28, 2014

The below formula is working fine:

=SUM(SUMIFS(YTD_GBP,Region,"Central Budgets",Cost_Desc,"Hardware",Non_Billable_Project,{"Non Billable","Central Budget"}))/1000

but if I try to add in a second criteria for Region, as below:

=SUM(SUMIFS(YTD_GBP,Region,{"Central Budgets","Corporate Services"},Cost_Desc,"Hardware",Non_Billable_Project,{"Non Billable","Central Budget"}))/1000

I get zeros.

But if I do two separate formulas and add them:

=(SUM(SUMIFS(YTD_GBP,Region,"Central Budgets",Cost_Desc,"Hardware",Non_Billable_Project,{"Non Billable","Central Budget"}))+SUM(SUMIFS(YTD_GBP,Region,"Corporate Services",Cost_Desc,"Hardware",Non_Billable_Project,{"Non Billable","Central Budget"})))/1000

View 5 Replies View Related

Match Multiple Criteria From Different Arrays

Apr 19, 2006

I'm trying to create a template that will be able to return a sales persons call target based on the category they sell and the current level they are. It works when I only ask it to look for one or the other, but I'm getting stuck trying to make it use both. I've attached a small sample. My original equation is as follows

=INDEX($C$2:$Q$51,MATCH($B2,$A$2:$A$51,0),MATCH(G$1,$C$1:$Q$1,0))

and this works perfectly fine. The problem I've now got is I need to add in a second criteria for setting the row_num. I've tried the following but I get a ref error. =INDEX($C$2:$Q$51,AND(MATCH($B3,$A$2:$A$51,0),MATCH(D3,$B$2:$B$51,0),MATCH(G$1,Telesales!$C$1:$Q$1,0)))

View 2 Replies View Related

COUNT On Three Criteria, But Using No Arrays Or Pivot Tables

May 17, 2009

I have a table which, when populated, gets huge. The example I am showing here is greatly simplified.

I need to be able to provide a summary report that shows a count of entries (rows) that meet either TWO or THREE criteria, and one of those criteria is date-based.

For the date-based option, I need two possibilities: 6 months ago, and 12 months ago.

In the attached example, then, I would need to see:

- How many entries were for Purchasing and were Complaints in the past 6 months? (answer should = 2)

- How many entries were for Shipping and were Complaints in the past 12 months (answer should = 2)

- How many entries were for Shipping and were Compliments in the past 12 months (answer should = 1)

And so forth.

Here's the rub. All of this can be done with array formulas, and an EDATE cell that calculates today's date -6 months, and one -12 months. The problem there is that there would be so many array formulas (I need to do a lot of permutations), plus utilizing the volatile TODAY(), that the sheet slows down DRAMATICALLY in calculation time.

Secondly, this is for a user that is not Excel savvy. So the solution not only should not slow the calculations down, or require them to set Excel to manual calculation, but it should also NOT use Pivot Tables. (Simple users are confused by pivot tables, sorry to say... and they are a heck of a thing to format nicely for the boss to look at.)

And, of course, we can't use VBA.... that will also confuse the client.

So I know the best answer lies in database functions. I just cannot figure it out.

View 11 Replies View Related

COUNTIF Formulas To Calculate Different Conditions

Apr 2, 2008

I am using =COUNTIF formulas to calculate different conditions. such as, calculating how much of one product do we have and how much is is received under 30 days. i want to combine those formulas in one cell to calculate two conditions in different columns.

1-So first i found out the date difference. I used =DATEDIF(Sheet1!C10,Sheet1!E10,"d")

2-Then I found out how many of one type do we carry, using the =COUNTIF.
=COUNTIF(Sheet1!J2:J3810,"DAZ")

3-That was easy, But now i have to sepereate them into 30 or less, 60 days or less, 90 days or less.
Then i used =COUNTIF(D2:D3810,"

View 9 Replies View Related

Slicing And Dicing CSV Files - Involves Arrays And Jagged Arrays

May 8, 2013

I am retrieving a CSV file from the net. In this file there are 'x' amount of row data and 7 columns. I only care about the values in the 7th column for each row. I also don't care about the entire first row. A graphical version would be represented something like this, with the values I want colored in orange:

|---,---,---,---,---,---,---|
|---,---,---,---,---,---,---|
|---,---,---,---,---,---,---|
|---,---,---,---,---,---,---|
|---,---,---,---,---,---,---|
|---,---,---,---,---,---,---|
|---,---,---,---,---,---,---|

.
. extending until the end of the data set
.

I've managed to dice this thing into a jagged array by first splitting it using vbLf as a delimiter, and therefore adding those to an array called Lines(). Then I split Lines() up using commas as the delimiter and threw those into a jagged array, let's call it Breadcrumbs()(). I want to throw all the values from Breadcrumbs(i)(6) into an array of its own. Here's my code so far:

Code:
Public Sub CSVparser(file As String)
Dim Lines As Variant
Dim j As Integer
Lines = Split(file, vbLf)
ReDim breadCrumbs(UBound(Lines)) As Variant
For i = 1 to UBound(Lines) - 1
breadCrumbs(i) = Split(Lines(i), ",")
Next i
End Sub

View 1 Replies View Related

Formulas Needed To Display Value If Two Conditions Apply

Sep 16, 2008

I need two formulas for my workbook. This is what the formula for Cell B6 needs to accomplish: I need Cell B6 to display what I have entered in Cell A6 but only if Cell A1 is greater than 1. This is what the formula for Cell C6 needs to accomplish: I need Cell C6 to display what I have entered in Cell A6 but only if Cell A1 is greater than 2.

View 2 Replies View Related

Multilookup Based On Multiple Criterion Without Using Arrays

Mar 6, 2009

Multilookup based on Multiple criterion without using Arrays
Dear Forum,

I am well aware of the oft-mentioned Array Solution which gives us more than one record based on mulitple criterion using the INDEX function..

the formula layout being as mentioned below:

[ ={INDEX(A2:A100,SMALL(IF((B2:B100=<Condtn 1>)*(C2:C100=<Condtn 2>),ROW(D2:D100)-ROW($D$2)+1),ROW($D$2:$D2))} ]

I like this formula a lot and have used it more often, however it has made my file exceedingly slow..

Considering that it takes every small change in the file to compute around 5 mins or more than this the whole purpose seems to be defeated, I have read a lot of posts on Array Vs Non-Array of late by DonkeyOte.

View 14 Replies View Related

Sum: Many Conditions-Criteria

Oct 28, 2006

I have recently started using formulas in Excel therefore cannot really crack this problem down. In my worksheet, I have a column (A2:A200) which stores dates starting from Jaunuary 1st 2006 to January 1st 2007. The second column (B2:B200) stores the expense type (i.e: Maintanence, gas, lease payment), and the third column (C3:C200) stores the amount spent on the given date and expense type. What I would like to do is to create a formula which calculates the amount spent on maintanence, gas, lease payment during January, February, etc:

View 2 Replies View Related

Frequency With Conditions / Criteria

Mar 6, 2008

I've tried to adapt a formula I've found in the forums. But the result comes back at a figure much lower than I expect.
I have a column of numbers (column J)that I would like the frequency of but only if the date contained in another column (column R) is beyond a certain date.

Columns J & R do contain blank cells.

This is my adaption: -

=COUNT(1/FREQUENCY(
IF('Current Bonds'!$R$13:$R$490>39173,
IF('Current Bonds'!$J$13:$J$490>0,'Current Bonds'!$J$13:$J$490)),
IF('Current Bonds'!$R$13:$R$490>39173,
IF('Current Bonds'!$J$13:$J$490>0,'Current Bonds'!$J$13:$J$490))))

View 8 Replies View Related

Minimum Value With 2 Conditions/Criteria

May 9, 2008

Really struggling with this one. Can't seem to figure this out on my own. I'm trying to populate a value from a table based on two given values. The first given value will be an exact match, and the next given value sholud fall within a range. In real life terms, given the category of a security and the months to the maturity date, I'm trying to return a percentage rate to use for another calculation. The rate is given in a Table (Column I in the attached). See attached for example

View 5 Replies View Related

Average Of Last X Cells With Conditions/Criteria

May 24, 2008

I have an excel sheet with different data columns (Column A = date, Column B = Production line, column C = total production of the line for the month, column D = complaints per milion). Within the same sheet Columns E through L have formulas and fucntions that uses Columns A thru D for calculation. Also every month a new row is added to the sheet, populating of course Columns, A, B, C and D and the other columns E thru L are populated automaticaly with the functions/formulas i have in place.

My question is within the same sheet I have 4 fixed cells I2, J2, K2 and J1. J2 and K2 depend on I2 and K2 values. Since my date changes every month (the inserion of new rows). I would like if someone can help me in how those cells I2 and K2 can be updated when i enter a value in Column C/ cell?? (??=next blank cell). I2 and K2 calucalates the averages of the last new 17 cells of columns H and L respectively.

So all i need is that cell I2 and K2 be updated automatically as soon as i add the new value in column C Example

This month
C22 = 12345 I2=Average(H5:H22) and K2=Average(L5:L22)
Next Month
C23=78901 I2=Average(H6:H23) and K2=Average(L6:L23)

So I type the input in column C everything is updated automatically. Again i dont know if i can do that with the if/offset, etc or if i need a macro.

View 5 Replies View Related

Copy Cells Meeting Conditions Or Criteria

May 7, 2007

We are trying to list only certain cells that have a specific conditional format- this is so we can copy them to another sheet
A filter does not really work for us since we have over 5 columns to search on and over 800 records

This is how excel says to find cells that have a conditional formatting (for example the scores are red because the student scored between 350 and 370: I tried it and it doesn't work--but maybe that is not how it is suppose to work?


To find cells that have conditional formatting settings identical to the settings of a specific cell, click the specific cell.
On the Edit menu, click Go To.
Click Special.
Click Conditional formats.
Do one of the following:
To find cells with any conditional formatting, click All below Data validation.
To find cells with identical conditional formats, click Same below Data validation.

View 4 Replies View Related

SUMIF Multiple Conditions (two Columns Match Criteria Add The Third)

Mar 17, 2009

Im trying to have a formula look at two diferent columns and if they meet the criteria add the third column.

I tried using sumproduct but It wont give me anything but error messages or a zero.

Looks like this
=SUMPRODUCT(A:A="Stewart",(G:G="Fiduciary"),C:C)

Need it to say:
if column A = Stewart and Column B = Fiduciary then add up the amount in Column C

View 9 Replies View Related

Countif Multiple Conditions: Look At Two Columns And Set A Criteria To Count

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

Countif Formulas With Multiple Criteria?

May 26, 2014

I need a formula to count cells E7:E500 that say "Submitted" but only if cells R7:R500 say "PPB".

My original formula below is counting all cells except for the ones that say "PPB"

=COUNT(IF(E7:E500="Submitted",IF(R7:R50="PPB",'E7:E500)))

View 3 Replies View Related

Multiple Criteria Filtering With Formulas

May 2, 2013

I have a database with 10 properties of a certain kind of material #.

IE: Material 1206 is Black, SG is 1.2, Duro is 70, Cure, tensile, price, etc.

I want a user to select 5 criteria from a drop-down list and have the 6th drop-down box populate available materials that meet the previous 5 criteria. I am trying to do this automatically and avoid user trying to autofilter (have to make it easy). I've extended the database out to show either a "0" or "1" if the 5 criteria match, but I can not get them into a drop-down list with a formula due to a #REF! error. I am not sure where the circular reference is coming from or what I have to do to change it.

View 1 Replies View Related

Conditional Format (with Formulas) 10 Cells Depending On 1 Criteria

Oct 19, 2009

I want to colour 10 cells (A1-J1) if I type in yes in cell K1. Using conditional formatting Im only able to colour 1 cell. Is this possible without using VBA?

View 5 Replies View Related

Sum Based On 2 Conditions

Dec 1, 2007

I want to have SUMIF and IF functions to be combined. i tried using the formula SUMIF( Timesheet!D2:D55,B2,Timesheet!F2:F55) but i want to edit the range everytime.
Can i have formula like if name = Ant merce and prj = Implementation support, then the sum will be 15 for the sumrange of Timesheet!F:F (entire F column)

View 4 Replies View Related

Link Data In Worksheets - Add / Deduct Formulas As Criteria Are / Aren't Met?

Dec 31, 2012

What can I do to link my worksheets together? I need the months to link from january to december.

I'm trying to come up with a system to maintain attendance of employees. How do I come up with a rolling system to add and deduct the points as their attendance changes? The goal of each employee is to have the least amount of points as possible, because he/she will be penalized once they receive a certain amount of points.

Let's say that Jane was hired in October. She has accumulated 10 points by December from tardies, call-ins, etc. By the end of January, she has perfect attendance; she is awarded half a point to be taken off toward her 10, giving her 9.5. In February, there is a day she does not show up, so now her total goes up to 12.5 (3 pointed added because of NCNS-no show no call). In March and April, she has perfect attendance, so now her total is 11.5. (half a point allowed for each month with perfect attendance)

By rolling, I mean a formula that will calculate continuously over month after month and have the points roll over month to month.

View 9 Replies View Related

VLOOKUP Based On Two Conditions?

Aug 16, 2013

My challenge is pulling in a data element from a file to an exisiting file based on two criteria.
Example: give me the value in cell e1 if cell b1 matches AND

File 1
A B C
1 H12377 03/05/2013 123
2 H12377 03/27/2013 276
3 H32389 05/03/2013 335

File 2
H12377 03/27/2013 _________

how do I get C2 value from file 1 (276) into file2 since column A is not unique but column A plus Column B is unique?

View 5 Replies View Related

Average Based On Conditions?

Jul 1, 2014

I have attached a file where there is information in the sheet Weekly with the first row showing the same month for several weeks. add a formula in the sheet Monthly which would calculate average for each month based on the first row in Weekly sheet. Plus the grouping in the Weekly sheet is done by shops and in the Monthly sheet by food, which would I imagine make the formula more complex.

View 5 Replies View Related

Lookup Based On A Few Conditions

Mar 13, 2008

I am wondering if I can do a formula that would tell me if the name that appears in column J or K appears more than once at the time/date slotted in columns A and B. Basically, I want to make sure that the name(s) in column J and K aren't assigned 2 different places at the same time slot (column B) on the same say (column A).

View 9 Replies View Related







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