+ Reply to Thread
Results 1 to 13 of 13

Nested if statement problem

  1. #1
    Registered User
    Join Date
    03-22-2019
    Location
    sydney
    MS-Off Ver
    2016
    Posts
    8

    Nested if statement problem

    I am trying to calculate a formula using nested if statement however, excel doesn't allow me to enter multiple if statement as it exceeds the limitation. is there anyone who can help me in creating a formula.

    if Redundancy i.e B15 is Low and ARR value i.e B14 is according to the data in A4:A11 then the value øgb in B17 should be from the list C4:C11 and if Redundancy i.e B15 is Moderate and ARR value i.e B14 is according to the data in A4:A11 then the value øgb in B17 should be from the list D4:D11.

    it would be much appreciated if anyone can help me out. thanks in advance.pile design calculation.jpg

  2. #2
    Forum Expert Sam Capricci's Avatar
    Join Date
    06-14-2012
    Location
    Palm Harbor, Florida
    MS-Off Ver
    16.96 for Mac MS 365
    Posts
    8,690

    Re: Nested if statement problem

    based on your limited screenshot this looks like it would work for you...
    =IF(B15="Low",LOOKUP(B14,{0,1.5,2,2.5,3,3.5,4,4.5},{0.67,0.61,0.56,0.52,0.48,0.45,0.42,0.4}),LOOKUP(B14,{0,1.5,2,2.5,3,3.5,4,4.5},{0.76,0.7,0.64,0.6,0.56,0.53,0.5,0.47}))
    it has hand coded the values in both columns. If you have additional possibilities it only addresses low and not low.
    Make contributors happy, click on the "* Add Reputation" as a way to say thank you.
    Sam Capricci

  3. #3
    Registered User
    Join Date
    03-22-2019
    Location
    sydney
    MS-Off Ver
    2016
    Posts
    8

    Re: Nested if statement problem

    thanks Sambo kid, B15 will be a dropdown list displaying Low and Moderate. is it possible to adjust B17 according to dropdown list?

  4. #4
    Registered User
    Join Date
    03-22-2019
    Location
    sydney
    MS-Off Ver
    2016
    Posts
    8

    Re: Nested if statement problem

    Hi Sambo kid, formula did work out but it didnt mention equal in the formula according to the result.when i put B14 as 1.5, it was supposed to display 0.67 instead of 0.61.

  5. #5
    Forum Expert Sam Capricci's Avatar
    Join Date
    06-14-2012
    Location
    Palm Harbor, Florida
    MS-Off Ver
    16.96 for Mac MS 365
    Posts
    8,690

    Re: Nested if statement problem

    not sure I am following you. The formula is for B17, if B15 changes based on a dropdown selection whatever appears in B15 and B14 will adjust in the formula. So if B14 has 1.6 and B15 shows as moderate B17 will show 0.70, if B15 has low and B14 has 1.6 the formula will return 0.61.
    A dropdown selection for B15 should make no difference. Hope that helps.

  6. #6
    Registered User
    Join Date
    03-22-2019
    Location
    sydney
    MS-Off Ver
    2016
    Posts
    8

    Re: Nested if statement problem

    Agree. the formula works perfectly except if i input B14 value 1.5,2,2.5 the result was supposed to be 0.67,0.61, 0.56 instead of 0.61,0.56 and 0.52.the formula is showing greater than or equal to instead of less than or equal. thank you for your support

  7. #7
    Registered User
    Join Date
    03-22-2019
    Location
    sydney
    MS-Off Ver
    2016
    Posts
    8

    Re: Nested if statement problem

    thank you Sambo kid, i changed the values to 1.51 instead of 1.5. it worked. I appreciated your help.

  8. #8
    Forum Expert Sam Capricci's Avatar
    Join Date
    06-14-2012
    Location
    Palm Harbor, Florida
    MS-Off Ver
    16.96 for Mac MS 365
    Posts
    8,690

    Re: Nested if statement problem

    to what level do the numbers in B14 go to (how many decimal places)?
    if they are limited to one decimal place then change it to this...
    =IF(B15="low",LOOKUP(B14,{0,1.51,2.01,2.51,3.01,3.51,4.01,4.51},{0.67,0.61,0.56,0.52,0.48,0.45,0.42,0.4}),LOOKUP(B14,{0,1.51,2.01,2.51,3.01,3.51,4.01,4.51},{0.76,0.7,0.64,0.6,0.56,0.53,0.5,0.47}))

  9. #9
    Registered User
    Join Date
    03-22-2019
    Location
    sydney
    MS-Off Ver
    2016
    Posts
    8

    Re: Nested if statement problem

    it should be upto 2 decimal.i have changed it as you have mentioned. thank you so much for this support.

  10. #10
    Forum Expert Sam Capricci's Avatar
    Join Date
    06-14-2012
    Location
    Palm Harbor, Florida
    MS-Off Ver
    16.96 for Mac MS 365
    Posts
    8,690

    Re: Nested if statement problem

    you're welcome, AND thank you for the rep! Glad I could help.
    Last edited by Sam Capricci; 03-22-2019 at 08:45 AM.

  11. #11
    Registered User
    Join Date
    03-22-2019
    Location
    sydney
    MS-Off Ver
    2016
    Posts
    8

    Re: Nested if statement problem

    sure I did. thanks

  12. #12
    Forum Guru Bo_Ry's Avatar
    Join Date
    09-10-2018
    Location
    Thailand
    MS-Off Ver
    MS 365
    Posts
    7,222

    Re: Nested if statement problem

    Another one
    Please try at B17
    =LOOKUP(B14,{-1,1.5,2,2.5,3,3.5,4,4.5}+10^-9,INDEX(C4:D11,,2-(B15="low")))

  13. #13
    Registered User
    Join Date
    03-22-2019
    Location
    sydney
    MS-Off Ver
    2016
    Posts
    8

    Re: Nested if statement problem

    Thank you Bo_Ry. it works perfectly fine.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. [SOLVED] Problem with Nested OR Statement
    By CreekShoreFarms in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 01-27-2016, 01:06 AM
  2. Problem with Nested If statement
    By Domrollinson in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 07-09-2014, 10:07 AM
  3. Nested IF statement problem with < and >
    By rnomis in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 01-24-2014, 04:59 PM
  4. Nested IF statement problem
    By Deuce9er in forum Excel Formulas & Functions
    Replies: 14
    Last Post: 01-03-2013, 11:52 AM
  5. Problem with nested if statement
    By concatch in forum Excel General
    Replies: 4
    Last Post: 03-06-2012, 12:52 PM
  6. Nested IF Statement problem
    By Badvgood in forum Excel General
    Replies: 11
    Last Post: 03-03-2010, 11:23 AM
  7. Nested if statement problem!
    By Simon Lloyd in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 07-28-2005, 08:15 AM

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1