In Part 1 of our Excel IF function tutorial, we started to learn the nuts and bolts of the Excel IF function. As you remember, we discussed a few IF formulas for numbers, dates and text values as well as how to write an IF statement for blank and non-blank cells.

However, for powerful data analysis, you may often need to evaluate multiple conditions at a time, meaning you have to construct more sophisticated logical tests using multiple IF functions in one formula. The formula examples that follow below will show you how to do this correctly. You will also learn how to use Excel IF in array formulas and learn the basics of the IFEFFOR and IFNA functions.

In summary, there can be 2 basic types of multiple conditions - with AND and OR logic. Consequently, your IF function should embed an AND or OR function in the logical test, respectively.

- AND function. If your logical test contains the AND function, Microsoft Excel returns TRUE if
**all the conditions**are met; otherwise it returns FALSE. - OR function. In case you use the OR function in the logical test, Excel returns TRUE if
**any of the conditions**is met; FALSE otherwise.

To better illustrate the point, let's have a look at a few IF examples with multiple conditions.

Suppose, you have a table with the results of two exam scores. The first score, stored in column C, must be equal to or greater than 20. The second score, listed in column D, must be equal to or exceed 30. Only when both of the above conditions are met, a student passes the final exam.

The easiest way to make a proper formula is to write down the condition first, and then incorporate it in the logical_test argument of your IF function:

Condition: AND(B2>=20, C2>=30)

IF/AND formula: `=IF((AND(C2>=20, D2>=30)), "Pass", "Fail")`

Easy, isn't it? The formula tells Excel to return "Pass" if a value in column C >=20 AND a value in column D >=30. Otherwise, the formula returns "Fail". The screenshot below proves that our Excel IF /AND function is correct:

In practice, a seemingly correct IF / AND formula may result in an error because of this specificity. For example, the formula `=IF(AND(A2<>0,(1/A2)>0.5),"Good", "Bad")`

will return "Divide by Zero Error" (#DIV/0!) if cell A2 is equal to 0. The avoid this, you should use a nested IF function:

`=IF(A2<>0, IF((1/A2)>0.5, "Good", "Bad"), "Bad")`

You use the combination of IF & OR functions in a similar way. The difference from the IF / AND formula discussed above is that Excel returns TRUE if **at least one** of the specified conditions is met.

So, if we modify the above formula in the following way:

`=IF((OR(C2>=20, D2>=30)), "Pass", "Fail")`

Column E will have the "Pass" mark if either the first score is equal to or greater than 20 **OR** the second score is equal to or greater than 30.

As you see in the screenshot below, our students have a better chance to pass the final exam with such conditions (Scott being particularly unlucky failing by just 1 point : )

More formula examples can be found in Excel IF OR functon.

In case you have to evaluate your data based on several sets of multiple conditions, you will have to employ both AND & OR functions at a time.

In the above table, suppose you have the following criteria to evaluate the students' success:

- Condition 1: column C>=20 and column D>=25
- Condition 2: column C>=15 and column D>=20

If either of the above conditions is met, the final exam is deemed passed, otherwise - failed.

The formula might seem tricky, but in a moment, you will see that it is not! You just have to express two conditions as AND statements and enclose them in the OR function since you do not require both conditions to be met, either will suffice:

`OR(AND(C2>=20, D2>=25), AND(C2>=15, D2>=20)`

Finally, use the above OR function as the logical test in the IF function and supply value_if_true and value_if_false arguments. As the result, you will get the following IF formula with multiple AND / OR conditions:

`=IF(OR(AND(C2>=20, D2>=25), AND(C2>=15, D2>=20)), "Pass", "Fail")`

The screenshot below indicates that we've got the formula right:

Naturally, you are not limited to using only two AND/OR functions in your Excel IF formulas. You can use as many logical functions as your business logic requires, provided that:

- In Excel 2016, 2013, 2010 and 2007, your formula includes no more than 255 arguments, and the total length of the formula does not exceed 8,192 characters.
- In Excel 2003 and lower, you can use up to 30 arguments and the total length of your formula shall not exceed 1,024 characters.

If you need to create more elaborate logical tests for your data, you can include additional IF statements in the value_if_true and value_if_false arguments of your Excel IF formulas. These multiple IF functions are called **nested IF functions** and they may prove particularly useful if you want your formula to return 3 or more different results.

Here's a typical example: suppose you want not simply to qualify the students' results as Pass/Fail, but define the total score as "*Good*", "*Satisfactory*" and "*Poor*". For instance:

- Good: 60 or more (>=60)
- Satisfactory: between 40 and 60 (>40 and <60)
- Poor: 40 or less (<=40)

To begin with, you can add an additional column (E) with the following formula that sums numbers in columns C and D: `=C2+D2`

And now, let's write a nested IF function based on the above conditions. It's considered a good practice to start with the most important condition and make your functions as simple as possible. Our Excel nested IF formula is as follows:

`=IF(E2>=60, "Good", IF(E2>40, "Satisfactory", "Poor "))`

As you see, just one nested IF function is sufficient in this case. Naturally, you can nest more IF functions if you want to. For example:

`=IF(E2>=70, "Excellent", IF(E2>=60, "Good", IF(E2>40, "Satisfactory", "Poor ")))`

The above formula adds one more conditions - the total score of 70 points and more is qualified as "Excellent".

For more information about Excel IF with multiple conditions, please see How to use nested IF in Excel.

Like other Excel functions, IF can be used in array formulas. You may need such a formula if you want to evaluate every element of the array when the IF statement is carried out.

For example, the following array SUM/IF formula demonstrates how you can sum cells in the specified range based on a certain condition rather than add up the actual values:

`=SUM(IF(B1:B5<=1,1,2))`

The formula assigns a certain number of "points" to each value in column B - if a value is equal to or less than 1, it equates to 1 point; and 2 points are assigned to each value greater than 1. And then, the SUM function adds up the resulting 1's and 2's, as shown in the screenshot below.

Earlier in this tutorial, we've discussed a few IF formula examples demonstrating how to use the Excel IF function with logical functions AND and OR. Now, let's see what other Excel functions can be used with IF and what benefits this gives to you.

When discussing nested IF functions, we wrote the formula that returns different ranking (Excellent, Good, Satisfactory or Poor) based on the total score of each student. As you remember, we added a new column with the formula that calculates the total of scores in columns C and D.

But what if your table has a predefined structure that does not allow any modifications? In this case, instead of adding a helper column, you could add values directly in your If formula, like this:

`=IF((C2+D2)>=60, "Good", IF((C2+D2)=>40, "Satisfactory", "Poor "))`

Okay, but what if your table contains a lot of individual scores, say 5 different columns or more? Summing so many figures directly in the IF formula would make it enormously big. An alternative is embedding the SUM function in the IF's logical test, like this:

`=IF(SUM(C2:F2)>=120, "Good", IF(SUM(C2:F2)>=90, "Satisfactory", "Poor "))`

In a similar fashion, you can use other Excel functions in the logical test of your IF formulas:

**IF and AVERAGE:**

`=IF(AVERAGE(C2:F2)>=30,"Good",IF(AVERAGE(C2:F2)>=25,"Satisfactory","Poor "))`

The formulas retunes "Good" if the average score in columns C:F is equal to or greater than 30, "Satisfactory" if the average score is between 29 and 25 inclusive, and "Poor" if less than 25.

**IF and MAX/MIN:**

To find the highest and lowest scores, you can use the MAX and MIN functions, respectively. Assuming that column F is the total score column, the below formulas work a treat:

MAX: `=IF(F2=MAX($F$2:$F$10), "Best result", "")`

MIN: `=IF(F2=MIN($F$2:$F$10), "Worst result", "")`

If you'd rather have both the Min and Max results in the same column, you can nest one of the above functions in the other, for example:

`=IF(F2=MAX($F$2:$F$10) ,"Best result", IF(F2=MIN($F$2:$F$10), "Worst result", ""))`

In a similar manner, you can use the IF function with your custom worksheet functions. For example, you can use it with the GetCellColor / GetCellFontColor functions to return different results based on a cell color.

In addition, Excel provides a number of special IF functions to analyze and calculate data based on different conditions.

For example, to count the occurrences of a text or numeric value based on a single or multiple conditions, you can use COUNTIF and COUNTIFS, respectively. To find out a sum of values based on the specified condition(s), use the SUMIF or SUMIFS functions. To calculate the average according to certain criteria, use AVERAGEIF or AVERAGEIFS.

For the detailed step-by-step formula examples, check out the following tutorials:

- How to use the COUNTIF in Excel
- Using Excel COUNTIFS and COUNTIF with multiple conditions
- SUMIF in Excel - formula examples to conditionally sum cells
- How to use Excel SUMIFS and SUMIF with multiple criteria

You already know a way to spot blank and non-blank cells using the ISBLANK function. Microsoft Excel provides analogous functions to identify text and numeric values - ISTEXT and ISNUMBER, respectively.

Here's is example of the nested Excel IF function that returns "Text" if cell B1 contains any text value, "Number" if B1 contains a numeric value, and "Blank" if B1 is empty.

`=IF(ISTEXT(B1), "Text", IF(ISNUMBER(B1), "Number", IF(ISBLANK(B1), "Blank", "")))`

Sometimes, you can achieve the desired result by embedding the IF statement in some other Excel function, rather than using another function in a logical test.

Here's another way how you can use the CONCATINATE and IF functions together:

`=CONCATENATE("You performed ", IF(C1>5,"fantastic!", "good"))`

I believe you hardly need any explanation of what the formula does, especially looking at the screenshot below:

Both of the functions, IFERROR and IFNA, are used to trap errors in Excel formulas and replace them with another calculation, predefined value or text message. In earlier Excel versions, you can use the IF ISERROR and IF ISNA combinations instead.

The difference is that IFERROR and ISERROR handle all possible Excel errors, including #VALUE!, #N/A, #NAME?, #REF!, #NUM!, #DIV/0!, and #NULL!. While IFNA and ISNA specialize solely in #N/A errors.

Here is the simplest example of the IFERROR formula:

`=IFERROR(B2/C2, "Sorry, an error has occurred")`

As you see in the screenshot above, column D displays the quotient of the division of a value in column B by a value in column C. You can also see two error messages in cells D2 and D5 because everyone knows that you cannot divide a number by zero.

In some cases, however, you may not want to trap all errors, but rather test the condition causing a specific error. For example, to replace a divide by zero error with your own message, use the following IF formula:

`=IF(C2=0, "Sorry, an error has occurred", B2/C2)`

And that's all I have to say about using the IF function in Excel. I thank you for reading and hope to see you on our blog next week!

Excel formulas
Excel functions
Vlookup in Excel
Merge data in Excel
SumIf
Excel CountIf
Excel Compare
Excel If statement
Excel Charts
Pivot Table
Updates
Excel conditional formatting
Excel formatting
Excel time
Excel duplicates
Excel date
Excel tips
Excel macro
Outlook
Google Sheets
Outlook duplicates
Outlook templates

## 1,791 Responses to "Excel IF statement with multiple AND/OR conditions, nested IF formulas, and more"

Hi,can you write a formula for the follow these question for me,

IF cell A1 = JENNIFER then value will be 2000

IF cell C1 is less than 40 multiply it by 2

IF cell C1 is grreater than or equal to 40 but less than 100, then multiply it by 4

Hi Everybody,

I have a problem in if function with following conditions:

1. I have 4 words in C3, C4, C5 & C6 and each word has condtion 1 and otherwise condition 2 if not returns false

2. I want to add both conditions againt each word in a single formula

I.e. if(C3="a", condition 1, condition 2, if(C3="b", condition 1, condition 2, if(C3="c", condition 1, condition 2, if(C3="d", condition 1, condition 2))))

But it does not help me out.

Requested to please help me in this regards

Waiting

if(C3="a", condition 1, if(C3="b", condition 1, if(C3="c", condition 1, if(C3="d", condition 1, condition 2))))

I'd like to create a formula for a calculation:

Up to $100,000 total price, the cost is $5.75 per $1,000 of price.

Above $100,000 total price, the cost is $575 plus $5.00 per $1,000 of price.

Thank you!

I wish to know how to use IF formula for conditions as under:

1: M-W:I/II T-S:III/IV =1

2: M-W:I/II =.5

3: M/T:I W/T:II F/S III =1

4: M/T:I =.5

Hi

I have three suppliers like A B C,the three suppliers given material price ,i should format three column now i want least supplier name in new column, how to i calculate this format in excel

Hi,

I am trying to convert to date format from column A "20190520" to column B "05/20/2019"

please advise. Thanks in advance.

highlight column, click "text to columns" in the data tab. Then bubble in delimited, click "next" twice, bubble in Date and use "YMD" in the dropdown and click finish.

Hi Friends,

Could you help me with the below example.

if we have 1000 in one column which is splitted in many values in another column with 20000, how to total only 10000.

In the below example you may see, for each day, we have same amount in two columns but these amount are splitted in third column, how can we match these. Any suggestions.

Example:

Monday 1000 2000 500

Monday 1000 2000 500

Monday 1000 2000 500

Monday 1000 2000 500

Monday 1000 2000 500

Monday 1000 2000 250

Monday 1000 2000 250

Tuesday 2900 1100 750

Tuesday 2900 1100 750

Tuesday 2900 1100 600

Tuesday 2900 1100 500

Tuesday 2900 1100 500

Tuesday 2900 1100 450

Tuesday 2900 1100 450

Wednesday 1500 2500 750

Wednesday 1500 2500 750

Wednesday 1500 2500 1000

Wednesday 1500 2500 1000

Wednesday 1500 2500 250

Wednesday 1500 2500 250

Thurday 2250 2750 1000

Thurday 2250 2750 750

Thurday 2250 2750 250

Thurday 2250 2750 2000

Thurday 2250 2750 1000

Friday 8450 1550 450

Friday 8450 1550 550

Friday 8450 1550 2000

Friday 8450 1550 3000

Friday 8450 1550 1000

Friday 8450 1550 1000

Friday 8450 1550 2000

Please help.

use sumif formula for that.

I have two Special Handling Codes one is 6YU and another 6ZO

We have 3 customers

6YU APD SHENZHEN DK INC, ASIAN POWER DEVICES INC

6ZO SENERGY TECHNOLOGY(SHENZHEN)CO.,LTD

If I choose 6YU SPH answer should be either this APD SHENZHEN DK INC, or this ASIAN POWER DEVICES INC customer

If I choose 6ZO SPH answer should be SENERGY TECHNOLOGY(SHENZHEN)CO.,LTD

Can you please help me out of this by using IF formula

Hello, i have a something to ask. :)

What will be my formula if I will write

Always and on the other column and it will automatically respond "5"?

Example:

Always - 5

Most of the Time 4

Sometimes - 3

Seldom - 2

Never - 1

Hello Can someone please help me. I need to trun this formula to a 4 clause insted of 3

=IF(D274>31.99,"5%",IF(AND(D274>=20,D274<=32),"3%","0%"))

I need to change it to...

0$ to 24.99 0%.... 25 to 34.99 3%...... 35 to 41.99 5%.... 42+ 8%

hi, i am trying to write a formula for the following:

1) if R49 is less then 1825 days then M49*50% and if R49 is greater then 1825 days then M49*100%.

2) and if between these two so pick 50% and 100% Proportionate basis.

Kindly help

Hi

i am new to excel but i want the value in a cell to be either 7 or 12

Hi

I have question if the condition as follow then how the if formula will be transit

If the total portfolio is 600000 and the condition say that

From 0 - 300000 you get $1.5/1000 then

From 300001 - 500000 you get $2/1000 then

Above 500001 you get $2.5/1000.

For example if I bring total portfolio $600,000 then for first $ 300,000 I will get (300000/1000*1.5) = 450. Then rest $100,000 I will get (100000/1000*2) = 200 and last $100,000 I will get (100000/1000*2.5) = 250. So total I get = 450 + 200 + 250 =900. How can I do the above in if statement?

Hi,

i want to convert sign of calculation values like in one cell i have these values "=-4896.71-190+3613.39+90+5086.71" and i need "=+4896.71+190-3613.39-90-5086.71" how i change their signs.

Thanks in advance

Add 10000 if 1.98% of the principal is greater than 2000 if not less 1000

Hi kindly help me to do this.

I have a value in Cell A1. I needs to do that When I type "Yes" in cell A2 then the value of A1 shows as a result in Cell A3.

Hi kindly help me to do this.

I have a value in Cell A1. I needs to do that When I put value as "Yes" in cell B1 then the cell C1 pick the value of cell A1 automatically. And if I put value as "No" in cell B1 then the cell C1 pick 0 as a value automatically.

In cell C1 enter the following:

If(b1="Yes",a1,if(b1="No",0))

Thanx alot....

hi, i am trying to use OR & AND operator in the following condition but it is not working so please help me in writing the formula

conditions

if (A1>0), A1*5*100, OR (B1>0), B1*100 AND (A1>0,B1>0),A1*5*100+B1*100, and if (C1>0) add 0 to previous result or if (D1>0), add 0 and if (C1>0,D1>0) add 0 to the above result

i tried many times to write the formula by myself but still error message is showing. please kindly help me

with regards

singh

Hi, I am trying to write a formula for the following:

Cell A1 is a Number ranging between 0 & 400. I want Cell A3 to display the following:

If Cell A1 is between 0 - 99 = "Text 1"

If Cell A1 is between 100 - 249 = "Text 2"

If Cell A1 is 250+ = "Text 3"

I can make it work for Text 1 & Text 2 but adding a third, breaks the formula...

If anyone can help me with this, that would be great.

Thanks,

Ash

IF(AND(A1>=0,A1=100,A1=250,"TEXT 3","")))

Im trying to put values based on country... But I want to be able to change them in one worksheet and they reflect in another... Now is there a way I can make a command/statement which can make excel automatically add a row or column in another worksheet if I input a new country that was not originally specified??

Hi Svetlana

Need your help and guidance to solve the following problem

I have set of 85 readings of at test done on a unit taken from DAQ (Data acquisition system), and i have populated in a table in excel. Now i need to insert a condition in the cell, specifying that if any five consecutive readings taken from the 85 readings surpasses number "100" than the test is failed , if no five consecutive readings surpasses number "100" than test is " Passed"

Hope the above info is enough for you to solve the problem.

Best Regards

Aditya

Can someone help me write a formula that searches a list of data to see if the word Holiday is in there, if it is it sums all the other data together except that cell. If it doesn't find the word then it sums all the data in the column. If all cells are empty it returns an empty cell.

Thanks

Hi, can someone help me to create formula according to below condition??

Table 1

Type>> 6-800 6-500 6-100 6-200

Item<<

Book $10.00 $15.00 $- ??

Table $100.00 $- $200.00 ??

Copy $5.00 $10.00 $30.00 ??

Pen $7.00 $8.00 $- ??

Pencil $2.00 $3.00 $- ??

Paper $1.00 $2.00 $5.00 ??

Table 2

Item Type Price

6-800 Book $10.00

6-800 Table $100.00

6-800 Copy $5.00

6-800 Pen $7.00

6-800 Pencil $2.00

6-800 Paper $1.00

6-500 Book $15.00

6-500 Copy $10.00

6-500 Pen $8.00

6-500 Pencil $3.00

6-500 Paper $2.00

6-100 Table $200.00

6-100 Copy $30.00

6-100 Paper $5.00

6-200 Book $100.00

6-200 Pencil $50.00

6-200 Paper $10.00

I want the formula which will fill the Table 1 with data from Table two.

Condition are if Type & Item from Table 1 matches with single column(Item Type) of Table 2 than return value form Price column.

Thank you,

I have a question if I have

A1 = keep the change

B1 = 0.50

I would like a formula for whenever I have keep the change it's will always give me the next cell reference for example in Sheet 2. A1 = same and B1 = equal the same number. What formula should I use to get that. Please let me know thanks.

I trying to apply the if formula but i was failed every time please help me out.

my concern is that i need if value is less than 12000 than i get result 2% of value otherwise get 25% .please give me solution

HOW DO I AUTOMATICALLY COLOR A CELL BASED ON THE FIRST 2 LETTERS OF A TEXT?

Use conditional formatting and format rule if text start with

I have been trying to nest an IF formula with 5 rage but 6 of them are not working out. Please let me know if you have the same issue.

=IF(H104>15,"E",IF(H104>11,"D",IF(H104>8,"C",IF(H104>4,"B", "A"))))

Vlookup Table

1-3

4-7

8-10

11-14

15+

Thanks

I want to write a formula:

If column B2 is higher than 10000 and lower than 20000, put 100 in column c2

Hi Laya,

Here goes the formula for C2:

=IF(AND(B2>10000, B2<20000), 100, "")

I need to get the formula for below

I have 3 scenario's as below

1 Night = $ 8.5

2 Night = $ 17

3 Night & Above = $ 22

My report comes with the number of nights guest stayed I want to to pick the total amount if guest stayed for 1 night then to pick $8.5, if for 2 nights then $ 17 and if for 3 night& above $22

Kindly help with suitable formula for C=A-B but should not exceed 15000

Hi Praveen,

And if A-B exceeds 15000, what is a C cell to display?

I have a complex if statement to create a dashboard that I need to amend to use data from other worksheets. When I select 'Cats' or 'Dogs from the drop down, the relevant information SHOULD be displayed in the dashboard 'feed plan' eg:

=IF(AND($J$1"All Pets",$J$1Q4),0,OFFSET(Cats!$B$1,'feed plan'!$I3,'feed plan'!J$3))

Where 'All Pets' and 'Cats' are tables. I want to update this to use the data in table 'Dogs'. Every time I change 'Cats' to 'Dogs in the IF..statement the information in 'feed plan' that should stay as 'cats' is updated with 'Dogs'. What am I doing wrong?

Hi,

I have different currency rates which I want have an IF function to link the correct rate to a different tab depends on what currency on that tab is. Below is my example

CAD USD

FX Rate 1.3036 1.1198

If my next tab currency is CAD, I would like the rate for it to automatically equal 1.3.36, otherwise, it will be 1.1198.

Can someone help me with a formula for it?

Thanks in advance

Please help me.

In two different rows with two columns. The first column (A) will contain the value and the next column (B) will contain the calculated value (formula). A formula has been entered in the first row of the second column (B1) and it has been extended down to the second row (B2) using the fill handle tool. (Say if A1 is 50, a student has "passed", and if not the student has "failed"). No values have been entered in either of the cells that should contain the data. By this the cells containing the formula will show "failed" since no value has been entered in the columns containing the the data.

I want a formula if I enter a value in A1, it will show the results in the next column but the whole row of row 2 containing any data should go off/clear off including the calculated results "failed".

How would I combine these 3 formulas

Basically I need to look at the amount in B5 and if it's greater than 98 return 200.00 if between 90-97 return 100.00 and if under 90.00 return 0.00

I have the 3 separate formulas but can't seem to get them into one formula.

IF(B5>98%,"200.00",0)

IF(AND(B590%),"100.00","-")

IF(B5<90%,"0.00",0)

A1, C1, E1 and G1 >=1 IF TRUE RESULT "PASS" IF FALSE RESULT "FAIL"

B1, D1, F1 and H1>=1 IF TRUE RESULT "PASS" IF FALSE RESULT "FAIL"

EACH CELL MUST >=1 SO PASS, IF ONE OF THEM 0 RESULT "FAIL"

Please help me. How can I solve the problem?

=IF(SUBTOTAL(6,A1:H1)=0,"FAIL","PASS")

Need some help, have been trying to figure this out for awhile. How would a formula look:

If a cell has 1 it would be $7 if more than 1 $6?

need some help

=if(A1=1,7,6)

Sir,

I have question.

Suppose there are 3 columns in excel. If column-1 contains data or value, then column-3 will be column B*10% either B*15%.

I need assistance with the formula.

Eg:

If I write "Pass"in Cell J2 then I need Cell J3 updated with number value like "5"

How would I write the IF statement for the following? Or maybe it's something else.

Sheet 1.

Column A (name)

Jay

Sam

Grant

Dave

Column B (LVL)

Cell B2 = 1

Cell B3 = 3

Cell B4 = 2

Cell B5 = 3

Column C (Stage)

Cell C2 = 1

Cell C3 = 3

Cell C4 = 2

Cell C5 = 3

Column D (Price)

Cell D2 = 500

Cell D3 = 300

Cell D4 = 350

Cell D5 = 10,000

I need to pull this data to another sheet (Sheet2), Sheet2 has three results; Column A-Name B-Safe (LVL and Sage =1), C-Commit (LVL and Stage =2), D-longshot (lvl and Stage = >3)

If LVL and Stage equal 1, then I need row B Safe.

If LVL and Stage are 2 then put D in Sheet2 Column C (Commit), if the Stage is not equal to 2 Than the results in C a placed in Longshot.

My issue is pulling the Price (Column D)

Any help would be great.

Thanks,

Jay

If a column has values as A2=product price,A3=Service price,A4=List Price and A5=Contract Type 1, A6=Contract Type 2,A7=Contract Type 3.What is the formula to populate Pricing as a value in cloumn B2,B3,B4 & Contract as a value in column B5,B6,B7.

Hi There,

I have a drop down list of expense types and if a user selects the 'mileage' option and types in the number of miles into the cell next to it, I would like the following cell to multiply the number of miles by a second drop down list selection (0.58 or 0.32 - federal mileage rates if you're wondering). I have both drop downs built out but cannot figure out how to only have that formula apply when mileage is selected. Thank you in advance for your help!

Best,

Kasey

Hi

I need a formula to return the number in Max Count A4 if the value is >=5 and D4 in my Data sheet is 1, if its less that 5 or the value in Data sheet is 0 i need my formula to return 0, but if the value is >1440 regardless of the value in Data sheet D4 then i need it to return NA.

I've tried using the below formula but it just returns everything as NA.

=IFS(AND('Max Count'!A4>=5,Data!D4>= 1,'Max Count'!A4<=1440),'Max Count'!A4, 0,"NA")

Thanks

I have a formula that is nested and gives me a result based on a number from another sheet. Essentially, I have a fill down to row 300 because of the varying imported figures. Ideally, a fill down to end would be best. My problem is that a default is carrying down and looks horrible. My column 'C' has end to complete it, so a fill down to "END" in "C" would help otherwise can you tweak this formula to be blank when "c" and "d" are empty?

=IF(AND(ISNUMBER(C8),ISNUMBER(D8)),IFS(Timecard!U7=1,12,Timecard!U7=2,14,Timecard!U7=3,11,Timecard!U7=4,11.5,Timecard!U7=5,11,Timecard!U7=6,19,Timecard!U7=7,12.5,Timecard!U7=8,15),11)

Much thanks in advance.

Dave

Hi Please help. I need a formula that says. If the A1 is less than 100 then populate 100 but if A1 is higher than 100, take A1 and times it by 1.5 and populate the answer. I have the first part as it is true or false, but how do I get the formula to calculate the answer to the last condition?

Hi, is there any formula that I can use with this data?

Ana Rose Jen Least Value

20 10 40

I want to get the least value among the three but the return value in column 4 should be the name.

Thanks

Hi Rose,

Assuming the names are in A1:C1 and the numbers in A2:C2, the following formula will work a treat:

=INDEX($A$1:$C$1,MATCH(MIN(A2:C2),A2:C2,0))

i need help if i have three column A B c and i want if C have exact value such "yes" copy value of the row to the second sheet in the same row

I need to match data on first three column with the data on the column on the right and if all three data matches it should print Y or N. I used a formula using if condition [=IF((A:A=J:J)*(B:B=K:K)*(C:C=L:L),"Y","N")] but however the formula only works if the data in both column are in same row.

Kindly help me how to find if Funtion for using more than 15 conndition

H7 When a 1st document is Submitted under the Document column, the Status column will show Latest

H8 New revision of a same document is Submitted and the previous Status should shows Supersede

H9 When a document is being registered but not yet submitted is shows Not Submitted and the Status column should be just blank

Please show me how to have multiple conditions formula under 1 cell (The Status Cell)

How to write a formula for the following

Please help

IF SHEET2 COLUMN B VALUE = SHEET1 COLUMN B VALUE AND (ITS) SHEET1 COLUMN D VALUE= POSTED OR HOLD THEN COLUMN C VALUE ADDED TO COLUMN H of Sheet2

IF SHEET2 COLUMN B VALUE = SHEET1 COLUMN B VALUE AND (ITS) SHEET1 COLUMN D VALUE= DELIVERED OR TRANSIT THEN COLUMN C VALUE ADDED TO I of Sheet2

how to use if function with 2 conditions and blank cells also.

Good Afternoon;

I'm having issues creating a formula to calculate & differentiate between columns.

My first column consists of Regular hours worked, Overtime @ 1.5 & Overtime @ 2.0.

All 3 types of hours worked are combined in the same column.

The column to the right of it has all the total values. Ex: Regular Hours Worked - 8Hrs, Overtime @ 1.5 - 4, Overtime @ 2.0 - 1.

How can I create a formula that will differentiate between the type of hours worked & then calculate the hours accordingly?

I need to split up the total hours for each of my employees by Regular Hours Worked, Overtime @ 1.5 & Overtime @ 2.0.

Any help with this would be greatly appreciated.

Thanks in advance

I am interested in using the IF/AND function with multiple arguments on text, but can't seem to get this to work.

Column H Column I Column J

Classification Level Approved

EX 1 Yes

PM 5 Yes

AS 2 No

EC 6 Yes

MD-MOF 3 Yes

IF column H = EX and Column I = 1,2 or 3 then Column J = Yes

If column H = PM and Column I = 5 or 6 then Column J = Yes

If column H = EC and Column I = 6 or 7 then column J = Yes

If column H = MD-MOF and Column I = 3 then column J = Yes

Anything else in column H or I then column J = No

I'm stumped... any help is appreciated.

First make a table array that have EX, PM, EC, 1, 2, 3, etc...

A1 B1

EX1 Yes

EX2 Yes

=IFERROR(VLOOKUP(G19,$E$18:$F$25,2,FALSE),"No")

First make a table array that have EX, PM, EC, 1, 2, 3, etc...

A B C D E F

1 EX1 Yes =D1&E1 Input Input =IFERROR(VLOOKUP(C1,$A$1:$B$8,2,FALSE),"No")

2 EX2 Yes (EX,PM etc,)(1,2,6 etc.)

3 PM5 Yes

Etc....

I Need a formula to calculate, 3 late marks a 1 half day & 6 late marks as 2 half days & 9 as 3 half days

Hi,

Could you help with a formula like below?

• If Andi 1-20, multiple number by 4

• If Andi 21-40, multiple number by 8

• If Andi 41-60, multiple number by 10

• If Andi 61-80, multiple number by 12

Thank you!

=C6*IFERROR(VLOOKUP($C$6,$A$6:$B$85,2,),"")

Hi!

I have a file that has a complicated formula that I cannot solve. How can I send it to you to check and correct please?

how to get the output of a certain input when the output of that planning sheet depends upon several inputs in excel

hi...i badly need a help for the following criteria

what formula to write for the following...

to display pass

1.(if a student get 1 credit (50-100 marks) AND 5 passes (40-49) INCLUDING ENGLISH which can be either in the credit or the pass

2.if a student get 2 credits and 3 passes including english which can be either in credit or pass

Hi

I need help For this Formula.

Total Point.

How to used (I used it before long time more than seven years)

Total point Score

=if(H16="A",4*G$14,(if(H16="AB",3.5G$14,(if(H16="B",3*G$14,(if(H16="BC",2.5*G$14,(if(H16="C",2*G$14,(if(H16="CD",1.5*G$14,(if(H16="D",1*G14,(if(H16="E",0.5*G$14,0)))))))))))))))

=IF(H16="A",4*G$14,(IF(H16="AB",3.5*G$14,(IF(H16="B",3*G$14,(IF(H16="BC",2.5*G$14,(IF(H16="C",2*G$14,(IF(H16="CD",1.5*G$14,(IF(H16="D",1*G14,(IF(H16="E",0.5*G$14,0)))

I have a 3 data entry fields. I want a warning to print if anyone enters in more than 1 of the data fields. When I had 2 fields, it worked. This is the formula I have written for the 3 fields. However, it only prints the warning if there are entries in the first 2 fields. If there is an entry in either of the first 2 fields and the third field, the warning isn't printing.

=if(and(a2>0, a3>0, a4>0),"Choose one", "")

Help! Thanks!

Enter this formula in cell B2 =A2>0

Enter this formula in cell B3 =A3>0

Enter this formula in cell B4 =A4>0

Then use this formula

=IF(COUNTIF(B2:B4,"TRUE")>1,"Choose one","")

Hi,

I hope you will be able to help me.

I have a data - column with dates and times and the second column with values OPEN or CLOSE.

I need to find a formula to help me calculate time in between values ( please see below example of my data)

Date Formatted Value

30/07/2019 07:37 Open

30/07/2019 07:27 Open

30/07/2019 07:17 Open

30/07/2019 07:12 Closed

30/07/2019 07:02 Closed

30/07/2019 06:52 Closed

30/07/2019 06:43 Open

30/07/2019 06:33 Open

30/07/2019 06:23 Open

30/07/2019 06:13 Open

30/07/2019 06:03 Open

30/07/2019 05:53 Open

30/07/2019 05:43 Open

30/07/2019 05:33 Open

30/07/2019 05:23 Open

30/07/2019 05:13 Open

30/07/2019 05:03 Open

30/07/2019 04:53 Open

30/07/2019 04:43 Open

30/07/2019 04:33 Open

30/07/2019 04:24 Closed

30/07/2019 04:14 Closed

30/07/2019 04:09 Open

30/07/2019 03:59 Open

30/07/2019 03:49 Open

30/07/2019 03:47 Closed

30/07/2019 03:37 Closed

Function Date & Time

FALSE FALSE

FALSE FALSE

Open 30/07/2019 07:17:00

FALSE FALSE

FALSE FALSE

Closed 30/07/2019 06:52:00

FALSE FALSE

FALSE FALSE

FALSE FALSE

FALSE FALSE

FALSE FALSE

FALSE FALSE

FALSE FALSE

FALSE FALSE

FALSE FALSE

FALSE FALSE

FALSE FALSE

FALSE FALSE

FALSE FALSE

Open 30/07/2019 04:33:00

Thank you !

Hey I am trying to make a condition of if value yes then it will multiply first set of logical conditions but if value is "no" then it will multiply by other set of values

=IF(OR(D1="yes",D1="no"),IF(A1=10,A1=100, 1*S1))),IF(A1=10,A1=100, A1*1))))

It does calculate the first set of conditions correctly but ignores the "or" condition

Please Help! Thanks!

for whatever reason the message is not full

=IF(OR(D1="yes",D1="no"),IF(A1=10,A1=100, 1*S1))),IF(A1=10,A1=100, A1*'S1))))

Basically the condition set is that

for whatever reason the message is not full

IF(OR(D1="yes",D1="no"),IF(A1=10,A1=100, 1*S1)))

,IF(A1=10,A1=100, A1*'S1))))

I have a report with list of BOMs in excel format and I'd like to make use of nested if function to work out usage of each component under each BOM. What is the best nested if or best way to compute the usage of each component of each BOM?

Below example of the report

Product Order Order Line Qty

KitA 1234567 1.1 200

Component 1 1234567 1.1..1 200

Component 2 1234567 1.1..2 400

Component 3 1234567 1.1..3 600

Component 4 1234567 1.1..4 200

Component 5 1234567 1.1..5 400

Component 6 1234567 1.1..6 800

KitB 1234568 1.1 300

Component 1 1234568 1.1..1 600

Component 2 1234568 1.1..2 300

Component 3 1234568 1.1..3 900

KitA 1234569 1.1 100

Component 1 1234569 1.1..1 100

Component 2 1234569 1.1..2 200

Component 3 1234569 1.1..3 300

Component 4 1234569 1.1..4 100

Component 5 1234569 1.1..5 200

Component 6 1234569 1.1..6 400

I am trying to add time to a cell depending on a number in another cell. Formula I have is =IFS(F10=1,H10+TIME(4,0,0),F10=2,H10+TIME(48,0,0),F10=3,H10+TIME(72,0,0),F10=4,H10+TIME(432,0,0))

I am only getting a result when F10 is 1. If I change F10 to 2 it defaults to the same time already stated in cell H10. What am I missing from this?

I need help to create a formula to cover below logic

if cell H8 contains ..1, W8/W7, if cell H8 contains ..2, W8/W6, if cell H8 contains ..3, W8/W5, if cell H8 contains ..4, W8/W4,if cell H8 contains ..5, W8/W3, if cell H8 contains ..6, W8/W2, otherwise W8/W1

Apparently, there is a problem with the formula below

=if((H8="*..1"),W8/W7,if(H8="*..2"),W8/W6,if(H8="*..3"),W8/W5),if(H8="*..4"),W8/W4,if(H8="*..5"),W8/W3),if(H8="*..6"),W8/W2,if(H8="*..7"),W8/W1,W8/W8))

Pls help.

Thank you

Try this

=IF(IFERROR(FIND("1",H8),0)>0,W8/W7,IF(IFERROR(FIND("2",H8),0)>0,W8/W6,IF(IFERROR(FIND("3",H8),0)>0,W8/W5,IF(IFERROR(FIND("4",H8),0)>0,W8/W4,IF(IFERROR(FIND("5",H8),0)>0,W8/W3,IF(IFERROR(FIND("6",H8),0)>0,W8/W2,IF(IFERROR(FIND("7",H8),0)>0,W8/W1,W8/W8)))))))

I have tried it, works correctly.

Thanks

Please tell me the formula for Student teacher ratio

one teacher is required for 40 students and same 2 teacher is required for 90 students and then 3 teachers are required for 120 students and in addition to it on each 40 student one teacher is required

Hi, I know this is probably simple but its driving me crazy. Column E is:Date Submitted and Column A is # of days out (or item not returned).

=IF(AND(E3>0,A30,A3-E3&"R",""))

How can I find the average score of best six subjects including English as a must regardless of the score using excel

Average of best six excluding zeros in an array of tests but English is must take subject in excel

I've 3 worksheet

1st for final calculation with a fix column number,

2nd for changeable data (each column will be known by sl number) and

3rd for fix data (here only one column so no need number).

I want to auto calculate by changing the calculation sheet fix column number.

my test formula for you:

=if(and(sheet1!$a$1=sheet2!$b$2,(sheet2!b5-sheet2!b10-sheet2!b15+sheet3!b5)>0),sheet2!b5-sheet2!b10-sheet2!b15+sheet3!b5,0)

for fix column no 1; it's working well but if i add more like this

=if(and(sheet1!$a$1=sheet2!$b$2,(sheet2!b5-sheet2!b10-sheet2!b15+sheet3!b5)>0),sheet2!b5-sheet2!b10-sheet2!b15+sheet3!b5,0,if(and(sheet1!$a$1=sheet2!$c$2,(sheet2!c5-sheet2!c10-sheet2!c15+sheet3!b5)>0),sheet2!c5-sheet2!c10-sheet2!c15+sheet3!b5,0))

it does not work, and it shows a message as: You've entered too many arguments for this functions.

please help me.

hi

can someone tell me the formula of

I have a column of the target and a column of actual. and the max score is define

for example if my target is 5 and I have achieved say 4 and the max score I can get is 15

so i will like 4/5*15 = 12 but if i have achieve more than target how could i restric the ans to 15 only

Good Afternoon.

I have an issue here that I want help on. In Column A I have 10 options and in Column B I have 2 dorp down Options. Based on selection in Column A and B, Column C returns an answer however I want my Column C to have a drop down where I limit individuals to chose between those drop down options. The drop down options in Column C should be formula driven. (e.g. IF in Column A I have "Left Over" and in column B I have "Non-Usable", in Column C I should have a drop down of 4 options), bare in mind that my options in 8.