EXCEL: Check for Multiple Values - excel

I'm trying to check for multiple values using the FILTER function. Here is my code:
=FILTER(Projects!$A$2:$P$51,Projects!$E$2:$E$51="Completed")
I would like to check for additional values besides Completed. Like, Canceled, or Review.
Additionally, if I could check for a portion of case-insensitive text like, "rev" that could help too.

Use ISNUMBER(MATCH(...))
=FILTER(Projects!$A$2:$P$51,ISNUMBER(MATCH("*"&Projects!$E$2:$E$51&"*",{"Completed","Canceled","Review"},0)))

FILTER used to return multiple criteria
In this case, we're using the multiplication operator (*) to return all values in our array range (A5:D20) that have Apples AND are in the East region:
=FILTER(A5:D20,(C5:C20=H1)*(A5:A20=H2),"")
Also you can have a detail look at the given link
https://support.microsoft.com/en-us/office/filter-function-f4f7cb66-82eb-4767-8f7c-4877ad80c759
Please see the image if you do not understand
https://support.microsoft.com/en-us/office/filter-function-f4f7cb66-82eb-4767-8f7c-4877ad80c759

Related

In Excel how can I use IF Function with more then 70 conditions or is there any other way to do that

I'm trying to add if function with more then 70+ conditions. How can I do that or is there any other way to do that? I'm sharing screenshot.
Please help.
You have the tendency to nest IF-clauses enormously. I would advise you to write the whole idea down and try to simplify it, as you can see from following example:
I have three cells ("F2", "G2" and "H2"), all can have two values ("Work" or "Home"), and I have created two formulas to calculate a result:
Formula1 : =IF(F2="Home","Home",IF(F3="Home","Home",IF(F4="Home","Home","Work")))
Formula2 : =IF(AND(F2="Work",F3="Work",F4="Work"),"Work","Home")
You see: "Formula1" is based on three nested IF-clauses, while "Formula2" only one.
Yet, both formulas yield the same result!

Define Status depending on Criteria

I have advanced Excel/Google Sheets skills. I have more of a conceptual question. I am happy with any solution (Excel or for Sheets, no difference for me).
I have a sheet where various coworkers have access and work with. It is used to define which product needs to go through which steps. Then when a part of a job is done, the status of the product is changed depending on criteria.
You can also think of it as projects and the status of a project.
The 3 examples shows how the data is input by the workers. Sometimes, the "No" cells are empty, sometimes they have a "No", sometimes for the same product, one criterion is empty, the other has a "No".
If I do a nested IF formula, I would have to create 32 of them (I believe, since its 5 criteria with each 2 options).
Obviously I can do that. I was wondering anyone has a better solution for me? Something more practical.
Thanks in advance!
Based on the data you've provided, it looks like your statuses are based on the number of Yes's in the input columns. Also you don't have a status shown for zero Yes's so I'll make an additional for that.
Given that assumption you can use a combination of the COUNTIF function (to count the Yes's), and the IFS function (to manage nested Ifs better) to drastically reduce the size of your function.
To make this cleaner I suggest you add a column and hide it containing: =COUNTIF([InputCriteria1to5Range],"Yes")
For the next formula assume the formula above is in B2. In your status column put the following:
=IFS(B2=5, Status1, B2=4, Status2, B2=3, Status3, B2=2, Status4, B2=1, Status5, B2=0, Status6)
Solution: Thanks to all for your help, I ended up firstly, creating ALL scenarios. This was actually the most complex part. See https://www.mrexcel.com/forum/excel-questions/654871-how-generate-all-possible-combinations-two-lists-without-macro.html (Answer from "Tusharm") where I had to repeat this process 5 times to have all possible outcomes. In the end, there were 192 combinations.
Then, I assigned a status for each combination.
Finally, for each product/row, I created another column where I concatenated the different criteria so that it looks exactly like my above combinations. Then finally index match the concatenated criteria to my combinations.

IF function with multiple conditions

I've been trying to figure this out for the past two hours. I need to create a nested IF statement based on this info. Here's the question:
Incentive: A dollar amount which is based on a percentage discount of the house price as indicated on the Data section of the spreadsheet. It's given only to selected customers complying with any of these conditions:
The house located in New Jersey, zone 2 and is a multiple dwelling.
The house located in California, zone1.
The house located in Florida, single unit.
And here's an image of the Excel provided:
This is what I currently have:
=IF(OR((B10="New Jersey", C10="2", D10="Multiple"), (B10="California", C10="1")), ($B$4*E10), "No"
Any help is appreciated. Thanks in advance!
=IF(OR(AND(B10="New Jersey", --N(C10)=2, D10="Multiple"), AND(B10="California", --N(C10)="1"),AND(B10="Florida", D10="Single")), ($B$4*E10), "No")
You need to:
include a ANDstructure
get the right datatype for your C column (is it number, or is it text)
As previously stated, the error lies in your logic structure. Try the below formula:
=IFERROR(IF(OR(AND($B10="New Jersey",TEXT($C10,"#")=2,$D10="Multiple"),AND($B10="California",TEXT($C10,"#")=1),AND($B10="Florida",$D10="Single")),$B$4*$E10,"No"),"Error!")
We start with the OR function inside the IF function because we want to check if any of the following conditions are true. We follow that with three separate AND functions, each one testing your parameters. Should one of these AND functions return true for each statement within it, you will get $B$4*$E10 as your value; otherwise, we return No. I chose to wrap this all up in an IFERROR so that you can capture any potential errors (should they occur).
Also, I handled for the potential "number-formatted-as-text" issue by converting it to a number within the calculation.

microsoft excel counting word based on condition and matcting

in column A there are some name like a,b,c,d (almost thousand) and in column B there are value either x/X or nothing.
now i want to count for name a how many x/X he has. note that may be user will use x or X(capital)
is it possible to use function. i tried this one SUM(IF(FREQUENCY(A1:A18,A1:A17)>0,(b1:b17=x or X )*1,0)) but not working. can any one guide me?
Sort the data see here and then apply SubTotals see here
EDIT
If you need to do it in code, the rudiments of the approach (using a different example can be found here.

Excel Serial If statements

I'm new to Excel, and I'm struggling with a formula. Essentially, what I'm looking for is to filter a cell through a set of procedures using a formula (this part isn't strict).
For example
Let's say I have a cell, A1. I'm trying to perform different calculations on this based on whether it is between a certain range of values. The problem is, it can be within several ranges.
Pseudo-Code representation
If(A1 > 187.5) {
// Run some code here.
}
If(A1 > 150) {
// Run some code here.
}
NOTE : The above example is only to illustrate the logic of sequential if statements.
Note that I Do not want a nested If statement. I'm just trying to run the same value through various checks. How do I do this in an Excel formula?
The best I can come up with is something like the following.
=(A1>187.5)*<some expression>+(A1>150)*<some expression>+....
The result of this will be some single value. (The straightforward way to get multiple values is to have the individual terms in separate cell.
If you want the result to reflect one among several mutually exclusive outcomes, then you would want to go with:
=(A1>187.5)*<some expression>+(A1>150)*(A1<=187.5)*...etc.
There are many ways to achieve this. One way is to use nested conditions like this:
=IF(Something, do something, IF(something else, do something, do something))
This is good if you want to condensate the formula a bit but arguably leads to more cluttered formulas. According to the FAST-Standard organization, those cases of nested conditions should be replaced by the use of flags. The most simple case would be, for example, where you would be looking for a rebate percentage according to a sales amount. In multiple cells you would have IF conditions evaluating to true only if the value matches that specific range. Then, your formula can be as simple as a SUMPRODUCT of your flags with your rebates percentages.
This is one example, but it can be applied to other cases very well too.
if there is a relationship between the numbers your checking for its very likely you can use
=CHOOSE(FLOOR(A1/160,1)+1,"<160",">160")
Which would put your 150 in the first and leave your 185 in the second

Resources