# Excel nested IF statement - multiple conditions in a single formula

The tutorial explains how to use multiple IF in Excel and provides a couple of nested If formula examples for most common tasks.

If someone asks you what Excel function you use most often, what would your answer be? In most cases, it's the Excel IF function. A regular If formula that tests a single condition is very straightforward and easy to write. But what if your data requires more elaborate logical tests with multiple conditions? In this case, you can include several IF functions in one formula, and these multiple If statements are called Excel Nested IF. The biggest advantage of the nested If statement is that it allows you to check more than one condition and return different values depending on the results of those checks, all in a single formula.

In modern versions of Excel 2016, Excel 2013, Excel 2010 and Excel 2007, you can nest up to 64 IF functions in one formula. In Excel 2003 and lower, up to 7 nested IF functions can be used.

Further on in this tutorial, you will find a couple of Excel nested If examples along with the detailed explanation of their syntax and logic.

## Example 1. Classic nested IF formula

Here's a typical example of Excel If with multiple conditions. Supposing you have a list of students in column A and their exam scores in column B, and you want to classify the scores with the following conditions:

• Excellent: Over 249
• Good: between 249 and 200, inclusive
• Satisfactory: between 199 and 150, inclusive
• Poor: Under 150

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

`=IF(B2>249, "Excellent", IF(B2>=200, "Good", IF(B2>150, "Satisfactory", "Poor")))`

And works exactly as it should:

### Understanding Excel nested IF logic

I've heard some people say that Excel multiple If is driving them crazy :) Try looking at it at a different angle:

What the formula actually tells Excel to do is to evaluate the logical_test of the first IF function and, if the condition is met, return the value supplied in the  value_if_true argument. If the condition of the 1st If function is not met, then test the 2nd If statement, and so on.

IF(check if B2>=249, if true - return "Excellent", or else
IF(check if B2>=200, if true - return "Good", or else
IF(check if B2>150, if true - return "Satisfactory", if false -
return
"Poor")))

## Example 2. Multiple If with arithmetic calculations

Here's another typical task: the unit price varies depending on the specified quantity, and your goal is to write a formula that calculates the total price for any amount of items input in a specific cell. In other words, your formula needs to check multiple conditions and perform different calculations depending on what amount range the specified quantity falls in:

 Unit Quantity Price per unit 1 to 10 \$20 11 to 19 \$18 20 to 49 \$16 50 to 100 \$13 Over 101 \$12

This task can also be accomplished by using multiple IF functions. The logic is the same as in the above example, the only difference is that you multiply the specified quantity by the value returned by nested IFs (i.e. the corresponding price per unit).

Assuming the user enters the quantity in cell B8, the formula is as follows:

`=B8*IF(B8>=101, 12, IF(B8>=50, 13, IF(B8>=20, 16, IF( B8>=11, 18, IF(B8>=1, 20, "")))))`

And the result will look something similar to this:

As you understand, this example demonstrates only the general approach, and you can easily customize this nested If function depending on your particular task.

For example, instead of "hard-coding" the prices in the formula, you can reference the cells containing those values (cells B2 to B6). This will enable your users to edit the source data without having to update the formula:

`=B8*IF(B8>=101,B6, IF(B8>=50, B5, IF(B8>=20, B4, IF( B8>=11, B3, IF(B8>=1, B2, "")))))`

Or, you may want to include an additional IF function(s) that fixes an upper, lower or both bounds of the amount range. When the quantity is outside the range, the formula will display an "out of the range" message. For example:

`=IF(OR(B8>200,B8<1), "Qty. out of range", B8*IF(B8>=101,12, IF(B8>=50, 13, IF(B8>=20, 16, IF( B8>=11, 18, IF(B8>=1, 20, ""))))))`

The nested IF formulas described above work in all versions of Excel 2016 -2000. In Excel 2016 that is part of Office 365 subscriptions, you can use the IFS function for the same purpose.

Advanced Excel users that are familiar with array formulas, can use this formula that basically does the same thing as the nested IF function discussed above. Though the array formula is far more difficult to comprehend, let along to write, it has one indisputable advantage - you specify the range of cells containing your conditions rather than referencing each condition individually. This makes the formula more flexible, and if your users happen to change any of the existing conditions or add a new one, you will only have to update a single range reference in the formula.

## Excel nested IF - tips and tricks

As you have just seen, there is no rocket science in using multiple IF in Excel. The following tips will help you improve your nested IF formulas and prevent common mistakes.

### Nested IF limits

In Excel 2016 - 2007, you can nest up to 64 IF functions. In older versions of Excel 2003 and lower, up to 7 nested IF functions can be used. However, the fact that you can nest a lot of IFs in one formula doesn't mean you should. Please keep in mind that each additional level makes your formula more difficult to understand and troubleshoot. If your formula has too many nested levels, you may want to optimize it by using one of these alternatives.

### The order of nested IF functions matters

The Excel nested IF function evaluates the logical tests in the order they appear in the formula, and as soon as one of the conditions evaluates to TRUE, the subsequent conditions are not tested. In other words, the formula stops after the first TRUE result.

Let's see how it works in practice. With B2 equal to 274, the nested IF formula below evaluates the first logical test (B2>249), and returns "Excellent" because this logical test is TRUE:

=IF(B2>249, "Excellent", IF(B2>=200, "Good", IF(B2>150, "Satisfactory", "Poor")))

Now, let's reverse the order of IF functions:

=IF(B2>150, "Satisfactory", IF(B2>200, "Good", IF(B2>249, "Excellent", "Poor")))

The formula tests the first condition, and because 274 is greater than 150, the result of this logical test is also TRUE. Consequently, the formula returns "Satisfactory" without testing other conditions.

You see, changing the order of IF functions changes the result:

### Evaluate the formula logic

To watch the logical flow of your nested IF formula step-by-step, use the Evaluate Formula feature located on the Formula tab, in the Formula Auditing group. The underlined expression is the part currently under evaluation, and clicking the Evaluate button will show you all the steps in the evaluation process.

For example, the evaluation of the first logical test of the nested IF formula shown in the screenshot below will go as follows: B2>249; 274>249; TRUE; Excellent.

### Balance the parenthesis of nested IF functions

One of the main challenges with nested IFs in Excel is matching parenthesis pairs. If the parentheses do not match, your formula won't work. Luckily, Microsoft Excel provides a couple of features that can help you to balance the parentheses when editing a formula:

• If you have more than one set of parentheses, the parenthesis pairs are shaded in different colors so that the opening parenthesis matches the closing one.
• When you close a parenthesis, Excel briefly highlights the matching pair. The same bolding, or "flickering", effect is produced when you move through the formula by using the arrow keys.

### Treat text and numbers differently

When building logical tests of your nested IF formulas, remember that text and numbers should be treated differently - always enclose text values in double quotes, but never put quotes around numbers:

Right: =IF(B2>249, "Excellent",…)

Wrong: =IF(B2>"249", "Excellent",…)

The logical test of the second formula will return FALSE even if the value in B2 is greater than 249. Why? Because 249 is a number and "249" is a numeric string, which are two different things.

### Add spaces or line breaks to make nested IFs easier to read

When building a formula with multiple nested IF levels, you can make the formula's logic clearer by separating different IF functions with spaces or line breaks. Excel doesn't care about extra spacing in a formula, so you may not worry about mangling it.

To move a certain part of the formula to the next line, just click where you want to insert a line break, and press Alt + Enter. Then, expand the formula bar as much as needed and you will see that your nested IF formula has become much easier to understand.

## Alternatives to nested IF in Excel

To get around the limit of seven nested IF functions in Excel 2003 and older versions and to make your formulas more compact and fast, consider using the following alternatives to nested Excel IF functions.

1. To test multiple conditions and return different values based on the results of those tests, you can use the CHOOSE function instead of nested IFs.
2. Build a reference table and a use VLOOKUP with approximate match as shown in this example: VLOOKUP instead of nested IF in Excel.
3. Use IF with logical functions OR / AND, as demonstrated in the these examples.
4. Use an array formula like shown in this example.
5. Combine multiple IF statements by using the CONCATENATE function or the concatenate operator (&). A formula example can be found here.
6. For experienced Excel users, the best alternative to using multiple nested IF functions might be creating a custom worksheet function using VBA.

This is how you use an If formula in Excel with multiple conditions. To have a closer look and probably reverse engineer the formulas, you are welcome to download the sample Nested If Excel worksheet. I thank you for reading and hope to see you on our blog next week.

### 294 Responses to "Excel nested IF statement - multiple conditions in a single formula"

1. Rohan Singh says:

HI Sventana,

Thanks for another aspect of Nested if Function. Really nice and useful Information. Expecting some Detailed Article on CF,Data Validation,Offset,Index Match. Great JOB

• Hi Rohan,

Thanks for your feedback! I covered some of these topics a while ago, but hopefully you will still find the information useful:

2. carwell says:

Dear Svetlana,

I need your help. I have a training matrix that that has different training clumns and different dates.

for example Company Induction that will be valid for three years. Cell value is 9-Aug-16. i want to highlight it will expire after 3 years.

if it is 9-Aug-13 it is also expire

This goes to all training dates with different validity.

i have prepare the formula-=IF(G7=K 14,F11,E20), =IF(G7=K15,F11,E21), =IF(G7=K16,F11,E22) incell E20 TO E22; BUT THE SUM OF THE VALUES FROM THESE FORMULA NOT DISPLAY & A MESSAGE IS DISPLAYED" careful we have found one or more circular reference in your work book that might cause your formula in correctly"

• Hello Sunil,

The reason why you get this error is that you are trying to get value from the same cell where you enter the formula. Please replace E20 in the formula or describe what you are trying to achieve in more detail, I'll do my best to assist you.

i have created the formula"=IF(G7=K15,L15,IF(G7=K16,L16,IF(G7=K17,L17,IF(G7=K18,L18,IF(G7=K11,L11,IF(G7=K12,L12,IF(G7=K13,L13,IF(G7=K14,L14))))))))" in ceel H9;BUT FOR MORE THAN 8 CONDITION THIS NOT WORK; WHAT TO DO SOLVE THIS PROBLEM.

I am not sure what you want to acomplish but usually if you need more then 3 ifs thats mean you are doing something wrong.

also lets say K17 = K19 it will return K19 because its first if that doesent matter then use:

=VLOOKUP(G7;K11:L18;2;0) just change your range that best serves you

if same values are problem then:

=IF(COUNTIF(K11:K18;G7)>1;"MORE THEN ONE";IF(COUNTIF(K11:K18;G7)<1;"NO MATCHES";VLOOKUP(G7;K11:L18;2;0)))

5. Aqeel Bin Ishaq says:

I have more than one number in the same column and between each number there is a empty cell .. what I need is to repeat the number between each number using excel formula .. please send me the formula that will help in adding the field that are not showing between two number cause I have a big data and need to add the formula also I wanted the system to check using if in case that possible .. will Waite for your reply as soon as possible .. appreciate your assistant..

I will be very glad if you can send me the formula in me email

Lets say in B1 is your value
then in B3 =IF(LEN(B1)>0;B1;"")

6. aslinah says:

A B C
12345 10
12345 20 #NAME?
12345 LTP 30

IF COLUMN A same value, take column B as a return . answer should be '30'.

7. Fanteri says:

Hi
I am new in excel.
I have question, if I have 2 columns (column a and b), each column has negative and positive value. How can I sum if the condition is "show sum of column a and b if either column a or b are negative"?

Thank you

• Hi Fanteri,

Here is the formula you can use:
=IF(OR(\$A1<0,\$B1<0),SUM(A1,B1),"")

It says "if either value in A1 or B1 is less than 0, then sum values in A1 and B1, otherwise show a blank cell". Copy it down the column where you enter the formula to get the results for each row.

I hope this helps.

8. Aisha Buroughs says:

I have suppliers, who sell to me the same products at different prices, different lead times for those different products and different account payable dates.

I need to make a comparison between them and make a choice on who has better terms using excel.how can I go about it?

Thank you.

9. Julius says:

hi. someone help me with my item analysis please.

when f15 is within 0.26-0.75 and h15 is above 0.20 the value returns to "retained"

when f15 is not within 0.26-0.75 and h15 is below 0.20 the value returns to rejected

• ReMind says:

In the cell G17 (or where you want) insert this formula:

=IF(AND(F15>=0.26,F15=0.2),"retained",IF(AND(F15=0.75,H15<=0.2),"rejected","N/A"))

If you want to change N/A with something else, be my guest.

• ReMind says:

Sorry!

=IF(AND(F15>=0.26,F15=0.2),"retained",IF(AND(F15=0.75,H15<=0.2),"rejected","N/A"))

• ReMind says:

O, thats is impardonable:
The formula is:
=IF(AND(F15>=0.26,F15<=0.75,H15#=0.2),"retained",IF(AND(F15<=0.26,F15#=0.75,H15<=0.2),"rejected","N/A"))

Replace # with "greater" sign

10. ReMind says:

Sorry 2!

=IF(AND(F15>=0.26,F15<=0.75,H15>=0.2),"retained",IF(AND(F15<=0.26,F15>=0.75,H15 sign (First H15 and forth F15)

• Julius says:

thanks a lot God bless (^_^)

11. Rajat says:

Hi,

First of all I would like to congratulate you for this wonderful site and all your efforts for making using excel much more easier than it used to be. I had started working on excel in my teens and learned a lot but you all are able to surprise me with the new ways you mentioned to tackle the issues or the innovative uses of formulas.

now coming to the point, i am having difficulty in analysing some data for my report.i have a report which states a specific purchase order code with the quantity in the very next column but the supply is being received in parts. so the system application plots all the receipt against the very same order. but when the report of the same is exported in excel, it repeats the order and quantity against every receipt thus no general formula could be used to just subtract the receipt form order and the data spread over thousands of rows so manual calculation is impossible.

for example:
Column A states order no XX/1*12
Column B states Quantity demanded to be 10000.00
Column C states the receipts in the tune of 300,1500,2500,700 & 4500.
Thus the balance should be 500 but since the values of Column A and B repeats, simple subtraction comes as 9700, 8500, 7500, 9300 & 5500 respectively for the balance quantity.

Can you suggest any possible formula or a set of formulas to derive the balance quantity after considering every aspect.

• ReMind says:

Try VLOOKUP formula in addition with others.
If you send to me a sample from your report (not real names or prices or quantities) I will try to hel you.
my e-mail remindfwd[at]gmail[dot]com

12. Julius says:

hi again.
mr remind the formula you gave doesn't work.

please give me the true formula.
this is the problem.

if F15 is within 0.26-0.75 and H15 is above 0.20 the value returns to "retained"

if F15 is within 0.26-0.75 and H15 is below 0.20 the value returns to "revised"

if F15 is not within 0.26-0.75 and H15 is above 0.20 the value returns to "revised"

if F15 is not within 0.26-0.75 and H15 is below 0.20 the value returns to "rejected"

• ReMind says:

Julius,
remindfwd[at]gmail[dot]com
I solved your formula, but is better to comunicate by e-mail.

• ReMind says:

=IF(AND(0.26<F15<0.75,H15#0.2),"retained",IF(OR(AND(0.26<F15<0.75,H15<0.2),AND(0.26#F15#0.75,H15#0.2)),"revised",IF(AND(0.26#F15#0.75,H15<0.2),"rejected","N/A")))

Replace # sign with "greater" sign.

Is working?

13. Bill says:

Bill says:
February 1, 2017 at 7:34 am
3 Range : Time, Value A, Value B

Triger : “>=7”

condition : between A and B, who reach 7 first in period of time 1 to 6, then win.

*Eq 1 : in a period of time show by range Time 1 to 6, A hit 7 first before B. then, “A WIN“

Time | A | B | A WIN

1 | 1 | 2 |

2 | 5 | 2 |

3 | 7 | 4 |

4 | 5 | 5 |

5 | 4 | 6 |

6 | 3 | 7 |

*Eq 2 : in a period of time show by range Time 1 to 6, B hit 7 first before A. then, “B WIN“

Time | A | B | B WIN

1 | 1 | 2 |

2 | 5 | 7 |

3 | 7 | 4 |

4 | 5 | 5 |

5 | 4 | 6 |

6 | 3 | 2 |

Please help me how to make this formula, its been 3 days im trying but i still cant figure it out,

By: Bill

• ReMind says:

=IF(AND(A2>=1,A2=7),"Awin",IF(AND(A2>=1,A2=7),"Bwin",""))

For search first instance of Awin or Bwin try VLOOKUP formula.
If you have time value (not 1 to 6 values) use TIMEVALUE formula.

• raagul says:

=IF(B2=7,"A",IF(C2=7,"B","NIL")) formula for ist query A win same way for the next one too have a Nice day

14. Sonika says:

Hi Dear, I m user of excel I have a data in row A and row B .I want to find what data are same in both the row.please let me know the formula for the same

• ReMind says:

=A1=B1
That is. The result into cell C1 will be "TRUE" or "FALSE"
True if A1=B1, false if A1 not equal B1.

Or this formula:
=IF(A1=B1,"EQUAL","")
It is show "EQUAL" if A1=B1, and "" (nothing) if A1 not equal B1.

15. murthy says:

I need a formula in excel for the below.
A1 contains some value and B1 contains Text A, B, C, D
Formula should do the following:
if B1 is A then check the following A1 is greater than 5 but less than 10 it should return 10, if A1 is greater than 10 should return value in A1, if A1 is less than 5 should return 5, if B1 is B then check the following A1 is greater than 5 but less than 10 it should return 8, if A1 is greater than 10 should return value in A1, if A1 is less than 5 should return 5

How can you put the formulae in excel? Can any body explain

• ReMind says:

A...fine
B...fine
What if C or D?

If you want to do nothing when B1 is C or D, then formula yo use is:

=IF(B4="A",IF(AND(A4>5,A4<10),10,IF(A4#10,A4,IF(A4<5,5,"N/A"))),IF(B4="B",IF(AND(A4#5,A4<10),8,IF(A4#10,A4,IF(A4<5,5,"N/A")))))

Replace # with "greater" sign.

If B1 contain C or D, then the result is FALSE.

16. HG says:

Hi

I've been trying to use nested formula to return a specific cost if an item is referred to in one column. Do you know why it might be returning my value as false (ie blank) if I am using the following formula just because the criteria isn't contained within the first bracket? For some reason if the first bracket is true it is fine but anything else it just shows as blank?

=CONCATENATE(IF(C5="Napoleon","£1000",""),IF(C5="Sussex","£2000",""),IF(C5="Townhouse","£3000 ",""),IF(C5="GO","£4000",""))

• HG says:

Actually managed to solve the one above but was wondering if it would be possible to do the formula

=IF(D2="PM",(IF(C2="Napoleon","£5000",""),IF(C2="Sussex","£3500",""),IF(C2="Townhouse","£2500 ",""),IF(C2="GO","N/A",""),IF(C2="DDR","COST","")),(IF(C2="Napoleon","£2500",""),IF(C2="Sussex","£2500",""),IF(C2="Townhouse","£1500 ",""),IF(C2="GO","N/A",""),IF(C2="DDR","COST","")))

Where I'm trying to say if D2= PM "Value if true as a nested if formula", "value if false as a nested if formula"

17. Candace says:

Hi, I have a formula as follows: =IF((B2="N")*AND(ISNUMBER(I2),I2>=0,I2<=6000),LOOKUP(I2,{0,996,1996,2996,3996,4996,5996},{" ","\$50.00","\$100.00","\$150.00","200.00","250.00","300.00"}),"-")

This works fine when B2=N, but I want the same ISNUMBER formula to run if B2 also = L. I can't figure out how to include both "N" and "L" in the same formula.

Any help appreciated!

18. TW says:

Looking for help. I have a list of zipcodes. I need a formula that says "TRUE" in the cell if the zipcode is one on the list. "FALSE" if not. Zipcodes for "TRUE" below.
98002
98003
98007
98023
98030
98031
98032
98047
98055
98056
98057
98101
98102
98104
98106
98107
98108
98109
98118
98121
98122
98125
98126
98133
98144
98146
98148
98168
98178
98188
98198

My normal If/Than does not seem to do the trick?

• Abrans Garcia says:

Your best bet is to create a table as your datasource of zipcodes and then use the VLookUp to compare the zip codes vs what is in your table.

=If(Vlookup(yourzipcodecellhere,Table,1,0)=yourzipcodecellhere,)

Need help for the following:

I have % age values in a table according to each process weight-age.The start process "A" has 2% wtage, Process "B" has 25% wtage and so on till Delivery process "G" indicating 100% as %age of work comppleted.

The Problem
My excel has each tabs for respective process and a column as "completed date"I have a summary tab for Areawise status in which only the last completed process(ie completed date) percentage should be displayed.

Any help would be appreciated.
Thanks

20. vivek kumar says:

hello sir. i hav a problem and unable to shortout.

can i use if condition for sellected range of coloumn ..

i.e.
IF (A1=(B1:B8), "true","False")

it is not corretct because the range is not accepted by if condition.
how can i do this
is there any other method to resolve this

• Vikram says:

Try this.
=If(A1=SUM(B1:B8),"True","False")

21. Chris Clark says:

Dear sir

I have a sheet where i want to count if column J(month = Jan or feb mar .....) column N = g(Green = good y = possible r = bad)add column D( Value in currency)

Thanks

22. Lillian says:

Dear sir,
i have the formula written already to calculate the contribution of a staff:

=IF(A1<7100,0,IF(A1<30000,A1*5%,1500))

Which A1 is the income.

but first i need to see if the start date of this staff to an end date is = 2 full months, if yes, then calculate the above, if not, then no need to calculate and contribution =0.
how can i add this criteria to the above formula? Thanks!

23. Paul Edwards says:

Good morning and congrats on a wonderful site.

I'm currently running a sheet where I need to identify training dates. I have lets say column B which has the dates of training expiry dates for staff members. I want Column C to read Column B and if the date has not passed already then "Yes" to display, if it has already expired, then "No". Unfortunately Column B is reading from another sheet so some of the dates are #N/A. I want the IF formula to return "No" if they have a #N/A value too.

I currently have =IF(B2>TODAY(),"Yes",IF(B2="#N/A","No","No"))

=IF(AND(G4="A",G5="Below 75"),C4*1.708%,IF(AND(G4="A",G5="76-150"),C4*1.708%),IF(AND(G4="A",G5="151-350"),C4*1.793%))
This formula is not working.Plz help!!

=IF(AND(G4="A",G5="Below 75"),C4*1.708%,IF(AND(G4="A",G5="76-150"),C4*1.708%),IF(AND(G4="A",G5="151-350"),C4*1.793%))

This formula showing "Too many Arguments"
Plz help

26. BHISHAM PAL says:

solve my this problam IF TIME IS GRATER THEN AND LESS THEN
=IF(D14-B14>TIME(6,0,0),IF(D5>=10000,"120/-250/-",IF(D5>=6600,"96/-200/-",IF(D5>=5000,"84/-180/-",IF(D5>=3000,"72/-160/-",IF(D5>=1300,"60/-130/-",IF(D14-B14=10000,"250",IF(D5>=6600,"200",IF(D5>=5000,"180",IF(D5>=3000,"160",IF(D5>=1300,"130"))))))))))))

27. A says:

Hi, i have the following task: This sheet lists items of clothing and accessories, whether or not it is on clearance, and whether or not it is on sale. Items with a “Sales Discount” greater than zero are “on sale”. Items that are both on clearance and on sale get a total discount of 50%. Otherwise, the sale discount is the total discount. Have Excel calculate the total discount for each item.
The data provided for this is:
Clearance Sale Discount
yes 25%
yes 10%
no 10%
no 0%
no 0%
yes 15%
no 5%
yes 0%
no 20%
yes 5%

I need a formula that will provide an answer in % in a 3rd column. I believe it should show either 0%, 50% or the percent in the Sale Discount column. The answer has to take into consideration 4 criteria:
1. Clearance "yes", Sale Discount >0%
2. Clearance "yes", Sale Discount =0%
3. Clearance "no", Sale Discount >0%
4. Clearance "no", Sale Discount =0%

I'm struggling with the IF function as i keep getting errors, or not displaying a %. I'm also struggling with criteria #3, how to make the Sale Discount % appear in column 3.

28. Db says:

hello,

thank you for all of the input on this site. Very helpful. I am trying to analyze a series of cells and determine the average of those cells. There are only (4) cells in total, but they only show a value higher than zero once a full week has been completed.
i.e.
cell b34 week 1 65%
cell b97 week 2 45%
cell b160 week 3 0% (week not completed yet)
cell b223 week 4 0%,(week not completed yet)

this statement will not work due to too many arguments, but this is what i'd like to achieve.
=IF(B97>0,AVERAGE(B34,B97),B34,IF(B160>0,(AVERAGE(B34,B97,B160)),AVERAGE(B34,B97),IF(B223>0,(AVERAGE(B34,B97,B160,B223,B34)),AVERAGE(B34,B97,B160)))))

Anytime it sees a zero value, skip the rest of the weeks and only use the weeks with % already calculated as part of the monthly average. The trouble i'm having is that if I use a nested if statement, it seems to only function when referencing a single cell. does anyone have any suggestions please?

29. Christina says:

Hi there! I'm not sure if this is the correct formula for what I need, but I need a formula that will return a number based on text conditions. For example, if cell A1 reads "Y" or "N/A" I would like the formula to return a 0 value in cell B1. If neither of those conditions are true, I would like B1 to return the numerical value of cell C1.

For context, I am using this to calculate how much use tax I owe. If I paid sales tax on an item or the transaction was not subject to sales tax, then I do not owe additional use tax on it. However, if I did not pay sales tax on the item, I now owe use tax on the full amount of the transaction.

Thanks!

• Hi Christina,

You can use the following formula for B1:

=IF(OR(A1="Y", A1="N/A"), 0, C1)

30. dharma says:

if formula with 3 conditions

1- Below Rs,15000 - Rs 0/-
2- 15001 TO 19999 - Rs.150/-
3- Rs20000 - Rs.200/-

31. Felicia says:

I need to write a "what if" statement for a column that has both numbers & text. For example 79953A, 81012B, 85023C
I want the numbers ending with A to read A Crew in a new column, B to read B Crew and C Crew.
Can I do a "what if" statement to figure out how many A's, B's & C's?

Any information you can give me would be greatly appreciated. Thank you.

• Hi, Felicia,

you can try the following:

if your data starts in A1, then to return "A/B/C Crew" to B column use the formula below:
=IF(RIGHT(A1,1)="A", "A Crew", IF(RIGHT(A1,1)="B", "B Crew", IF(RIGHT(A1,1)="C", "C Crew", "")))

To count their amount use COUNTIF in column C:
=COUNTIF(B:B,"A Crew")
where B:B is a column with returned values and "A Crew" counts A appearances. To count "B Crew" and "C Crew" copy and change COUNTIF formula respectively.

32. Abrans Garcia says:

Conditions with Multiple Cells, is there a way to clean this up a bit. I'm new to Excel and used your concept to create this monstrosity.

=IF(IF(H352=J352,(IF(J352=L352,(IF(L352=N352,"Valid","Invalid")),"Invalid")),"Invalid")="Not In SAP","Invalid","Valid")

The concept is using 4 cells that have returned a specific value and if they have all returned a specific value and are all the same = "Valid", if one cells is different than the rest = "Invalid".
Thank you

33. Zeeshan says:

Hi,
I want formula that can identify a first 3 or 4 numbers and automatically associate them with location. e.g
809 to Scotland
779 to London
If I put a customer order numbers in Column A : It should automatically show their location in column B by identifying 1st 3 numbers
Column A Column B
8095625 Scotland
8096524 Scotland
7796532 London
8096524 Scotland

34. Erly says:

I am trying to get actual budget variance percentage but with an if statement. If actual amount is less than budget then do budget amount minus flex amount divided budget amount and if actual amount is greater than budget amount then do flex amount minus budget amount then divided budget amount. hope this makes sense.

thank you.

• Hi, Erly,

Assuming that
A1 – actual amount, B1 – flex amount, C1 – budget, and you want to see the result in E1, type the next formula into E1:
=IF(A1C1,(B1-C1)/C1,""))

Note, that it misses the condition when the actual amount is equal to budget amount, and in this case the function leaves the cell blank.

35. Tim says:

Hi, came across this great resource and got partly through problem but not all the way. Trying to find a value based on multiple conditions in a chart.

Here is what I have so far.
=IF(and(P2>=60,=98,=123,=148,=175,<=198),"Varsity")))))

Basically looking at a cell value and determining which group if fits in. based on the value input. The input values could be anything between 60 to 200.

Thank-you!

• Hi, Tim,

if you want to return 'Varsity' when the number in the cell falls between 60-200, you can try this:
=IF(AND(P2>=60, P2<=200), "Varsity", "")

36. Tim says:

Hi, post cut off. Here is the formula I am trying to fix.

=IF(and(P2>=60,=98,=123,=148,=175,<=198),"Varsity")))))

Thanks!

37. marian says:

i want time calculate help as iam not able to get exact time

38. marian says:

How to add calendar date and time in excel pzl help me

39. Tency says:

hi, if statement e value 0.61 same cell tee value 1.58 below mentioned formula false showing =IF(K91="E",IF(L91=25,0.61,IF(K91="T",IF(L91="25",1.58))))

40. Yb sahoo says:

HI...
Need help for..

If some value has decimal number then I need the next round number.

i.e:- 1.2=2 (1.2 should be shown me by rounding up 2)
4.9=5 (4.9 should be shown me by rounding up 5)

• Hi,
try using ROUNDUP function:
for example, if A1 contains '1.2':
=ROUNDUP(A1,0)

41. sabrin says:

Hi

I have 1,2,3,4,5 numbers in 5 different cells and i need to put one number in cell at one time, if i put 2 different number i need to mark with message, pls help me in this regard

42. Ismail says:

=IF(D3<VALUE("0:05"),0,IF(D3<VALUE("0:15"),1,IF(D3<VALUE("0:30"),2,IF(D3<VALUE("0:60"),3,IF(D3<VALUE("4:00"),4,15)))))
I have tried the above formula and got the following:
Assign Points Based on Late Time
Start Actual Late By Late Points
8:00:00 AM 7:55:00 AM 0:05 15.00
8:00:00 AM 8:05:00 AM 0:05 15.00
8:00:00 AM 8:07:00 AM 0:07 15.00
8:00:00 AM 8:35:00 AM 0:35 15.00
8:00:00 AM 9:35:00 AM 1:35 15.00
8:00:00 AM 12:15:00 PM 4:15 15.00
8:00:00 AM 2:45:00 PM 6:45 15.00
8:00:00 AM 10:00:00 AM 2:00 15.00
8:00:00 AM 9:20:00 AM 1:20 15.00
8:00:00 AM 7:45:00 AM 0:15 15.00
8:00:00 AM 12:20:00 PM 4:20 15.00
8:00:00 AM 7:15:00 AM 0:45 15.00

what is wrong with this?

43. serah101 says:

Hi, I need help in making multiple arguments using if function. I would like to make something like this IF(A1=6 AND B2=SS THEN 7 OTHERWISE 14, AND IF A1=7 AND B2=SS THEN 8 OTHERWISE 16 AND IF A1=8 AND B2=SS THEN 9 OTHERWISE 18)

44. serah101 says:

or better yet lets put it this way:

"if a1=1 and b1=6 then 7 otherwise 14 and if a1=1 and b1=7 then 8 otherwise 16 and if a1=1 and b1=8 then 9 otherwise 18."

this is the formula that I'm trying to use:
=if((and(a1=1,b1=6)),”7”,”14”),if((and(a1=1,b1=7)),”8”,”16”),if((and(a1=1,b1=8)),”9”,18”)))

45. Bhakti says:

18.49,18.50,18.51,19.00,18.54,18.52,19.00,18.52,18.53,18.59,18.57,18.57, 18.53,18.53,19.01,18.51,18.56,18.49,18.49,18.53,18.49,18.50

I can find duplicate values but cant replace it with another value.

can u pls help me on this

46. Yasir says:

Guys I have a problem to solve as follows:
Column A is weight as 1,2, 3..n & column B is rate as €1, 2,3.
To look for a value upto 25 kg I can use vlookup. But the problem is above 25 kg the rate is calculated as follows: upto 25 kg €100 and for next 20 kg € 2 per kg and for next 40 or more €4 per kg. I want a formula by which entering a particular weight in a cell the total rate is found. Please help me with this. TIA

47. Maila Louisa says:

Hi there can you help me with please one?

how to make a formula with this

If A2 is 0-1= Current
A2 is 1.1-2= curring
A2 is 2.1-3= mid-range
A2 is 3.1-4= delinquent
A2 is 4.1 above= recovery

48. Zali Qifty says:

Hi,

I have this problem with my syntax, after hit 'enter' button, no error pops up, but then, the excel only operate my 3 first condition, the remaining condition were disregard (I assumed). any chance anyone can correct my syntax?

=IF(Q12="Done","No Action Require",IF(Q12<-5,"-5,"=-3,"0,"Due","")))))

Thanks.

• Zali Qifty says:

=IF(Q12="Done","No Action Require",IF(Q12<-5,"-5,"=-3,"0,"Due","")))))

• Zali Qifty says:

I have already copy and paste my syntax, but when it posted, it does not show the full syntax?

49. santhakumar says:

I want to format a account sheet in excel. Here I need to make a account of around 25 projects. Here I create 3 columns (let’s say R1, R2,R3) only for project code, amount and the respective project’s balance amount.
Means, firstly I will enter the project code let’s say AB01, next column I will enter the amount to be updated and last, the total balance amount must updated automatically in the last column. [r3 should update automatically]. I,e when I enter the project code, R3 should go to the cell where current balance entered of that particular project.
If possible with anyone, can you give me the VB in excel, also the formulae code( =xxxxx, Rxx)
R1 R2 R3
ABO1 140 2200
AB01 100 2100
AB02 100 1340
AB02 200 1140
ABO2 140 1000
AB01 100 2000
AB02 100 900

50. JITENDRA says:

I want to convert grades in marks like for A its 5 marks, B its 4 marks , C its 3 marks, D its 2 marks and for E its 1 mark. please suggest formula.

• If you want to substitute the grades in the same table they are arranged in, use Find and Replace.
However, if you want to transfer the converted data to another table, try entering this simple formula:
=70-code(A2)
where A2 is the cell with the grade.

51. Bahrami says:

Hi, i have one question plz guide me, i have tow columns with same values, i used if I5 is less than one get H5 value, but the result is not comimg what i want
=if(I5<1,"=H5")
Can you help me.
Thanks

52. Ashish Sharma says:

Hi, in column B i have date & column C other commodity and I want to calculate on basis of date can any one help.

53. Milli says:

Hello!
Not sure why excel hates my If formula...
Point is- if a cell value (let's say "E3") is missing, do nothing. if it's smaller than 1989, write 1, if its between 1990 and 2013, write 2.

I wrote : if ((0>E3E3<2013);2))

but its not working :-(

M.

54. Milli says:

Not sure why my last post didnt include my actual formula but since its not working its not a biggy :)

• Hi Milli,

Our blog engine occasionally mangles formulas in comments, sorry for that.

=IF(E3="", "", IF(E3<=1989, 1, IF(E3<=2013, 2, "")))

If the list separator in your Regional Settings is set to semicolon, then it should be written like this:
=IF(E3=""; ""; IF(E3<=1989; 1; IF(E3<=2013; 2; "")))

Please note that the formula will return nothing (an empty string) if E3 is greater than 2013.

55. Chris says:

I am trying to set up a formula were New=New, Used_Like_New=Like New, Used_Very_Good=Very Good, Used_Good=Good, & Used_Acceptable=Acceptable.

The formula I tried was =IF(AND(G2>=New), "New", "" & IF(AND(G2>=Used_Like_New), "Like New", "" & IF(AND(G2>=Used_Very_Good), "Very Good", "" & IF(AND(G2>=Used_Good), "Good ", "" & IF(AND(G2>=Used_Acceptable), "Acceptable", ""))))). I also tried =IF(AND(G2=New), "New", "" & IF(AND(G2=Used_Like_New), "Like New", "" & IF(AND(G2=Used_Very_Good), "Very Good", "" & IF(AND(G2=Used_Good), "Good ", "" & IF(AND(G2=Used_Acceptable), "Acceptable", ""))))).

I have had no luck. This is my first attempt at an If formula. Can you help me out here?

• Hi Chris,

Here's the correct syntax:

=IF(G2="New", "New", IF(G2="Used_Like_New", "Like New", IF(G2="Used_Very_Good", "Very Good", IF(G2="Used_Good", "Good ", IF(G2="Used_Acceptable", "Acceptable", "")))))

• Chris says:

Thank you!!!

56. Milan Patel says:

Hello,

I'm bit confuse in applying "If" formula to my data, where I want to get data by applying specific condition;

I want data like, "If Employee X has completed any Job in Task1 then he will get XYZ Units, same way, if Employee X has completed Job in Task2 than he will get ABC Units.

So I'm bit confused what formula to use here, could you please guide me here?

Thanks,
Milan

57. bogdan says:

Need your help with a formula.
I need to subtract the percentage of a value based on the number of items selected.
The percentages need to change based on the number of items selected.

Exeample> one item costs 10 usd.
take 1 item 0% take 2 items 15%bonus, take 3to5 items 30% bonus take 6to10 50% bonus.
I want to be able to select the number of items in a cell, and in another cell show the value according to the number of items selected.
Can someone help me?

58. Vizing says:

This formula returns #VALUE.

=IF(AND('Maint Pricing'!\$B2="Flat Rate",'Monthly Calculation'!\$D4="Yes"),('Maint Pricing'!\$X2+'Maint Pricing'!\$Q2),'Maint Pricing'!\$X2), IF(AND('Maint Pricing'!\$B2="Area Rate",'Monthly Calculation'!\$D4="Yes"),('Maint Pricing'!\$V2+'Maint Pricing'!\$Q2),'Maint Pricing'!\$V2)

Can someone help me with this?

59. Jo says:

I need to create an IF..AND formula for these conditions:
calculate the total cost of the car rental (#days * cost)
if the transaction is eligible, give a 20% discount on #days * cost

So the possible outcomes are:
days * cost only
days * cost minus discount
days * cost plus gas
days * cost minus discount plus gas.

I have been banging my head for too long. I know it needs to be nested, but...

Thank you

60. Mac says:

Hi

I wanna to add time condition with stock price
Like
Open Ltp Time
223 223 9:15

Now i need if open=ltp at 9:15 then it print good to enter else blank

as Ltp is dynamic so i wanna to capture values at 9:15 only.

Hope for early and quick response

61. aimtruth says:

=IF(E18>TIME(9,10,0),"A",IF(E18>TIME(15,10,0),"A",IF(E18>TIME(21,10,0),"A","P")))
whats wrong in this formula
my calculation attendance time such as 9:10>Late, 15:10>Late, 21:10 Late,or <less then Present
plz help me formula

62. Sanjay Goyal says:

i need help for below :

If forth character of cell A1 is C and forth character of cell b1 is C then i need reply 2 in cell C1, if forth character of cell A1 is P and forth character of cell b1 is C then i need reply 1 in cell C1, if forth character of cell A1 is P or C and forth character of cell b1 is H then i need reply 5 in cell C1, please help

Thanks
Sanjay Goyal

63. Firoz says:

Can we change case of text in excel without use change case formula (Uppercase, lower case, proper case)

• Vikram says:

You need a macro to do so. A function can only return a value in excel.

I can share the Macro file! Share your mail id.

By this you only need to select the range and Alt+F8.

64. firoz says:

please send me the file my email id because i am able see your share file

65. Ajay Mekale says:

Hi,
I am trying to get the OT time and Regular working Hours both in different cells with below formula but the result value is something different, please help?
For Regular working hours =IF((((C6-B6)+(E6-D6))*24)>8,8,((C6-B6)+(E6-D6))*24) and for OT =IF(((C6-B6)+(E6-D6))*24>8, ((C6-B6)+(E6-D6))*24-8,0)

66. Ajay Mekale says:

Hi,
I am trying to get the OT time and Regular working Hours both in different cells with below formula but the result value is something different, please help?
For Regular working hours =IF((((C6-B6)+(E6-D6))*24)>8,8,((C6-B6)+(E6-D6))*24) and for OT =IF(((C6-B6)+(E6-D6))*24>8, ((C6-B6)+(E6-D6))*24-8,0) , where column B is Log in, column C is Lunch Starts, column D is Lunch Ends and column E is Log Out.

67. Karissa says:

Hi! I need help with my excel formula. I currently have conditions set on 1 cell. However, how do you add one more condition so that when you input a value on the other cell, the value on the current cell which has the formulas change? Help please please please

68. lye_leonard says:

why and how of a bracket {} in this IF argument:
{=MAX(IF('C6'!C:C<=WorkEx!I21,'C6'!C:C))}
The formulae result is different with and without bracket. Thank you.

69. santhosh says:

Hi

I am trying to below pull below output on conditions A B & C, could you please help me in this (if B = C then based on column A it should extract the output)

Column A B C Output
Transactions No Yes Client custom in both versions > Transactions
Accounts No Yes Client custom in both versions > Accounts
No Yes Client custom in both versions
Cotains "History" No No This metadata appears only in V7 client database. Newly added metadata item under "History" folder.
Cotains "1000INT BE" No No Interest BE added in V7

Yes No New Standard Data item

Yes Yes 712 Metadata items match with both 61 and 712 Standard Template

how to open excel sheet with drop down list; or combo box

how to hyperlink in a cell according to condition to open different - different data.

72. Scott says:

Hi all,

I'm hoping someone can help me please. I am trying to set up my own manufacturing schedule that shows products, volumes, times and dates etc. I have a formula that works out how long any given production run will take but I want to also take into account the change overs between products.

So, column C is drop down menu with all products and change overs, column E works out how many hours the run will take - I need a formula that looks to column C to see if it shows "change over 10" or "change over 30" and then returns 10 or 30 respectively - if neither are shown then run the calculation (D10/34/60)......

Is this possible? Thanks in advance for any help :)

73. Marc Girard says:

I am trying to find a formula that will allow me to add a certain number of days to a date in a cell, dependent on certain information in another cell. For example:

A1 B1 C1
Date Rcv'd Level Date Response Due

6/30/17 Level 1 A1 + 20 days if Level 1
A1 + 30 days if Level 2
A1 + 30 days if Level 3

When I tried, I couldn't get the formula to recognize A1 as a date.

Thank you for your time and consideration in this matter. Any assistance would be greatly appreciated.

74. j says:

I need a formula where:
If both x & y exist in column A it will show "Yes" in column C
IF only x or y exist in column A (not both) it will show No in column C
and if both does not exist in column a it will show None in column C.

Thank you!

75. EV says:

Hi, thanks for this great site. I am stumped with an Excel nested if that uses SEARCH to query for text in the adjoining column. Here's an example

=IF(SEARCH("a",A1),"A",IF(SEARCH("b",A1),"B",IF(SEARCH("c",A1),"C",IF(SEARCH("d",A1),"D",IF(SEARCH("e",A1),"E","other")))))

Unfortunately, I only get "A" or "#VALUE". I tried including IFERROR but got the same results

=IFERROR(IF(SEARCH("a",A1),"A",IF(SEARCH("b",A1),"B",IF(SEARCH("c",A1),"C",IF(SEARCH("d",A1),"D",IF(SEARCH("e",A1),"E"))))),"other")

This only returns "A" or "other". Can you please explain why my nested loop is not nesting? Thanks in advance.

• EV says:

FYI, I first thought the formula was chopped off but then realized that you have to side-scroll to see the entire line.

76. Mahesh says:

Hi everybody!!!

I want one formula for below problem.

Distance 0-50 kg 51-100 kg 101-250 kg 251-500 kg
Upto 25 NIL NIL NIL NIL
26-100 km 650 750 1000 1150
101-150 km 1000 1250 1500 1750
151-200 km 1250 1500 1750 2000
201-300 km 1500 1750 2000 2500

I mention here my dada. Sorry I am unable to give in excel.
I required formula for 2 condition i.e.

Distance 100 km & weight 50 kg = 650
Distance 100 km & weight 100 kg = 750 (2nd condition change)
Distance 100 km & weight 250 kg = 1000 (2nd condition change)
distance 100 km & weight 500 kg = 1150 (2nd condition change)
same with distance 150 to 300 km & weight 50 to 500 kg

77. Tushar says:

I want set multiple condition in on cell below mention in brief
For male professional tax
7501 to 10000 then 175
Above 10000 then 200
For Feb month 300
For Female
Below 10000 then 0
Above 10000 then 200
For feb month 300

78. Jai says:

I want a bill format like if quantity is 1 then discount will be 40% of amount and if quantity is 2 then discount will be 50% of the total amount and if quantity is 3 then discount will be 60% of the total amount

• Mary Trifuntova (Ablebits.com Team) says:

Hello, Jai,

Thank you for contacting us.

You may try the formula below:

=IF(D2=1,"40%",IF(D2=2,"50%",IF(D2=3,"60%"," ")))

I hope this helps. Please let me know if you have any other questions or difficulties.

79. Tahid says:

"# of Service
Provided" Fair
59 61%
108 61%
112 60%
123 63%
134 63%
147 68%
156 71%

I am trying to to put a formula if # of service provided 100 & 110 & 120&130&140 then add 3% with the fair column

80. Andy says:

Afternoon,

I have a status column (Column B) that I would like to display "Open", "Closed", "Hold" or "Rejected" based on the contents of another column (Column N) in the same worksheet.

Open would be anything where Column N is blank
Closed would be anything where Column N contains a date
Hold would be anything where Column N has the word "HOLD"
Rejected would be anything where Column N has the word "Rejected"

81. Michael Berry says:

I want a cell C6 to perform this function -

IF cell g2 falls between 45282 and 90563 then take g2 and subtract it by 45282 multiplied by .335.

If cell g2 is greater than 90563, simply do 45281 multiplied by .335.

How would I write this? Possible? Any help would be appreciated, thanks.

82. Enoch says:

Can anyone help me with the argument below.
Age exceeding 10yrs but less than 12yrs - 5%
Age exceeding 12yrs but less than 15yrs - 20%
Age exceeding 15yrs - 50%

Assuming if Cell D3 is between 10 -12 = 5%, Cell D3 if greater than 12 but less than 15 = 20% and if greater 15 = 50%

I want to put the IF formula in Cell E10

If D3 12 but 15 then 50%

• Mary Trifuntova (Ablebits.com Team) says:

Hello. Thank you for contacting us.

Please try the following formula to get the result you need:

=IF(D3>=15, "50%",IF(D3>=12,"20%",IF(D3>=10,"5%","")))

Don't hesitate to contact us again if you have any other questions.

• Enoch says:

Thank soo much

83. Ataa says:

Hello,
I'm trying to use nested if with the following syntax but it keeps give me value error

=IF(LEFT(B5,4)="0122","Orange"), IF(LEFT(B5,4)="0127","Orange"), IF(LEFT(B5,4)="0120","Orange"), IF(LEFT(B5,4)="0128","Orange"))))

thanks

84. Márcio de Souza says:

HI, wonder if I could get help writing a function or direct me to a resource it would help me formulate it myself:
A1 * (B1 or C1 when B1 or C1 is different from zero or different from 'blank')
The B1 OR C1 values will be attributed from a pull down menu and it will be either B1 or C1). It seems so simple and easy but I have almost burned my brains out and nothing!
Thanks a million!!!

85. Alice says:

I have 16K+ line items and I am trying to create a formula to take out manual work that will take hours. My forumla is below. The message I get in the cell is#NAME?

What am I doing wrong?

=IF(B297=ZRO,"Return Order", IF(B297=ZC2,"Credit Request", IF(B297=ZD2,"Debit Request", IF(B297=ZB3, "Incentives", IF(B297=ZB4,"Incentives")))))

• Hi Alice,

The problem is in the logical text of the first IF (B297=ZRO). "ZRO" is a text value, so it should be enclosed in double quotes (as well as "ZC2", "ZD2", etc. if they are text). If these are cell references, no double quotes then, but you need to fix ZRO anyway.

86. Erika says:

I have been trying to fix this formula all day, I don't know at this point what I'm doing wrong.

=IF(D2=Full,A2=1, IF(D2=Special Case, A2=2,IF(D2=Parts, A2=3,IF(D2=T&M, A2=4,IF(D2=Not Installed,A2=5, IF(D2=Customer Issue, A2=6))))))

• Hi Erika,

If my understanding is correct, you want the output in cell A2. If so, you should not reference A2 in the formula, just enter the formula in the target cell:

=IF(D2="Full", 1, IF(D2="Special Case", 2,IF(D2="Parts", 3, IF(D2="T&M", 4, IF(D2="Not Installed", 5, IF(D2="Customer Issue", 6, ""))))))

Also, please pay attention that all text values should be enclosed in double quotes.

I have a file containing multiple sheets the first of which is an index
sheet. The other sheets are hidden. I want to be able to click on a
hyperlink in the index sheet that will send me to the hidden sheet and
open it.
Is this possible ?

88. Darcy says:

Hi, I am trying to modify a current if/then combined calculation statement to reflect the proper calculation. Here is the original:

IIF (UDField09 < 86666.67, IIF (UPPER(last(2,TRIM(PayGroup)))='WK',
UDField09*.26627, UDField09*.576923), IIF (UPPER(last(2,TRIM(PayGroup)))='WK',23076.93,50000))

What I ultimately want it to do in the calc is this. I know I need some nesting and that is where I am having trouble. How should the 3rd line read?

IIF(UDField09 < 86666.67, IIF (UPPER(last(2,TRIM(PayGroup)))='WK',
UDField9/52/10*.36*12/52, UDField9/24/10*.36*12/52, IIF (UPPER(last(2,TRIM(PayGroup)))='WK',23076.93,50000))

89. jakir Hossain says:

Hi, I make a sheet for distribution incentive . her have multiple uneven amount . I want of use ceiling & floor e formula in on cell. How i use this formula ? i want to bellow this type to use by formula.

previous Required/Revised amount
amount
11,957 12,000 (IF Above 500 + it will next round amount
18,396 18,000 IF below -500 it will Previous round amount
7,818 8,500 (IF Above 500 + it will nearest round amount
7,818 7,500
5,059 5,000

90. Dan Kinnefer says:

I'm trying to make the formula return 4 possible answer which is (R-regular,A-absent,L-late,OT-overtime). My basis for regular is if the value of the cell is "8". So this is the formula that I made so far =IF(H16>7.9,"OT",IF(H16<7.9,"L",IF(H16=8,"R","A"))). It only returns (OT and L) something is very wrong and i can't figure it out. I'm just new to excel so please help me

91. Dan Kinnefer says:

I'm trying to make the formula return 4 possible answer which is (R-regular,A-absent,L-late,OT-overtime). My basis for regular is if the value of the cell is "8". So this is the formula that I made so far =IF(H16>7.9,"OT",IF(H16<7.9,"L",IF(H16=8,"R","A"))). It only returns (OT and L) something is very wrong and i can't figure it out. I'm just new to excel so please help me. Thank you so much in advance

92. Laura says:

Hello,

I am trying to create a formula where I have 4 Yes/No fields but only 3 Yes's are required to obtain a final yes. I am having trouble figuring out how to write a formula where 3 of 4 yes's = final YES.
As you can tell, I am no excel expert so help is appreciated.
Thank you

• Laura says:

L3 Yes/No
O3 Yes/No
R3 Yes/No
U3 Yes/No

These cells are the results of someone meeting a subset of criteria so there will be a yes if the criteria is met or a no if it is not. Same for all of the above cells. To fulfill the whole set of criteria, there must be 3 out of 4 Yeses. V3 will be either "Yes" the criteria has been met or "No" it has not been met.

I hope that helps.

93. Ankit Chand says:

Hi,

I need multiple if condition to be merged.
Condition:
if A1= "implementation" & A2= "Complete" & A3="Complete"
Output should be:"Well Done"
if A1= "implementation" & A2= "NA" & A3="Complete"
Output : "Check ABC"
if A1= "implementation" & A2= "Complete" & A3="NA"
Output : "Check XYZ"
if A1= "implementation" & A2= "NA" & A3="NA"
Output : "Incorrect Processing"

I want these outputs if above conditions(inputs) are placed in the 3 cells. can it be done?

Let me know and please email to personal id if possible.

94. Miki says:

A B C D E F
Plant 10,000 Target Inv % 8000 7000 6000

Is there a way to create a formula in column c to auto update the % base on the current week. Instead of manual update column C weekly (=F/B and the next week G/B).

95. Miki says:

column A - 10000
column B - % (=E/A)
column c - wk1-8000
column d - wk2-7000
column e - wk3-6000
Is there a formula that I can auto update column B instead of manual update every week.

96. USMC2009 says:

In cell D3, enter a nested IF function that will check
cell B3. If B3 is 120 or less, display the text string "Normal", IF B3 is greater than 120,
have Excel check B3 to see if it greater than 139. If it is greater than 139, it should
display the text string "High". If it is greater than 120 but less than 140, it should display
the text string "Prehypertensive".
20. Copy the formula down the whole column through 7/31 Can someone help me please!!!!!!

97. mel says:

Hello, I am trying to use nested IF formula including OR, without success. This is what I'm looking for:
Currently my data includes a column of "PASS"/"FAIL" results for each type of test, one Math and one Lit. I just need to identify which tests were taken based on whether or not results are present. Blank cells indicate a test was not taken. With the specific text of "Math + Lit" when indicating both tests were taken.
Example:
MATH LIT TAKEN
Pass Pass Math + Lit
Fail Pass Math + Lit
Fail Math
Fail Lit
Pass Math
Pass Fail Math + Lit
Pass Lit
Fail Fail Math + Lit

98. Vincent says:

Hello,

Here is the Data/Table(Sheet1)
ColumnA = Product Name
ColumnB = Amount
ColumnC = Barcode

**more or less there's 25-30 items in each given Column**

Is there a formula where in once barcode has been inputted/coded, ProductName and Amount will came after. (Sheet2)

99. Rene says:

hello,

I ve a query, I m looking to use IFERROR for more than 2 conditions with formula as pr below

=IFERROR(VLOOKUP(F2,'Formula report'!B:I,8,FALSE),dxg(F2,"XXX",,"XXXX Days")*100),=IFERROR(VLOOKUP(F2,'Formula report'!B:I,8,FALSE),dxg(F2,"VWAF",,"YYY: 7 Days")*100), "NO DATA"

Does someone is able to help me ?

ty

rene

100. Riz says:

Hi, Ms. Svetlana Cheusheva,

Your artile about IF condition really nice, can help me out for below data style, what will I apply formula for this to get better result (there are 3 Conditions to check);

PROJECT # TRAVEL TYPE DI STATUS COST CODE REMARKS
CONDITION 1 CONDITION 2 CONDITION 3
8326 LEAVE DIRECT TQ.08326-VC-L
8326 LEAVE INDIRECT TQ.08326-FC-I
8326 MOB DIRECT TQ.08326-VC-O
8326 MOB INDIRECT TQ.08326-FC-O
8326 OFFICIALTRAVEL DIRECT TQ.08326-VC-V
8326 OFFICIALTRAVEL INDIRECT TQ.08326-FC-V

RESULT TO BE REQUIRED IN FINAL SHEET AS BELOW;
FOR EXAMPLE
IF PROJECT # "8326" AND "LEAVE" AND "DIRECT" THEN CODE PASTE "TQ.08326-VC-L" IN REQUIRED COLUMN

Your prompt and favorable response will be highly appriciated.

Thanks & regards,
Riz

Ultimate Suite 2018.5 for Excel