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:

Classic nested IF formula

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:

Nested If formula logic

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 -

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:

Nested IF formula to perform different calculations on numbers within a certain range

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, "")))))

An improved formula with multiple IF functions

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, ""))))))

Nested IF's formula with fixed bounds

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:
The order of nested IF functions matters

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.
Watch the logical flow of your nested IF formula by using the Evaluate Formula feature.

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.

Balance the parenthesis of nested IF functions

For more information, please see Match parenthesis pairs in Excel formulas.

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.
Add line breaks to improve the readability of nested IFs.

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. I thank you for reading and hope to see you on our blog next week.

Practice workbook for download

Nested If Excel statements (.xlsx file)

392 responses to "Excel nested IF statement - multiple conditions in a single formula"

  1. MD Rasel Sarder says:

    Hello, Ms. Svetlana Cheusheva,

    Your IF condition articles are really helpful and much appreciated, I will be so grateful to you if you please help me out to set up this formula…..

    I have several dates on a sheet in a column (e.g. 18/02/2018, 27/02/2018, 29/03/2018) What I want is deduct 10 days from every date and after deducting 10 days I need to check back for the date on Saturday. For example 18/02/2018 Minus (-) 10 days = 08/02/2018, now I check back for the date on Saturday, that is 03/02/2018. 3rd February 2018 will be my result. And another example for the date 29/03/2018 where the result will be 17/03/2018. Can you please help me to build this formula?

    Thank you in advance.

    • Alex says:

      Hi Mr Sarder,

      Try this: ="Date"-10-(WEEKDAY("Date"-10))

      In the "Date" you can sellect a cell, eg. A2.

      • siaz ali says:

        Mr Alex, kindly help me in excel color formula.

        i wanna ... clom a = 12
        colm b = 6
        colm c= if colm A is greater then or equale to colm b ..then show red colr in ful cell otherwise white.

        siaz ali

  2. kristi says:

    I have a formula that looks like this in a spread sheet +AZ3*IF)'YTD ALL'!$R$^'Overtime FY17'!AZ$1,'YTD ALL'!$R$6, 'YTD ALL'!$D$6))

    What does this mean? I understand that the "YTD ALL' is another sheet being referenced but I can't figure what it is pulling.

    Apparently the person whose position was more well versed on Excel than I am.

    Thank you in advance

    • Alex says:

      Hi Kristi, It is pulling things that are from YTD ALL tab and whatever comes after up to the comma. Example 'YTD ALL!' is the worksheet. $R$ is column R in that worksheet, $R$6 is a cell in that worksheet ect.

  3. Kate Barsi says:

    I am trying to create a formula that evaluates multiple cells in the same row that will determine if any of the cells in that range have a no, then a file is failing. I'm using this: =if(countif(A2:H2,"No"),,"Fail","Pass")

    It works for a smaller range, but not a larger range....

    Is there another way to do this?

  4. Yayan Sulton Auliyaa says:

    Hi admin, I have a case to count between 2 column where these columns has date format, and each columns has different input,I need to count distance between 2 column with condition where ,ex : A1 to B1 has 4 days distance the result is "Done" Where condition 1 Day = 8 hours , and we have to achieve min 20 Hours to get "done" status.

    Please Help me :(

  5. Rinks says:

    I need help for complex formula, tried using AND, OR, Search with IF but not able to get the result.
    I have a Report data which I have converted into Table, in Column C under the Header "Assignment Group" there are country listed HRss Brazil uat, HRss Portuguese ant, HRss Spain hat, Hrss Italy amt and HRss BR sat. So I was trying this formula:

    =IF(ISERROR(SEARCH("Portu",[Assignment group])),"True", IF("BR",[Assignment group],"False")) - what I want to do is if the country is Brazil or Portuguese or BR then the formula should return to False and rest should be True.
    Please if you can help me it will be great, I have be trying multiple combination but to no avail it returning to "#Valid"

    Many thanks in Advance

  6. asif says:

    100,000.00 500,000.00 10% 225 one lac to 5-lac than 10% and plus 225
    500,000.00 1,000,000.00 15% 1225 5-lac to 10-lac than 15% and plus 1125
    1,000,000.00 2,000,000.00 18% 2225
    2,000,000.00 3,000,000.00 20% 3225
    Sr No Name of Annual income
    1 waseem 3,500,000.00 350,225.00
    2 waqas 4,000,000.00 400,225.00
    3 waqar 500,000.00 50,225.00
    4 aslam 1,000,000.00 100,225.00
    5 abid 1,500,000.00 150,225.00
    6 abdullah 2,000,000.00 200,225.00
    7 rehman 2,500,000.00 250,225.00
    8 zar 3,000,000.00 300,225.00
    9 tahir 5,000,000.00 500,225.00
    10 altaf 6,000,000.00 600,225.00
    11 shams 300,000.00 30,225.00
    12 pak 800,000.00 80,225.00
    13 lah 900,000.00 90,225.00
    14 pun 6,500,000.00 650,225.00
    15 aus 9,000,000.00 900,225.00
    16 can 1,200,000.00 120,225.00

    please help me i put this formula but not get success.

    thanking you anybody help me.

  7. Carolyn Brown says:

    I have a spreadsheet that I need help with. I have two columns, one is Regular and one is Overtime. I need the Overtime column to calculate for anything over 40 in the regular, but I need the regular column to change to 40.
    Employee has a total of 47 regular hours in column H, I need for column I which is the Overtime column to show the sum of H-40=I, but then for column H to show 40.
    Is this possible and if so how.
    basically in my mind it's If H is >40 then I would be equal to anything >40 and H = 40
    Am I crazy or can this be done?

    • Patrick says:

      Carolyn Brown:

      Do you manually put the hours in the regular and overtime columns or are there cell references for each column for each employee that populate automatically in those cells in the given work period?

      I don't remember anything before Excel 2013 so this maybe not work if you use a version older than that. I will also answer this assuming that hours populate automatically with cell references for each employee and cells B through G have the total hours worked each day from Monday to Saturday.

      For the regular hour column you can setup an IF statement.
      =IF(sum(B2:G2)40,sum(B2:G2)-40," ")

      You can also setup a data validation in the regular hours column. You can set it where only numerical values can be entered in that column and the value cannot be greater than 40.

    • Patrick says:

      Carolyn Brown:

      IF(sum(B2:G2)<=40,sum(B2:G2),40) 40,sum(B2:G2)-40," ") <---Overtime Hours Column (should be greater than 40)

  8. Ganesh says:

    Articles are quite good and knowledgeable.
    Can yo help me with logical functions
    I have some specific data for input diameter, input thickness output diameter and output thickness. based on these values I have to select the speed and feed for machine, which function I have to use, so that formula can check for given input and out put parameters what speed and feed to be selected?

  9. Patrick says:


    I hope on your end what I am saying comes up correctly because on my computer once I hit send, some of what I've written is cut off.

  10. Yana says:

    Thanks. This has been pretty useful. I'm trying to create a formula for a document thats over 7000 cells long. Would this negatively affect the formulae? I keep getting an Value? error.

  11. Anonymous says:

    How would you explain to someone who is unfamiliar with Excel how to read a nested statement that contains 3 different conditions??

    • Hi!

      I will try to explain the logic on an example of the first formula in this tutorial:

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

      Translated into plain English, the formula does the following:

      1st IF: Evaluates the 1st condition (if B2 is greater than 249). If the condition is met (if B2>249), returns "Excellent", otherwise proceeds to the 2nd condition.

      2nd IF: Checks if B2 is greater than or equal to 200. If it is, returns "Good", otherwise proceeds to the 3rd condition.

      3rd IF: Checks if B2 is greater than 150. If it is, returns "Satisfactory", otherwise returns "Poor".

      In other words, the formula reads as follows:

      If B2>249, return "Excellent", otherwise check if B2>=200
      If B2>=200, return "Good", otherwise check if B2>150
      IF B2>150, return ""Satisfactory", otherwise return "Poor"

  12. Mohamed says:

    I have a question
    trying to create a nested a nested formula with 3 arguments
    if A>720, B>16, C"IV" display RUX
    please help

  13. Ava says:

    What if I have multiple overtime pay rates. For example, I want to calculate the total pay for 64 hours worked with these conditions:
    -30 hours or less= $9.50 per hour
    -More than 30 and less than 51=$12.50 per hour
    -51 or more and less than 61=$15.50 per hour
    -61 or more=$18 per hour

    So for hour 1-30, I get paid 285. For hours 31-50, I get paid 237.50, etc. until I'm up to hour 64. I should have a total of 734 but I'm not sure how I would write the formula

  14. Mijanur Rahman says:

    Hi I'm Mijanur Rahman,
    I want to help !!

    Actually I, get a G.P.A with four subject mark.

    Formula1: Suppose (Sub1+sub2+sub3)/3 it's Main subject GPA (3.93)
    Formula2: IF Sub4 point is sub4>4.00 then add 0.50 with main subject GPA.

    How to write two formula in one line....???
    Plz Help

  15. Brenda Carpenter says:

    I am working on an assignment and I have been stumped for hours. I don't know what I am doing wrong, and hopefully someone can assist me. Here it is...
    9. Many of the special staff teams require leadership training, which is offered to staff with more than 1 year of service at Camp Bright Firewood. Dean wants to identify the staff members eligible for leadership training in the table.
    In cell M2, enter a formula using a nested IF function and structured references to determine first if a staff member already has completed leadership training, and if not, whether that staff member is eligible for leadership training.
    a. If the value of
    b. the Leadership Training column is equal to the text “Yes”, the formula should return the text Completed. Remember to use a structured reference to the Leadership Training column.
    c. If the value of the Leadership Training column is not equal to yes, the formula should determine if the value in the Service Years column is greater than 1.
    d. The formula should return the text Yes if the staff member’s Service Years value is greater than 1.
    e. The formula should return the text No if the staff member’s Service Years value is not greater than 1.
    =if([Leadership Training]="YES","Completed", If([Leadership Training]="no"[Service Years]>1, "Yes","no"))
    I just am not getting it. I've done this problem many different ways and not geting the right response.
    Thanks in advance!!

  16. abdu says:

    I think my nested IF case is different and maybe weird ;)

    I have a Pivot table filter including 3 options, means I can select 1 or All or only two product categories to produce revenue report outside of the Pivot table it self. I am using SUMIFS to extract the data from Excel table, and filter using the same Pivot filter.
    All working fine until I select 2 product categories (Not All and Not One), I eliminate the problem when selecting (ALL), but could not do the same when I select 2 product categories, the result was all zero values. here is my function:

    the previuos one working fine when filtering for One or clearing the filter, means (All), but not when filtering for two categories ...

    my attempt was nested IF:
    IF($I$2="(All)";"*";IF($I$2="(Multiple Items)";$I$2)

    but it dose not work, any help...

  17. basha says:

    i have two tables. in first table i have to check Regid and second table Same RegID and date . After checking both conditions, i have to get the matching data.

    Ex: I was given a car for rent to different customers in different dates.
    i have customer details in one table and which customer taken vehicle on which date i mentioned in another table.

    Now when i enter customer ID and date i have to get all the details of the customer and that vehicle. can anyone help to write formula for this

    • Eve says:

      It will be a sql statement to join two tables based on RegID.
      Select *
      from table1
      inner join table2 on table1.RegID=table2.RegID

  18. himanshu kumar sharma says:


    7.100001 TO ABOVE-------30%

  19. Gary says:

    I have a question. I have three separate columns with numbers in each cell. I a fourth column I want to place the lowest number that exist in the prior three columns in the cell. How do I go about doing this? Or is it possible?
    A B C Lowest
    100 150 200 100
    150 50 100 50

  20. himanshu kumar sharma says:


    7.100001 TO ABOVE-------30%


  21. Raza says:

    Hi there...
    i need some help if u can pls..
    i run a car renter service and i want to find which of my car earn how much in a single day
    i got some sheets in a single file these sheets got my daily sales
    i need to make a sheet which sums all the amount from all the sheets which contain same car num
    the sheets are made by driver that this driver drove this car on this date
    hope am able to convey u my issue

    • Raza says:

      Raza here again sorry i forgot to give an example for this:
      lets say Sheet 1 got data of driver 1 and sheet 2 got data of driver 2
      lets say driver 1 drove car A on 1st dec and drove car B on 2nd dec
      and driver 2 drove car B on 1st dec and car A on 2nd dec
      i want a sheet which just calculate that how much earning was done on that car on that day wether it b driven by more than 2 drivers

      • Hello,
        For me to understand the problem better, please send me a small sample workbook with your source data and the result you expect to get to support@ablebits.com. Please don't worry if you have confidential information there, we never disclose the data we get from our customers and delete it as soon as the problem is resolved.
        Please also don't forget to include the link to this comment into your email.
        I'll look into your task and try to help.

  22. Bonnie Slone says:

    I have a vehicle report that has the starting mileage at the top of the page in D6, then I have a column for each day of the month, another column with ending daily mileage and the last column is total daily mileage. My supervisor wants to be able to put the ending mileage and it figure how many miles were driven that day. My problem is that some days the vehicle doesn't move so a zero needs to go in the column. My formula for day 1 is =IF(OR(B10=0), "0", (B10-D6)) so now what do I do for day 2-31 if it could be 0 everyday or could be mileage to get it to go back up to the last place mileage was entered to get that days total?

    • Hello,
      For me to understand the problem better, please send me a small sample workbook with your source data and the result you expect to get to support@ablebits.com. Please don't worry if you have confidential information there, we never disclose the data we get from our customers and delete it as soon as the problem is resolved.
      Please also don't forget to include the link to this comment into your email.
      I'll look into your task and try to help.

  23. naushad says:

    Good Morning,

    Mis,Svetlana Cheusheva!

    Thank you very much for your kind excel work,i appreciate with your every tutorial and helpful for taking a the example thank you very much once again if i need any help i will take your approach.

  24. Jada says:

    I have a report of incoming phone calls. I have the following columns: Start time (time stamp of when the call was received), Call duration (length of the call), and I have calculated a third column of time between calls, but not sure if that is necessary. We have 2 phone reps available to take calls. I am wanting to find out based on the time stamp of the incoming calls, and the duration of the calls if the 2 phone reps can handle the call volume. Im thinking this would be an IF THEN calculation, but i cant figure it out. Are you able to help?

  25. NineJune says:

    I really need a summary for 4 conditions but have a problem like this

    if A4C4 or equal D4 then D4
    if A4>D4 or equal E4 then E4
    if A4>F4 then F4

    Help me pls.

  26. Clark says:

    I am trying to find a way to indicate if there is >10 consecutive duplicate values in a column and if so have a cell marked as yes but if no then have the column show a no. An example can be seen below of what I want it to look like.
    A1 B1
    Y N
    N N
    Y Y
    Y Y
    Y Y
    Y Y
    Y Y
    Y Y
    Y Y
    Y Y
    Y Y
    Y Y
    Y Y
    Y Y
    Y Y
    N N
    N N
    N N
    N N
    N N
    N N
    Y N
    Y N

    Is there a way to get an equation that looks at consecutive duplicate values and flags them if there is higher that a set value?

    • Hello,

      If I understand your task correctly, please try to enter the following formula in cell B1:


      Just select the cell where you've entered the formula and drag the fill handle (a small square at the lower right-hand corner of the selected cell) down.

      Hope this will help.

  27. Jim says:


    I have a column of names and another column with a value. I am trying to build out a formula that will capture the the value in the row depending on the name. Something like "IF"Tricia,sumF15".

  28. Warren Briggs says:

    Hi, can you have more than one condition to get a same result? I have a range of prices, and essentially if the price is above a certain value, a 0 score, is given. However, I want to also give a 0 score if there is no price, or the price is blank.... =IF(K218.75,"0")))))))))))))
    I want to add that if K2 is a 0 price, or if K2 is blank, my formula must also revert with a 0 value. Thanks for any help

  29. HD says:


    Can someone help me with this formula? What is it trying to achieve?

  30. SB says:

    I have this formula =VALUE(IF(B4="high risk", "5", IF(B4="restricted industry", "5", IF(B4="medium risk", "3", IF(B4="low risk", "1"))))) imbedded so it will assign the numerical value once a selection is made from the drop down list next to this field. However, I have new data (a lot of options in the drop down now) and need the above formula to look for a partial match instead of an identical match. For example, instead of high/med/low wording, I know have a list of countries that have attached ratings like "Estonia-Low". And I need that formula to assign the numerical risk rating (5/3/1) based on a partial match for the Low/Medium/High that will be attached to the country name. Thank you so much for your help. I've been reading blog posts all night and can't figure it out.

  31. BB says:

    I am trying to create a formula that will first multiply a weight times a dollar amount then add a value from one of 4 columns where a choice needs to be made and an additional column that will be added regardless. These 'choice' columns are not cumulative they are exclusionary. If one has a value then non of the others will be added to the weight times dollar amount and the additional column.

    In a sentence it looks something like this:

    (weight*.65)+L13 if P13=FALSE)+(M13 if L13=0 and if P13=FALSE)+(N13 if L13=0 and if M13=0 and if P13=FALSE)+O13 (This is the column that is always added) if P13=80 (weight*.65)+O13+P13

    Thank you!

  32. Lee says:

    Hi, wondering if anyone could help me.

    I need one cell to equal LL. If the value in another column is equal to 3.90, 4.90, 5.45, 5.95 or 11.40 I need the column next to this value to equal LL. I can do it with one value but not with all the values?


  33. Erick says:

    Has anyone attempted the MOS Excel Expert Part 2 if so can anyone help me with the question that ask to divide column D by Column E. Then use a Nested If and Roundup Function to roundup to the nearest integer.

  34. vinoth says:

    95% to 100% Silver
    100% to 102% Gold
    102% to 105% Diamond
    > 105% Platinum
    in slab calculation is value from to (95 % to 100%)

    how is do

  35. vinoth says:

    95% to 100% Silver
    100% to 102% Gold
    102% to 105% Diamond
    > 105% Platinum

    in slab calculation range for (95% to 100 % )

    how is work

  36. Deandre says:

    I'm struggling to combine IF function with an OR while incorporating text values with partial match.
    This is what I've gotten so far, but I'm not sure why it doesn't work.


    Thank you for the help.

  37. Masroor Ahmad says:

    Try this instead

  38. Vinayak says:

    Sir I have 3 if condition statements I want join them and want to make single condition kindly help me on this

  39. Bob says:

    I am trying to calculate the following, the formula is in cell E3. Drop downs in cell G3 containing Premier and Elite with associated values of 1.5 for Premier and 1 for Elite. These selected values of 1.5 or 1 are loaded into cell E3 after being selected.


    Everything works fine except for the Istext function. If any text is found in I3 then I want to apply a division formula to reduce the resulting value in the E3 cell by 50%. The values of E3 should then be .75 for Premier and/or .5 for Elite if text is found in I3. What may I be doing wrong?

  40. Soumyadarshi Choudhury says:

    Hey There,

    I am trying a formula that,
    one cell is having the same details of other selected cell by putting "=" but in the same cell how I include the formula if the selected cell is blank and in that case I can put "NA". Example,

    In cell A1 is having a drop down list of material
    In cell B1 I can put B1=A1, that means what ever the name of material will appear in Cell B1. Now If there is no value in cell A1 then how I include the "NA" in formula of cell B1. So that if there is material name than that will appear on cell B1 but if there is nothing then the Cell B1 will appeared as "NA".
    If you can help me it will be very helpful for me.

  41. Toni says:

    I'm trying to create a macro that will look at 2 cells validate if they agree if so, deliver the variance of the cells next to it to a specific cell, if it does not agree deliver the value of 0 in the these cells. then continue on to the cell below and do the same thing. I have a group of cell that have values and some days there are 7 and other days there may be just 4 but i need to ensure i am validating all everything. It has been sometime since I've done anything in VB.when i run it i get a compile error of Else without If. Hope this all makes sense. Below was what is used as my code. thank you!

    If B6 = B20 Then I6 = C6 - C20 & J6 = D6 - D20
    ElseIf B6 B20 Then I6 = "0" & J6 = "0"
    If B7 = B21 Then I7 = C7 - C21 & J7 = D7 - D21
    ElseIf B7 B21 Then I7 = "0" & J7 = "0"
    If B8 = B22 Then I8 = C8 - C22 & J8 = D8 - D22
    ElseIf B8 B22 Then I8 = "0" & J8 = "0"
    If B9 = B23 Then I9 = C9 - C23 & J9 = D9 - D23
    ElseIf B9 B23 Then I9 = "0" & J9 = "0"
    If B10 = B24 Then I10 = C10 - C24 & J10 = D10 - D24
    ElseIf B10 B24 Then I10 = "0" & J10 = "0"
    If B11 = B25 Then I11 = C11 - C25 & J11 = D11 - D25
    ElseIf B11 B25 Then I11 = "0" & J11 = "0"
    If B12 = B26 Then I12 = C12 - C26 & J12 = D12 - D26
    ElseIf B12 B26 Then I12 = "0" & J12 = "0"
    If B13 = B27 Then I13 = C13 - C27 & J13 = D13 - D27
    ElseIf B13 B27 Then I13 = "0" & J13 = "0"
    End If

  42. Prasad says:

    1) If employee Basic salary is less than 40% of his total salary than his basic salary should become 40%
    2) If Employee salary is more than 40% , his basic salary should neither increase or decrease but should not go below 40% of his total salary any given point of time

  43. Amy G says:

    I am trying to build a formula to tell me if an employee has exceeded their earned vacation balance cap. The maximum caps differ depending on their years of service. Employees with 0 to 5 years (or less than 10400 seniority hours) have a cap of 120 hours; employees with 6 to 10 years (more than 10400 but less than 20800 seniority hours) have a cap of 180, and employees with 11+ years (more than or equal to 20800 seniority hours) have a cap of 240. Can anyone help me build a formula to check the balance cap based on years of service or seniority hours? I was able to create an IF formula to determine the amount of vacation time earned each pay period based on seniority, but the formula for the cap is stumping me.

  44. Bikach Chandra Paul says:

    ABCD 563 443 CLOSED
    563 443 #VALUE!
    ABCD 563 443 CLOSED
    ABCD 563 443 CLOSED
    ABCD 563 443 CLOSED
    OPEN will not show
    OPEN will not show

    If column A1>1,"open","" will show in G1"open" or blank 

    but IF(AND(B1>1,C1>1,"closed","", will show in G1 "closed" or blank

  45. Rams says:

    if I would like to return an amount, that must meet 2 requirements/conditions form 2 other cell, how do I do that.

  46. aaron barefoot says:

    Hi there,

    I'm trying to check multiple keywords and return if they feature A, B, C.


    I can't seem to extend this formula to nest multiple IFs. Any idea what I'm doing wrong, this is my attempt to extend the formula:



  47. Jon says:

    This is probably impossible, but I have 2 possible cost bases which generate rates of return. I need a conditional statement that says, if cost base is 1, then return is x%. If I set cost base to 2, the number in the cost base 1 result cell remains at x% - ie, I do not want it to report "FALSE"
    A B
    1 Cost base = 1, result = 15%
    2 Cost base = 2, result = 20% but cell B1 remains at 15%

    At the moment I have to copy and paste the results as values, but hope to shortcut this.

  48. AbdulAziz Kapande says:

    I'm in kind request of your assistance,
    I am working with stock which i normally issue out weekly.
    i have different columns, opening balance, quantity received, quantity issued, closing balance among others. you realise i have a formula in the 'closing balance' column that automatically calculates; (=opening+received-closing). i have another column 'number of days out of stock'. this column includes the number of days for which the item had stocked out. example: if the i opened with 30 items on 1st march, i received 20 on 10th, issue out all the 50 on 21st then days out of stock is 31-21=10 if more is received on 25th then days out of stock will become 25-21=4.
    i want a formula that will automatically read when the 'current stock' column becomes zero and then subtracts to return the days out of stock.
    (i dont mind if the formula i am looking for assumes all months have 30 days)
    thank you in advance

  49. Nitin Dwivedi says:

    I have multiple conditions like if(and(B1<1,B2<6), "Not Eligible" elseif B2<7 then "A",b2<8 "B", b2<10 "C", if(and (B1<2,B2<7),"D",if(b2<8,"E",if(b2<10,"F", if(and(B1<3,B2<7),"G",if(b2<8,"H","I"))))).

    How can i make if statement where i need to check multiple conditions.

  50. Anna says:

    I am calculating staff mileage claim every month.
    I want to split the mileage by stage below.
    Perhaps you could help me how to calculate them if :-

    Total mileage claimable is 667.55km
    1st km to 100km @ $0.50/km = 100km
    101km to 300km @ $0.45/km = 300km
    301km & above @ $0.40/km = 267.55km

    Thank you in advance

  51. MARK says:

    HI Hopefully you can help me with this formula I am trying to create a new sales order form and need to for example have a list of products in one cell and according to what item is selected then the appropriate cost will come up in another cell eg: list in h22 = valley then j22=$5 if h22=hip
    hip j22=$10 if h22=gable
    gable etc.
    if need to be able to enter apx 25-30 values in the first cell (h in this example) and 15-20 in the second cell (j in this example)some of the items on the list in h will have the same value in J

    in the past my sales orders have had a page to 2 pages of rows for selecting various items and the # of items and a price and total cost for that row then all the row totals are added and taxed at the end this is fine except no one can tell what they've bought because it prints the entire sheet with all rows whether anything was selected on a row or not. if there is a way to have it consolidate and print only the pertinent rows where something was selected that would be great also hope this makes a little sense any questions please ask. hoping you can help Mark

  52. pradeep chandra says:

    Hi Team,

    can you please suggest me how to calculate second largest number among three numbers in 3 cells with only nested if

  53. kenken says:

    Hi say i have cells
    a - with different dollar amounts
    b - with either L2, L3, L4
    c - with Either anything from the Lists Below
    c.1 These can be clustered to rename the table as "LPF"
    Late Payment Fee
    LPF's info
    Late Payment Waiver Fee
    c.2 These can be clustered to rename the table as "NLPF"
    Customer Satisfaction
    CSAT Credit
    Nest Waiver Fee

    The Logic are :
    1. If there's no amount in cell "A" then it's "not applicable"
    2.a If cell "B" contains L4
    there are 2 conditions/logic
    a. If cell "B" contains "L4", cell "A" contains <-25 and cell "C"
    says that it's part of the "NLPF" list, then it shows "EXCEEDED"
    if not then it shows "NOT EXCEEDED"
    b. If cell "B" contains "L4", cell "A" contains <-50 and cell "C"
    says that it's part of the "LPF" list, then it shows "EXCEEDED"
    If not then it shows "NOT EXCEEDED"
    2.b If cell "B" contains L3, cell "A" contains <-100, then it shows
    "EXCEEDED", if not then it shows "NOT EXCEEDED"
    2.c If cell "B" contains L2, cell "A" contains <-300, then it shows
    "EXCEEDED", if not then it shows "NOT EXCEEDED"

    I already have the formula if cell "B" just have one condition/logic if it contains "L4" the thing is that it should contain 2 conditions plus it should consider the one written in cell "C". I'm finding it difficult to incorporate in my formula. Knowing that i also clustered the data in cell "C" into 2 groups.

    Can you help me regarding this?

    • kenken says:

      =IF(A1>=0,"Not Applicable",(IF(B1="Not Applicable","Not Applicable",(IF(AND(B1="L4",A1<-25),"Exceeded",(IF(AND(B1="L3",A1<-100),"Exceeded",(IF(AND(B1="L2",A1<-300),"Exceeded",(IF(AND(B1="L1",A1<-300),"Exceeded","Note Exceeded")))))))))))

      This is my original formula

  54. Julianne says:

    Trying to do a formula. If O10+L11+M11 is greater than 40 this cell equals 40. If O10+L11+M11 is less than 40 us that sum.

    • Doug says:

      A simple method to accomplish what you want is to sum O10+L11+M11 in say cell N11 by entering in N11 =SUM(O10+L11+M11). Then in say cell P11 enter =IF(N11>=40,40,N11). This means that if N11 is equal to or greater than 40 display 40 otherwise display the number in N11.

  55. Meh Patel says:


    I am designing cash advance request form for employee/ Contractor, where I have preference data like
    Requester: employee or contractor (I use Data validation function here)
    Amount: $XXX (we have rules of approval of this request on base of $ amount)
    Rules - if $XXX 3000,Finance approve)

    How I can use if function / any other excel formula so can get correct result on Approval's field?

  56. Amin says:


    Thanks for a very helpful knowledge. I'm stuck with this assignment for hours trying to figure out the formula. Wish u guys can help. I have set of data that needed to put into group. This is how it goes.

    A B C D E
    Item Description From To Category
    1 Cat Fish 1/2011 12/2012 Healthy

    2 Cat Fish 1/2012 12/2013 Healthy

    3 Cat Rice 1/2013 12/2013 Unhealthy

    4 Cat Fish 1/2014 12/2014 Healthy

    Based on the combination of items (Cat) and description (Fish & Rice), I can determine the category (healthy of unhealthy). My objective is to reduce the line item as to combine the range, (period from and to) since the line item 1 & 2 can be combine together from 1/2011 to 12/2013 since it goes tho the same category (Healthy).

    A B C D E
    Item Description From To Category

    1 Cat Fish 1/2011 12/2013 Healthy

    2 Cat Rice 1/2013 12/2013 Unhealthy

    3 Cat Fish 1/2014 12/2014 Healthy

    This is how I would like the end result would be. You guys have any idea how to formulate this?

    • Amin says:

      Sorry, this is how the range should be:

      A B C D E
      Item Description From To Category
      1 Cat Fish 1/2011 12/2012 Healthy

      2 Cat Fish 1/2013 12/2013 Healthy

      3 Cat Rice 1/2014 12/2014 Unhealthy

      4 Cat Fish 1/2015 12/2015 Healthy


      A B C D E
      Item Description From To Category

      1 Cat Fish 1/2011 12/2013 Healthy

      2 Cat Rice 1/2014 12/2014 Unhealthy

      3 Cat Fish 1/2015 12/2015 Healthy

  57. shivalik prashar says:

    how to apply if condition when value is in negative/below zero or value is above zero and we need the value either in zero or positive for example
    some time, while calculating income tax after saving the taxable income comes in negative we need the zero instead of negative value and if the value is in positive we need that positive value
    please explain how?

  58. M Ravikiran says:

    Hi Sir,

    I need to write values in multiple columns with single condition using IF Statement. like...

    If(C1=10 then C2=20 AND C3=30 AND C4=40 else C2=70 AND C3=80 AND C4=90)

    how to write general formula for the above

  59. M Ravikiran says:

    Hi Sir,

    I need to write values in multiple columns with single condition using IF Statement. like...

    If(C1=10 then C2=20 AND C3=30 AND C4=40 else C2=70 AND C3=80 AND C4=90)

    how to write general formula for the above

  60. FAIQ says:


  61. FAIQ says:


    • Doug says:

      This looks like it needs an IF OR statement like this:
      Notice the check for an empty cell comes first, then the check for the word absent. I typed EMPTY but you can type whatever word suits you. IF statements are not case sensitive so entering "ABSENT","Absent" or "absent" works.
      If you enter any word or character other than "Absent", the formula will return "A". That's as far as I got.
      Also I removed the last "N/A" because after empty and Absent there didn't seem to be any other condition to return.

  62. Tony V says:

    I'm looking for some help with this example

    1. Inspect blah for:
    a. Proper Installation
    b. Security
    c. Damage
    2. Inspect blah for:
    a. Wear
    3. Ensure blah is 20-30 lbs greater than blah.

    This is where I am at with my formula
    The data above is column F
    I am trying to get it to count only if column F is not blank, but not Numeric steps if it has sub-steps (a., b., c. etc..)so that I have a column at the end that is a sequence starting at the designated number and increasing by one descending from row 2. Currently it counts each non blank cell without regard for weather or not it is a "end step". Any ideas?

    • Doug says:

      Tony V:
      It might be a question of how you structure the data.
      I believe you'll be able to get what you want if you structure the data like this:
      1 Inspect blah for:
      Proper Installation
      2 Inspect blah for:
      3 Ensure blah is 20-30 lbs greater than blah
      Numbers in column A, Inspect in column B sub steps in column C.
      This allows you to put the formula in column D. Of course you can put the data into whatever named columns you want, just be sure they are in separate columns.
      Be sure to reference the proper cell address in the formula.

      • Tony V says:

        Thank you. That may work. If my project manager is set in his structure, is there an easy way to write the function so that (in english) if column has first character as a letter or next cell below and current cell are numeri, cout it sequentially?

        • Doug says:

          Tony V:
          The best way to work with data in Excel is to structure it in a manner that Excel can easily analyze. Otherwise, you'll have to ask the software to take apart the data so it can be analyzed. This requires more than just IF/AND/OR statements. In your case I think it could be done using VBA.
          At the end of the day I would recommend structuring the data so that it can be analyzed with Excel's regular functions. Then, if your manager insists on seeing the report in the fashion you first showed, structure it as I recommended, analyze the data and build a report with it. I've taken this approach many times and it works great.

  63. Stacie says:

    SO I am having a hard time with the IF formula, for example Column A has a total number of sales, and if the sales are under 199 the customer would get $0, and if the sales are over 200 but less than 399 it would be Column A * $1, and if the sales are over 400 it would be Column A * $2. Any suggestions?

    400+= *$2

    • PJ says:

      Column A = Total Number of sales
      Column B = result of your condition

      Formula in Column B:

      Note: Just format the cell to accounting or such to indicate $ sign.

      Hope this helps.

  64. Gina says:

    Need help with formula with conditional ruling.
    Column C value ("Ship" or "Recv") will determine what formula will be implemented for Column I.
    If C3="Ship" then I3=(H3-F3-G3)
    If C3="Recv" then I3=(H3+F3+G3)

    What is the best formula to use?

    • PJ says:

      Given: Column C = data input ("Ship" or "Recv")
      H3, F3, G3 = data to be solve respectively which depends on Column C
      Column I = here lies the result of your condition

      Formula in column I:
      =IF(C3="Ship",($H$3-$G$3-$F$3),IF(C3="Recv",($H$3+$G$3+$F$3),"Please Re-enter code"))

      • PJ says:


        If Column C, H, F and G have their own data per column then please delete the "$" in the formula.


  65. ALI says:





  66. Kathy B says:

    Hi there - I am looking to create a formula .... cells A and B will always have data, and I'm looking to populate cell C with a "score" based upon the criteria

    Cell A: (data will either be a W or NW)
    Cell B: (data will either be a Yes or No)

    cell C: (return score based upon one of the 4 scenarios)
    If cell A = W and cell B=Yes - return score of 0
    If cell A = W and cell B=No - return score of 5
    If cell A = NW and cell B=Yes - return score of 0
    If cell A = NW and cell B=No - return score of 10

    I appreciate any help that you can offer!

    • Doug says:

      Kathy B:
      OK, this is what I used to get the results you wanted.
      =IF(AND(A28="W",B28="Yes"),0,IF(AND(A28="W",B28="No"),5,IF(AND(A28="NW",B28="Yes"),"Zero 0",10)))
      Of course, you can change the cell addresses for A and B to whatever suits you.
      I entered the "Zero 0" as way to ensure the logic returned the correct result during my tests. You may want to keep this while you test it. Otherwise you can remove the quotation marks and enter a 0.
      Lastly, I will pass along these thoughts from Microsoft concerning multiple IF statements:
      While Excel will allow you to nest up to 64 different IF functions, it’s not at all advisable to do so. Why?
      1.) Multiple IF statements require a great deal of thought to build correctly and make sure that their logic can calculate correctly through each condition all the way to the end. If you don’t nest your formula 100% accurately, then it might work 75% of the time, but return unexpected results 25% of the time. Unfortunately, the odds of you catching the 25% are slim.
      2.) Multiple IF statements can become incredibly difficult to maintain, especially when you come back some time later and try to figure out what you, or worse someone else, was trying to do.
      3.)If you find yourself with an IF statement that just seems to keep growing with no end in sight, it’s time to put down the mouse and rethink your strategy.
      The formula we have here is relatively safe, but if you want to modify something in it, it could get confusing and error prone. Also, if someone comes behind you and wants to modify a condition or add a condition the same error problem could occur.

  67. Tasha says:

    I am looking to create a formula that says that if cell h2 says either 1,2,3,4,5,6,or 7 it would be $287.68, $491.46, $713.82, $917.60, $1121.38, $1343.74 or $1547.52. would it be an if formula or would it be best as a having it pull from another sheet?

  68. navdeep rao says:

    i have a data having diff product and diff division and i am unable to create an if nested formula to see if the product matches the division , if it matches than it should be 0 and if not than 1, so there like two divisions and 7-8 products i am confused
    the division's are BI and AS , it says that product "bike" belongs to the BI and all others to AS

  69. Junior says:

    every day were allowed to use $100 for cabs. If we don't use $100 only $50 can carry over to the next day which would be $150. But If we use $125 the difference will be subtracted from the next day so the $25 will be taken out of the next day which will be $75. If $200 were taking from that day, which would be negative $125, you subtract that from the next day $100 and that would be -25. Continuing this formula how would I word it out. Only able to carry over $50 or less a day.

  70. Daga says:

    I have a really strange problem. I have like 3 conditions for 3 conditions and expect 2 possible outcomes (and no idea how to solve it).
    Example: I can have three concentrations (5%, 20% and 25%) and for given concentration I have another condition (x<y for 5%, a<b for 20% and c<d for 25%). And if the second condition is met for a given concentration, I expect outcome "OK". In other case: "not OK". Do you know how to deal with it? Please, help!

  71. Jan says:

    I'm trying to create a formula for the following scenario and returning a #value error.

    A = Yes and B = No
    A = Yes and C = error
    "Fail or Pass"

    • Doug says:

      I think this will work:
      =IF(OR(AND(D36="Yes",E36="No"),AND(D36="Yes",F36="Error")), "Fail or Pass",9)

  72. franklin.d says:


    I have a text value as

    Yes or No combination in Column A,
    Completed, in-progress and YTS in Column B,
    this is combination if "No" in column A and i have In-progress in Column B i need to get a value "Red" likewise
    if i have "Yes" in Column B and i have Completed in column B then i need to get a value as "Green"

    Kindly help to derive a formula....

  73. Md. Jafor Ali says:

    i need help to make a formula for the following issue:

    firstly i want to make a category suppose
    age 770 to 1030 milkable cow
    Age 1030 to 1190 Dryer cow

    Secondly if dryer then how many days gives milk a milkable cow within one year.


  74. Adnan says:

    hey.. can u please help with this one.

    i have to make the bill and it is calculated as follow

    1, select a company.
    2, select an order number.
    3, select a colour(and its price).
    4, multiply it with the colour's price.

    i have to test one cell on four different criteria to get to the billing amount. please help me.

  75. Jimmy Ramirez says:

    I have this IF statement in one of my file;


    I just want to know what was 9,4,2 stand for in that statement?

  76. NB says:

    can someone please help me with this If statement,

    so basically I want the cell B1 to do three things :
    1- if date is entered in A1, B1 needs to show that date + years so I used =IF(ISNUMBER(A1), A1+740)

    2- if A1 is empty, B1 will show "Expiry date not found"

    3- if date shown in B1 is expired I want it to Print "expired"

    so basically I have 3 statements but not sure how to arrange them in 1 if statement, can someone please help ?


    • Hi!

      Assuming "date shown in B1 is expired" means the date in B1 is earlier than today's date, the following formula should work a treat:

      =IF(A1="","Expiry date not found", IF(A1+740<TODAY(), "Expired", IF( ISNUMBER(A1), A1+740, "")))

      If "expired" means something different, please clarify.

  77. Oten says:

    I have the following data in C7:
    S123 - using formula will result in D7 as 80123
    SA123 - using formula will result in D7 as 81123
    E123 - using formula will result in D7 as 82123
    EA123 - using formula will result in D7 as 83123
    C123 - using formula will result in D7 as 84123
    CA123 - using formula will result in D7 as 85123
    U123 - using formula will result in D7 as 87123
    UA123 - using formula will result in D7 as 86123
    I tried to nest IF statements but excel is returning an error that maximum nesting is reached.





  78. Bappa says:

    Hello Mam!
    I have Question. Thats <> how can I do this?

    • Bappa says:

      Hello Mam!
      I have Question. Thats If A1 is True then Multiply B2 and C2.
      How can I do this?

      • Doug says:

        There should be a value in A1 that can be tested for true or false. For example the formula might read, =IF(A1=1,B2*C2,"A1 is not true")
        So the formula says, If A1 equals 1 then multiply the value in B2 times the value in C2 otherwise display A1 is not true.
        A1 can be text like "Yes". If you want Excel to evaluate text enclose the text in double quotes as shown here.

  79. Jonathon says:

    I have a dataset in which I need to index column J1:J30000 IF column BF1:30000 is greater than 94% and if it is less than 101%. I can already get =IFERROR(INDEX('GM400'!$J$1:$J$30000,SMALL(IF('GM400'!$BE$1:$BE$30000<$L$1,ROW('GM400'!$J$1:$J$30000)),ROW(1:1))),"") to work to locate projects over budget but I'd like to show those projects that are within 5%, 10% and 20% of their respective budgets.

  80. Cynthia K says:

    Hi all,
    Need your help and widsom... is it possible to do a nesting if like? I have a raw with a GL account (3500 to 6500) and another column with finish goods & raw part number, which the first 3 numbers of a finish good will give me what color of finish good it is, and on the raw materials it's the 3rd to 5th number will give me the color, I need something like, "if, B2 has 3500, do a mid on D2 for 1-3, and or if B2 has 4000, do a mid on D2 for 3-5, is it possible to do this in excel?
    thank you in advance!

    • Cynthia K says:

      Hello guys
      Rajesh Kumar, here's my example of what I was talking about on combining or nesting an IF formula with a MID at the same time.
      thank you all for your help in advance! :)

      column "E" "N" "Y"
      Product GL# Color
      01016103007 3050 =IF((N2=3500),MID(E2,5,3),IF((N2=3070),MID(E2,3,3)))
      51640200801 3070 =IF((N2=3500),MID(E2,5,3),IF((N2=3070),MID(E2,3,3)))

  81. Ron says:

    I have A2=28, B2=45 to get a smaller value i applied the formula =IF(A2>B2,A2-B2,A2). So i got an answer has 28.

    My question is if i change a value in A2=50 now i should get a value has B2 in C2 cell.

    So i have entered has =IF(A2>B2,A2-B2,A2)*OR(IF(A2<B2,B2,B2))

    Still it is not working, can someone assist me how to put a formula with a proper condition?

  82. Nathan says:

    HI,I have the followimg information.

    political political party.
    if Bosco NRM,
    MAO DP

    Use nested if function to assign each of them the respective political party.Assuming that entries start from cell A1.

  83. Andy says:

    Hi, and thank you for all of the above, but still having an issue:

    E134 Review Posted F134 No
    E135 Job Posted F135 No
    E136 Work Complete F136 N/A
    E137 Overtime F137 Yes

    I now need to Executive Summary Cell C150, to show all those equal in Col F to No, but to show whats in Col E, through the use of IF and CONCATENATE as there will be several responses (Col E to fit into Cell C150

    IE Cell 150 to show Review Posted
    Job Posted

  84. Stefanie says:

    Hello -

    I am wondering why the formula I copied from above is not picking up the various conditions, rather only returns "Fail" for all rows.


  85. Doug says:

    Try entering lowest variable to highest and check the logic of the statement. Something like this where the data is in A2:
    =IF(A2<65,"Less Than 65%",IF(A2<=69,"65%-69%",IF(A2<=70,"70%-79%",IF(A2<=80,"80%-89%",IF(A2<=90,"90%-100%","Fail")))))

  86. Kate Jones says:

    I need to write a formula that checks two columns for values and return one of three values based on the results. Specifically:

    - If the two column cells are null, return a null.
    - If they both have a value of zero, return the number 0.
    - Otherwise if the first cell is greater than zero, return the first cell divided by the second.

    I've tried several formulae, using both AND and IFBLANK. The most concise to illustrate what I want is:

    =IF(AND(B132=””, C132=””),””, IF(AND(B132=0, C132=0),"100%", IF(B132>0,C132/B132,0)))

    All of the individual bits work, but I can't seem to string them together without making syntax errors. I get either a "too many arguments" error or a name error.

  87. Doug says:

    I think what you need to use is an IF AND OR statement.
    Check out this article here on AbleBits and see if it helps.
    Specifically in the "Using the OR function in Excel" there is a description and examples of how to use OR and AND together.

  88. Pradeep Naik says:

    I want to check two conditions, e.g. if associate contract end date is less than today then i want result "LEFT" and if associate has put resignation and his LWD is entered in cell then i want result "LEFT" and if if contract end date is not less than today then want result "ACTIVE" and if contract end date is not less than today but his LWD is entered in LWD cell then want result "LEFT".

    Please give formula for the same.

  89. Lynnie B says:

    I'm trying to set up a nest. One column is why and if order error is chosen, then I'd like the next column to give me a drop down of choices for only that answer. Such as: Customer Service
    Sales, Dealer. Any ideas

    • Hello, Lynnie,

      Unfortunately, it is not possible to solve your task using standard Excel tools and functions. Most likely you need a special macro. I am really sorry we can’t help you with this.

      You may try to find the solution in VBA sections on mrexcel.com or excelforum.com.

      I wish I could assist you better.

  90. Kristin says:

    I need help. I am trying to come up with a formula for a grading system, but there are two factors involved.

    For the students grades they have two categories that they have Summative and Synthesis.

    To get Honors, they need to get 72 pts in Summative and 18 pts in Synthesis
    To get High Pass, they need 68 pts in Summative and 17 pts in Synthesis
    To get Pass, theye need 56 pts in Summative and 14 pts in Synthesis.

    Help please. What formula would I use for that. I already have the calculations for each students summative and synthesis grades, just need to get their letter grade.

  91. Tawanda Mukarati says:

    I am trying to use IF function to assign different ore types to different stockpiles. The ore types are based on source of material( PIT A, PIT B or PIT C), type of material (FRESH, TRANSITION or OXIDE), and the grade of the ore (HIGH or LOW).

    For example, I want to allocate High Grade Fresh Material from Pit A to stockpile F12, and High Grade Oxide Material from Pit B to stockpile F15 and so on

  92. Albino says:

    How would go about writing an excel formula for the following:

    Start Date must be later than April 1st following the calendar year in which you attain age 70 1/2.

    Eg DOB = 10/17/1954, Age 70 1/2 = 04/17/2025 the start date would be 04/01/2026 because the Age 70 1/2 date is after 04/01 and has to go to the following year.

  93. lisa says:


    I have 4 scenarios I'm working with and created 4 columns with these formulas, which all work.
    =IF($EJ5="","",IF(AND($BF5="y",$EJ5"",$EA5="A"),$EJ5&" - A, "&$EH5,""))
    =IF($EJ5="","",IF(AND($BF5="n",$EJ5"",$EA5="A"),$EH5&", "&$EJ5&" - A",""))
    =IF($EJ5="","",IF(AND($BF5="y",$EJ5"",$EA5=""),$EJ5&", "&$EH5,""))
    =IF($EJ5="","",IF(AND($BF5="n",$EJ5"",$EA5=""),$EH5&", "&$EJ5,""))

    And then I created a 5th column with: =EL5&EN5&EP5&ER5 so the results are in one column.

    Is there anyway to take the 4 column formulas and merge them into one column.... not doing it the manual way I created?



  94. Kshitij says:

    What is the wroung in this formula plz help

  95. Zaman Afridi says:

    Svetlana Cheusheva mam please hlep i have table in which i will waive charges on those which are lay at our company after 7 days but which i used if formula then system calculate amount less then seven days its shows amount in minus i want to stop this and system reflected 0 amount instead of amount in minus kindly help and guide me thanks

  96. Zaman Afridi says:

    Svetlana Cheusheva mam please hlep i have table in which i will waive charges on those which are lay at our company after 7 days but which i used if formula then system calculate amount less then seven days its shows amount in minus i want to stop this and system reflected 0 amount instead of amount in minus kindly help and guide me thanks
    my formula is following and just add the above condition if possible.

  97. Jackie says:

    I am trying to write a formula to look in cell V1, if the value = 11 or 12 and V3 is less than 25 in V73 I want the result to read 25, but if V1 = 16 and the vale is less than 28 I want it to read 28.....when I have 16 in V1 the formula I am using does not work....any help would be greatly appreciated. Here is my current formula:


  98. Lahai says:

    I'm trying to create a nested formula with 12 arguments. example, farmer, hair dresser, okada driver, pastor, teacher, student, trader, petty trade, agricultural activities, tailor, and banker. I want to group this into 4 groups using the nested IF formula like this: =IF(columnH=farmer,hair dresser,okada driver,pastor,"Baseline2016",IF(columnH=teacher,student,trader,petty trade,"Baseline2016",). But the formula isn't working, please help.

  99. Abhishek Raj says:

    Thanks a lot...this helped me really !!!

  100. JayCee says:

    I am trying to write a formula for a behavioural rating at a given time point (second by second) where a rating is available for a given time range. So if the time point falls withing the range then the relevant behavioural rating applies, but if it falls in the next time range then a different behavioural rating applies. I hope this makes sense?! So Column 1 = behavioural rating, column 2 & 3 = the time range in which that behaviour occurs, column 4 & 5 = one second time range and I want column 6 to apply the behavioural rating that is associated with the value in column 5 (it's okay to ignore column 4). Any assistance is greatly appreciated.
    Kindest regards :)

Post a comment

Thank you for your comment! When posting a question, please be very clear and concise. This will help us provide a quick and relevant solution to your query. We cannot guarantee that we will answer every question, but we'll do our best :)