+ Reply to Thread
Results 1 to 8 of 8

How to Simplify Nested If Function…

  1. #1
    Forum Contributor
    Join Date
    01-07-2012
    Location
    Bangalore
    MS-Off Ver
    Office 365
    Posts
    368

    How to Simplify Nested If Function…

    Hi Friends,

    I spend more than three hours and formed a Nested IF Formula for one of my regular activity and its working fine. But formula is so long, as shown in the attached file “Column M” position. Kindly let me know, How to Simplfy this formula?

    Thanks & Regards,
    Rajeshkumar R
    Attached Files Attached Files

  2. #2
    Valued Forum Contributor
    Join Date
    02-09-2012
    Location
    Mauritius
    MS-Off Ver
    Excel 2007
    Posts
    1,055

    Re: How to Simplify Nested If Function…

    Can u explain what exactly do u want to achieve?

  3. #3
    Registered User
    Join Date
    03-01-2012
    Location
    Tbilisi, Georgia
    MS-Off Ver
    Excel 2007
    Posts
    1

    Re: How to Simplify Nested If Function…

    you could write this in O2 :
    =CHOOSE(IF(B2<0,1,IF(C2<0,2,IF(D2<0,3,IF(E2<0,4,IF(F2<0,5,IF(G2<0,6,7)))))),$B$1,$C$1,$D$1,$E$1,$F$1,$G$1,"Okay")

    but unfortunately it's even longer )

  4. #4
    Forum Contributor darknation144's Avatar
    Join Date
    01-24-2012
    Location
    London
    MS-Off Ver
    Microsoft Excel 365 MSO
    Posts
    555

    Re: How to Simplify Nested If Function…

    Can you not use And() or Or() to simplify it?

  5. #5
    Forum Guru (RIP) Marcol's Avatar
    Join Date
    12-23-2009
    Location
    Fife, Scotland
    MS-Off Ver
    Excel '97 & 2003/7
    Posts
    7,216

    Re: How to Simplify Nested If Function…

    If all the negative cells are continuous, as your sample suggests then, in O2
    Please Login or Register  to view this content.
    COLUMNS($B$1:$G$1) could be replaced with 6 i.e. the number of columns in your range.
    If you need any more information, please feel free to ask.

    However,If this takes care of your needs, please select Thread Tools from menu above and set this topic to SOLVED. It helps everybody! ....

    Also
    اس کی مدد کرتا ہے اگر
    شکریہ کہنے کے لئے سٹار کلک کریں
    If you are satisfied by any members response to your problem please consider using the small Star icon bottom left of their post to show your appreciation.

  6. #6
    Forum Expert tigeravatar's Avatar
    Join Date
    03-25-2011
    Location
    Colorado, USA
    MS-Off Ver
    Excel 2003 - 2013
    Posts
    5,361

    Re: How to Simplify Nested If Function…

    Rajeshkumar R,

    Here's my version, in cell O2 and copied down:
    =IF(COUNTIF(B2:G2,"<0"),INDEX($B$1:$G$1,MATCH(TRUE,INDEX(B2:G2<0,),0)),"Okay")
    Hope that helps,
    ~tigeravatar

    Forum Rules: How to use code tags, mark a thread solved, and keep yourself out of trouble

  7. #7
    Forum Contributor
    Join Date
    01-07-2012
    Location
    Bangalore
    MS-Off Ver
    Office 365
    Posts
    368

    Re: How to Simplify Nested If Function…

    Hi Friends,

    Thanks a lot to all of you for quick replay, But... as I mention above THREAD I want to reduce the formula length which is there in the M2 Cell not O2.

    Thanks & Regards,
    Rajeshkumar R[/QUOTE]
    Last edited by Rajeshkumar R; 03-06-2012 at 11:55 PM.

  8. #8
    Forum Guru (RIP) Marcol's Avatar
    Join Date
    12-23-2009
    Location
    Fife, Scotland
    MS-Off Ver
    Excel '97 & 2003/7
    Posts
    7,216

    Re: How to Simplify Nested If Function…

    So what is to long about the formula you have in the M2 Cell?
    Please Login or Register  to view this content.
    If you want, as I suspect, the various returns you have in Column M, then you must tell us the conditions that apply.
    I can't see any obvious logic behind the expected results.

    What am I missing?

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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