Comments on: Excel nested IF statement - multiple conditions in a single formula

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 is very straightforward and easy to write. But what if your data requires more elaborate logical tests with multiple conditions? Continue reading

Comments page 5. Total comments: 650

  1. Hello,
    Thank you for the informational tutorials!
    I am trying my hardest to create an excel sheet to quickly sum up points based on a score.
    For example, if you finish 1st, you receive 40 pts, 2nd = 39, etc..
    I have a column for "Place": 1, 2, 3...40
    I have a column for "Points."
    Could you please provide me with some direction on HOW to get 1st Place = 40 pts, 2nd Place = 39, etc?
    I thought this would be an IF formula but I'm not getting the output I would like, just VALUE!
    I would GREATLY appreciate it!

  2. =IF($A$4=$P$4,($B$4=Q4)+(IF($D$4=$P$4,($E$4=Q4)+(IF($G$4=$P$4,($H$4=Q4)+(IF($J$4=$P$4,($K$4=Q4)+(IF($M$4=$P$4,($N$4=Q4),"")))))))))

    Hi, can you please help me with my formula on how I can return multiple true values because for only 1 false value the rest are not showing.

    1. Hi!
      Sorry, it's not quite clear what you are trying to achieve. Please provide me with an example of the source data and the expected result.

      1. I am trying to create a reservation log calendar that will shade corresponding dates, the condition will be - it should only shade if room number matches.

        That formula works when entered in conditional formatting, only it errors if there is a single room number differ and it will not shade the rest of the dates with matching room numbers.

        What function I can use to return multiple true values even if there are false values as well, I tried index and match even vlookup, but just can't figure it out.

        Total 38 rooms
        5 different reservation dates (with diff room numbers)

        1. Hello!
          The information you provided is not enough to understand your case.
          Write what data is written in the cells that your formula refers to and what result you wanted to get.

          1. P4 -23 (this is the room number to match from the below reservations dates)
            P4-41 (38 Rooms)

            A4 - 23 Room number
            B4 - Jan 5
            C4 - Jan 10

            D4 - 23 Room number
            E4 - Jan 13
            F4 - Jan 18

            G4 - 5 Room number
            H4 - May 1
            I4 - May 20

            J4 - 23 Room number
            K4 - Jun 2
            L4 - Jun 15

            M4 - 23 Room number
            N4 - 12 Dec
            O4 - 20 Dec

            And I have a one year calendar: Q4:NQ4

            What I want to achieve, if any of the room number matches to (P4), dates to automatically highlight in the calendar.

            1. Hello!
              If I understand your task correctly, the following conditional formatting formula should work for you:

              =($A$4=$P$4)*($B$4=Q4)+ ($A$4=$P$4)*($C$4=Q4)+ ($D$4=$P$4)*($E$4=Q4)+ ($D$4=$P$4)*($F$4=Q4)+ ($G$4=$P$4)*($H$4=Q4)+ ($G$4=$P$4)*($I$4=Q4)+ ($J$4=$P$4)*($K$4=Q4)+($L$4=Q4)+ ($M$4=$P$4)*($N$4=Q4)+ ($M$4=$P$4)*($O$4=Q4)

              I hope my advice will help you solve your task.

        2. Apologies, this is the formula I have:

          =IF($A$4=$P$4,($B$4=Q4)+(IF($D$4=$P$4,($E$4=Q4)+(IF($G$4=$P$4,($H$4=Q4)+(IF($J$4=$P$4,($K$4=Q4)+(IF($M$4=$P$4,($N$4=Q4),"")))))))))

          I wish to share a screenshot but not possible when tried.
          Thanks a lot.

  3. I like to have different formulate based on the previous cell conditions eg, =if(c2="Male",2+1,if(C2="Female",2-1)) but I get error

    1. You need an "else" option.

      If there are only Male and Female in your list with no blanks then:
      =if(c2="Male",2+1,2-1)

      OR, instead of making a formula, just state the value for each:
      =if(c2="Male",3,1)

      If there are blanks:
      =if(c2="Male",3,if(c2="Female",1,2))

      I'm a fan of binary myself:
      =if(c2="Male",1,if(c2="Female",0,""))
      This counts all the males, provides a 0 for females, and a blank for anyone missing that information. This allows you to sort by that column and fill in the missing information if desired but the Else could also be something like "U" for unknown.

      Hope this helps.

  4. UPI/103312588735/CR/NOBLE AUTO CARE K/CIU/Payment (Ref# S52276500)
    TRTR/776802210414/02-02-2 02121:04:14/BNA (Ref# S52704553)
    UPI/103418091878/CR/RAJAV EL/KKB/tyre (Ref# S55846936)
    UPI/103418535311/CR/BALAM URUGAN RENU/UTI/UPI (Ref# S56044583)
    UPI/103420379551/CR/Mr S VIJAY RAGHAV/IDI/Tyrep (Ref# S56421977)
    BY CASH JAYAMOORTHY (Ref# IB82474)

    i am trying to bifurcate the transactions in seperate catagory like - Cash, UPI, TRTR - how to plot multiple conditions in if statement

    I am trying below formula it is not working
    =IF(FIND("TRTR",F2,1),"TRTR",IF(FIND("ATM",F2,1),"ATM",0))

    Please help on this

    1. Hi!
      What exactly is not working in your formula? Perhaps you need to add all the conditions. For instance,

      =IF(FIND(“TRTR”,F2,1),”TRTR”,IF(FIND(“ATM”,F2,1),”ATM”,0),IF(FIND(“UPI”,F2,1),”UPI”,0))

  5. Hello,

    I've been working on an excel sheet for nearly a month and cannot figure out how to get the result that I want using IF Statements. I was able to get 2 of my statements to work the way I need them to but the third seems to require a few more IF, AND, OR statements to work but I cannot for the life of me get the result I want. My example is as follows:
    =IF(A2<=1,C31/1.7,0) This statement is in cell C32 and works as I intend it to with the correct result populating in C32. C33 and C34 populate as 0 which is what is needed.
    =IF(A3<=1,C31/1.3,0) This statement is in cell C33 and also works as I intend it to with the correct result populating in C33. C32 and C34 populate as 0 which is also what is needed.
    =IF(AND(A2=0,A3=0),C31/1.9,0) This statement is in cell C34 calculates the correct result in C34 however, C32 and C33 also calculate their respective correct results when I need them to return a result of 0.

    The actual cell data I am using is as follows:

    A1 $1,321.00
    A2 $567.00
    A3 $1,919.00
    A4 $50.00
    $3,857.00
    $308.56
    $4,165.56
    $1,000.00
    $700.00
    $700.00
    $0.00
    $0.00
    $0.00
    $0.00
    $6,565.56
    $2,500.00
    $0.00
    $9,065.56
    $453.28
    $9,518.84
    $0.00
    $0.00
    $0.00
    $0.00
    $0.00
    $0.00
    A31 $9,518.84
    A32 $0.00
    A33 $0.00
    A34 $0.00

    Any help or insight would be greatly appreciated! Thank you!

    1. Hello!
      Try adding one more condition to your IF function.

      =IF(AND(A2< = 1, A2 < > 0, A3 < > 0),C31/1.7,0) I hope it’ll be helpful.

      1. Thank you for the insight! I will play with adding an additional condition and see where that gets me.

        1. Just a follow up...
          Your suggestions did end up working! Thank you so much! After playing around with adding an additional condition, everything is working as I need it to, and I was even able to expand on that to encompass much more data. Thank you for the insight Alexander!

  6. Hello,
    I am seeing if anyone can help me write a nested formula with multiple arguments, or what is the best way to do what I'm trying to do? the result, based on what's was rcvd. yes, if yes result would be n/a, if not rcvd, the result would be yes, if n/a, result will be n/a

    RCVD NEEDED
    DOC 1 YES DOC 1 N/A
    DOC 2 NO DOC 2 YES
    DOC 3 N/A DOC 3 N/A

    =IF(X7="YES","N/A",IF(X7="NO","YES","YES",IF(X7="N/A","N/A","N/A")))

    1. Hello!
      Please check the formula below, it should work for you:

      =IF(X7="YES","N/A",IF(X7="NO","YES",IF(X7="N/A","N/A","N/A")))

  7. I need to write a formula like IF the company Name = List and Product name = List and Product category = List then The Price = List

  8. Wonder if anyone can help me to solve this
    Column B5: GOV or PRI
    Column B39: Total value example 2,500

    IF B5 = GOV, and B39 range 1 to 1,000 = 0, 1,001 to 2000 = 100, 2001 to 3000 = 200 etc
    IF B5 = PRI, and B39 range 1 to 1,000 = 0, 1,001 to 2000 = 50, 2001 to 3000 = 100 etc

    1. Hello!
      If I understand your task correctly, the following formula should work for you:

      =IF(B39 < 1001,0, IF(B39 < 2001,100, IF(B39 < 3001,200, )))*(IF(B5="GOV",1, IF(B5="PRI",0.5,)))

  9. Basically i want that based on the value on B column, C column should be filled.
    below is giving me value 10 for all values of B column. Kindly help

    =IF(OR(B2>=0,B2=49,B2<=108),12))

    1. Hello!
      I don't know what values you have in column B. There is no value 10 in your formula. The second condition does not make sense, because if B2=49 then always B2<=108

  10. Hi! How do you write 17<=C13<=28 in a formula? Please help me. Thank you.

  11. How to compute in a 3 situation to the column 1 to column 2 in 1 formula

    Situation 1, Column 1 equal to column 2 the answer is column 2
    Sample:
    2 & 2 = 2
    -1 & -1 = -1

    Situation 2, Column 1 is greater than or less than column 2 but both positive or both negative the answer is whichever is higher
    Sample:
    2 & 3 = 3
    4 & 1 = 4
    -2 & -3 = -3
    -4 & -1 = -4

    Situation 3, Column 1 is greater than or less than column 2 but in different (Column 1 is positive and Column 2 is negative or vice versa) the answer should be in sum
    Sample:
    2 & -3 = -1
    -2 & 3 = 1
    -4 & 1 = -3
    4 & -1 = 3

      1. Can you share with me the right formula? Article is very broad, no exact formula base on the situation.

    1. Anyone can solve this situation?

      1. Hi!
        If you read these instructions carefully, you can easily write the formulas you need. All the instructions you need are found above in this article.

  12. hi
    any idea way the ONLINE NOT show

    =IF(H2&J2="APPROVD","APPROVd",IF(AND(H2&J2="NOTAPPROVD","NOTAPPROVD"),"ONTIME","DEILY"))

      1. Write a programme to input an alphabet and then check the alphabet vowel or consonant

  13. Hello!

    I am trying to create and If/Then formula for generations. What I am looking for is if a birthdate (1/1/1954) falls into a range of dates (1/1/1946 to 12/31/2964) then it would be labelled a Baby Boomer. I have 5 generations that I need to include. Thank you!

  14. Great information shared here!! Thanks for sharing.

    I need help with the following formula.

    Column I is a title
    Column J is a dollar

    if column I is X title and column J is less than X dollars increase by Y not to exceed Z but if column J is more than X dollars do not increase.

  15. I need to count the value (will be a whole number) in Column "I" IF Column B word is "New" AND Column C word is "Shirt". How would I set this up?

    Thank you!

  16. Hello,

    Trying to create a formula with no success so far. The range of cells, in this case D:32:D35, are assigned either "yes" or "no". If 1-2 of these cells are marked "yes" then L:31 should be assigned value of .5. However, if 3-4 of the range of cells are marked "yes", then L:31 should be assigned value of 1.

    Any advice greatly appreciated.

    Thanks!

  17. Attenace Incentive allowance
    No Of Day Full OT Incentive Amount Per Day
    26 4 40
    26.5 4 60
    27 3 60
    27.5 3 60
    28 60
    29 60
    30 60
    31 60

  18. Can someone please help me with a basic formula. I have 5 product codes each with a $ value, and I have 200 rows of information, each time I enter a product code in 1 cell then I would like the value shown in the next cell without having to do a manual calculation each time. Is this possible and what would the formula be please. Thank you for any assistance you can offer in this regard.

    1. Hi!
      The information you provided is not enough to understand your case and give you any advice.
      What value do you want to display in the next cell? Please describe your problem in more detail.

      1. How do I send you the spreadsheet and you can see how Im trying to work it.

        1. Hi!
          Please describe your task in more detail and send us a small sample workbook with the source data and expected result to support@ablebits.com. Please shorten your tables to 10-20 rows/columns and include the link to your blog comment.
          We'll look into your task and try to help.

  19. I am looking for a formula that will give me a percentage if a certain number falls within a range of numbers.
    Range:
    $200-$299 I get 1%
    $300-$399 I get 2%
    $400-$1000 I get 3%

    Scenario--My total sales are $39,308 and I worked 147 hours this would put me at $267.40 per hour, by the example below I would get 1% of the 39,308 totaling $393.08 commission

  20. I think, it is more simple you face multiple range data, just make a reference table, sort by value asc, then use VLOOKUP (value, table, col_index, [range_lookup]), with [range_lookup]=1.

  21. Hi how can I make this formula shorter? It seems like it doesn't work because its too long but its all the data i need to input. thank you!!

    =IF(H21>2.8,6.60,IF(H21>2.7,7.20,IF(H21>2.6,7.80,IF(H21>2.5,8.40,IF(H21>2.4,9.00, IF(H21>2.3,9.60,IF(H21>2.2,10.20,IF(H21>2.1,10.80,IF(H21>2.0,11.40,IF(H21>1.9,12.00,IF(H21>1.8,12.60,IF(H21>1.7,13.20,IF(H21>1.6,13.80,IF(H21>1.5,14.40,IF(H21>1.4,15.00,IF(H21>1.3,15.60,IF(H21>1.2,16.20,IF(H21>1.1,16.80,IF(H21>1.0,17.40,IF(H21>0.1,18.00))))))))))))))))))))

    1. Kindly,remove the commas from the digits

  22. Thank you - this post of yours helped me to learn something new today.

  23. Here is the IF(AND formula that returns the first answer: =IF(AND(C8="PL",D8="1/4",K8="S304L"),11.16). The problem is I cannot connect that in the same cell with: =IF(AND(C9="PL",D9="1/4",K9="A36"),10.21).

  24. I need to check 3 cells and return an answer, then check the same 3 cells with new conditions and return a new answer. This is a spreadsheet for steel estimates. It needs to see "PL" (plate), "1/4" (thickness), and "S304L" (Stainless Steel) and return a weight per Square Foot. It also needs the see "L" (angle), 2x2x1/4 (size), and "A529-50" (Carbon Steel) and return a weight per Linear Foot. It also needs to see a lot of different shapes, sizes, and grades and return a correct weight per unit. Automating this function would save a lot of time looking through steel books!

    Happy Friday!
    Clark

    1. Hello!
      I’m sorry but your task is not entirely clear to me. Could you please describe it in more detail? What result do you want to get? Give an example of the source data and the expected result.

  25. I am trying to write a formula such as this:
    =IF((M10="FORD")*AND(M23="F750")*OR(M23="F550"),1,0)
    Basically i want to return a value of 1 if M10 is equal to FORD and M23 is equal to either F550 or F750.

    This formula returns a value of 1 every time even if i have M23 equal to F250

  26. hi could you help me? im having trouble with my formula.

    here are the conditions;
    if 17<=X<=28, then the answer would be 0.85
    but if 28<X=55, the answer should be 0.65

    thank you

    1. X is in cell C4.
      i hope i could reach some help :((

  27. HI,

    I need to calculate the IF statement between two numbers having multiple criteria:

    ex: Criteria
    from 20-30 =200
    from 31-40=300
    from 41-50=500

    B2 = 18
    B3= 25
    B4= 39
    B5=41

    With only one criteria I can calculated: =IF(AND( B2>=31,B2<=40),"300","0"), but when it comes to more I am not sure how to do it.

    Thank you.

    1. Hello!
      The formula below will do the trick for you:

      =IFERROR(INDEX(B1:B4,MATCH(D1,A1:A4,1)),0)
      A B
      20 200
      31 300
      41 500
      50 500
      D1 --- 18, 25,39 or 41

      I hope my advice will help you solve your task.

  28. Can you please help me. I have been struggling with this nested formula.

    Cell Values:
    C12 - 85, C13 - 87, C14 - 90, C15 - 95
    D12 - 200, D13 - 300, D14 - 500, D15 - 1000
    E3 - 90, E4 - 86, E5 - 98, E6 - 85

    I need to find the corresponding value for E cells from D cells if the number is greater than or equal to numbers in C cells. [how can I come up with a formula for this? - Cell F should be "500" since E3 => C14]

    Formula in Cell F:
    =IF(E3>=C12,D12,IF(E3>=C13,D13,IF(E3>=C14,D14,IF(E3>=C15,D15,"0"))))

    1. Hi,
      I’m sorry but your task is not entirely clear to me. Could you please describe it in more detail? What result do you want to get?
      What does "Cell F should be “500” since E3 => C14"??
      Give an example of the expected result.

  29. Good day Sir

    Can you please help me. I have been struggling with this nested formula.
    I just need someone to please explain it to me cause I just can't grasp this.

    I need a formula which helps me with the following:

    1) If Column B & C has no date populated the Cell E should reflect a " "

    2) IF column B has a date populated and no date populated for Column C then Column E must read "Open"

    3) IF column B & C have a date populated then Column E must read "Finalized"

    I need to have these conditions nested in one in Column E

    Here's the formula I'm using, I think I'm on the right track ;

    =IF(AND(ColumnB>1,ColumC>1),"Finalised", "Open")

    Somewhere in this formula I need amend it to display " " in fields where no Date is captured in Column B

    Column A Column B Column C Column E

    Policy number: Task Start: Task End:
    1234567890 22/02/2021 16:11 22/02/2021 16:14:07

    Please help kind Sir

    1. Hello!
      Please use the following formula

      =IF(B1&C1="","",IF(AND(B1 < > "",C1=""),"Open","Finalized"))

      After that you can copy this formula down along the column.

  30. I am working with data across multiple sheets. I have a dropdown list in one sheet. I need a formula that will take the data from multiple sheets and return it to cells on the first sheet of the book based on data chosen in the drop down menu. All data is text I have tried if statements but can't seem to make it work. Any help in this matter would be greatly appreciated.

  31. Greetings,
    =IF(L16>=1,B16,IF(L15>=1,B15,IF(L14>=1,B14,"""")))
    This is the general idea of the formula I need but the data spans thousands of rows. In column L is numbers, column B is dates in descending order. The purpose is to display the date from the same row as cell value in Column L =>1. This formula works but I obviously cannot type out that many conditions. Any help will be greatly appreciated.
    V/R
    Erik

      1. A B C D E F G H I J K L
        1 1-May-20 FS 1.0 1.0
        2 3-Jun-21 BS 1.0
        3 5-Jul-19 FS 5.0 1.0
        4 3-Nov-21 BS 1.0
        5 2-Feb-21 BS 1.0
        6 3-Feb-21 1.0
        7 4-Feb-21 .7
        I apologize I don't know how to show the gridlines on here but essentially I need to scan column J for the most recent entry greater than 1 & display the date from column A of the same row. The formula would yield, based on the numbers above, 3 Feb 21 as the most recent date column J was >=1. So one result based on multiple conditions I guess. I just don't know how to get it to scan thousands of rows in a column without doing individual IF formulas in descending order. Thank you for the help.

        1. Hello!
          To find the last match of a value in a column, use the formula

          =LOOKUP(2,1/(D2:D8>=1),B2:B8)

          D2:D8 - column in which we are looking for the condition
          B2:B8 - the column from which we show the value

        2. I have looked into the Vlookup option. This function will not work due to the fact that multiple cells may have the same data & it is not in descending order. I need to scan for values >=1.0 & display the date in the same row that is closest to today. So if Cell L14=1.5 the date in B14 would be displayed unless cell L36=1.0 in which case the date in B36 should be displayed. Again, if further down L45=1.0 I want the date in B45 displayed. Thank you again!

  32. Been working at this for 3 days and my Brain is starting to hurt. I have these formulas and need to get it into 1 line formula. Each single line works but I can't get them to play nice together.

    Appreciate the help to make this work

    =if(and(A3="D",E3>2000),E3*0.25,"500")
    or
    =if(and(A3="U",E3>1200),E3*0.25,"300")
    or
    =if(and(A3="N",E3>800),E3*0.25,"200")

    1. Hello!
      Your formulas contradict each other. For example, if A3 = "" and E3 = 0, then the conditions of all formulas will return FALSE. What value do you want to write in the cell - 500, 300 or 200? Therefore, you cannot combine your formulas. Change the conditions.

  33. Hi Guys,

    Am trying to create an if formula but keep getting errors.

    I am looking at four years data and want to compare individual or collective year results to a rating
    Year 1 = 33%
    Year = 60%
    Year 3 =20%
    Year 5 = 1%
    I want to create a formula which says that if the average of year1 to Year 4 is >=60% but =60%,=60%,<=90%),"meet requirements", "not met requirements").

    Any suggestion is appreciated.

    Thanks

    1. Hello!
      Describe the background and conditions more precisely. Which means -
      Year = 60% ??
      average of year1 to Year 4 is >=60% but =60%,=60%,<=90%),"meet requirements", "not met requirements") -??

    2. Should say if Year 1 to 4 is >=60% but <=90%

  34. Can anyone guess why my formula below get error

    =IF(J2>=750000, I2+(J2/2), IF(J2>=250000, I2+(J2/3), IF(J2>=100000, I2+(J2/4), IF(J2>=50000), I2+(J2/5))))

    Thanks Guys

    1. Hello!
      Please try the following formula:

      =IF(J2>=750000,I2+(J2/2),IF(J2>=250000,I2+(J2/3), IF(J2>=100000,I2+(J2/4),IF(J2>=50000,I2+(J2/5),""))))

      I hope it’ll be helpful.

      1. Got formula parse error.. Can i send you Mr Alexander, my screenshot excel, so you can help me analyze it.. thanks a lot mr. alex

        1. Hello!
          This formula

          =IF(J2>=750000,I2+(J2/2),IF(J2>=250000,I2+(J2/3), IF(J2>=100000,I2+(J2/4),IF(J2>=50000,I2+(J2/5),""))))

          works for me. J2 and I2 must have numbers.
          What error are you getting?

          1. yes, my J2 and I2 already numbers but also get #ERROR! sir.. can you help me review my excel?
            thanks mr.alex

  35. I do hope that you guys/gals are all ok in this time of stress.

    I am trying to use IF, And, and also Or in the same formula.

    =IF(AND('Project Information'!H12="EST",B8>0),LOOKUP(B8,EST),"")

    =IF(AND('Project Information'!H12="system sensor",B8>0),LOOKUP(B8,SS),"")

    I know both the above formulas work but I want to be able to use them both in one formula so if the 1st one doesn't work it will go on to the 2nd one and if neither one work it will show a blank cell.

    Is this possible.

    Thank You Very Much

    Walter Culpepper

  36. Good

  37. =IF(F7=1,((100-H7)*E7)/88),IF(F7=2,((100-H7)*G7)/88)

  38. 2 worksheets A and B

    B pulls from A

    A has 4 columns that are used to calculate monthly median in B.

    Formula: =IFERROR(MEDIAN(IF('[FY2020 Volumes.xlsx]Transplants'!$E:$E="Adult", IF('[FY2020 Volumes.xlsx]Transplants'!$K:$K="Kidney", IF('[FY2020 Volumes.xlsx]Transplants'!$U:$U>=DATE(2019,10,1), IF('[FY2020 Volumes.xlsx]Transplants'!$U:$U<=DATE(2019,10,31), '[FY2020 Volumes.xlsx]Transplants'!$Y:$Y))))), "N/A")

    This pull from Oct 2019 to Sept 2020 calculates the monthly median just fine.

    When i change the dates to 2020,10,1 and 2020,10,31 all i get is zero from Oct 2020 onwards.

    Any help is appreciated.

    thanks

    1. Forgot to mention, that column Y is the numbers from whihc the monthly median is calculated.

  39. I am trying to use the following IF formula to return a date and time in D3 when I scan a value into C3:
    =IF(C3"",IF(D3"",D3,NOW()),""). However, it is not a static date/time, it is dynamic, so every time I scan in column C it replaces the last value in column D with the current value as well. I hope this makes sense.

  40. hi i have printing press and 3 machines GTO, SOLNA, HELDELBERG each machine has different capacity of handling paper GTO printing size is 12-18 inches, Solna Size is 18-25 and Heidelberg is 19-40 inches paper handling capacity

    =IF(AND(J17<=12,K1718,K1718,K17<=40),"HEIDELBERG",IF(AND(K17<=12,J1718,J1718,J17<=40),"HEIDELBERG"))))))

    this formula is working to some extant but not working 100% let me know how can i solve my problem

    1. Hello!
      Sorry, it's not quite clear what you are trying to achieve. What result do you want to get? What problem or error occurred? Please describe your problem in more detail. It’ll help me understand it better and find a solution for you.

  41. I have columns "A" and "B". "A" is defined as Currency and "B" is a date and "C" contains "=today()". I am trying to populate "B" with todays date when "A" is entered and only when "A" is entered. I have tried:

    =IF(A1>0,$C$1,"") - which populates 'B1" when the sheet is opened if A1>0...I lose the date A1 was entered

    =IF(AND(A1>0,B1=""),$C$1,"") - which didn't work at all...evaluate said circular reference "if 0 > 0"

    I have tried multiple other attempts, but these seemed the most likely. Not sure what I'm doing wrong. Any help/suggestions would be appreciated.

    1. Hello!
      Sorry, I do not fully understand the task. Formula =IF(A1>0,$C$1,””) is correct. What does "I lose the date A1 was entered"? Explain your problem in more detail.

      1. Thank you for your response.
        I enter a currency amount ($20.00) in A1 on June 1, 2020. The currency amount appears in A1 and 06/01/2020 appears in B1 (populated by the formula). On June 5, 2020 I open the spreadsheet and A1 contains $20.00, B1 contains 06/05/2020.... I lose the date the currency amount was entered. I would like to capture the date the currency amount is entered, and once captured, do not update it again. My second example where if A1 > 0 and B1 Is blank ("") was my attempt to leave B1 alone if it has already been populated, but I couldn't get that to work.

          1. Thank you very much. It works well. I should have searched for "time stamp". I guess it just shows that "all you have to know is what you are doing". Again, thank you.

  42. I want to know how to calculate incentive for employees based on the below slab

    Sale Range Incentive
    0 - 2 lakh 0% ( Minimum level )
    2 - 2.5 Lakh 10%
    2.5 - 3 Lakh 15%
    3 - 3.5 Lakh 20%

    If the total sale is 2.75 lakh we have to give the employee an incentive for the amount of 75,000(2.75 lakh - 2.00 lakh ) . Out of the 75000, 50000 will be under 10% and balance 25000 will fall under 15% category. Can you help me to find a formula to calculate the incentive amount.

  43. If D2 is less than or equal to zero then G2 is equal to C2 plus .05, the rest is the same

  44. If D2 is less than or equal to zero then G2 is equal to C2, or if D2 is greater than zero then G2 is equal to C2

  45. Sorry I made a mistake. if D2 then G2 is equal to C2

  46. I need excel to keep/change values in G2. If D20 then I want it to record the same value that is in C2

    1. Hi!
      I’m sorry but your task is not entirely clear to me. What does the condition "If D20" mean? Please describe your problem in more detail.

  47. I am trying to use 2 if statements in 1 cell.

    if H2 = Y THEN I2 WILL = E AND IF H2 = N THEN I2 WILL = F
    How can I write this in a formula. I have tried everything and cant get it to work.

    Thank you

    carissa

    1. Hello!
      If I understand your task correctly, the following formula should work for you:

      =IF(H2="Y","E",IF(H2="N","F",""))

      Hope this is what you need.

  48. I have a data set on multiple row;
    A1 40
    A2 80
    A3 60
    A4 30
    Is there any way I can use if condition to see A1:A4 >=40 in one take, rather that each if condition check for individual row?
    Thank you.

  49. IF(Data)>F$1,F$1,(Data))
    Can anyone explain, what comes from it and how?

  50. if debit days 0-31 or security=2 month ,"5%",if security=1 month ,"4","3".and other condition is if debit days 31-62 or security=2 month,"4.5",if security=1 month,'3','1.5'. how can we use if formula

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 :)