+ Reply to Thread
Results 1 to 2 of 2

Easier Way To Decipher Nested Nested IF's

  1. #1
    Registered User
    Join Date
    01-12-2012
    Location
    USA
    MS-Off Ver
    Excel 2007, 2003
    Posts
    84

    Easier Way To Decipher Nested Nested IF's

    I inherited a bunch of spread sheets which do some rather complex structural calculations. In trying to understand the equations I find myself using the VLISP editor in AutoCAD because it does such a swell job of syntax highlighting, etc..but it has its shortcomings when working with Excel equations. Yes, I know Excel will highlight matching parenthesis but these equations are to beat the band. Here's an example of one:
    Please Login or Register  to view this content.
    I have also tried copying and pasting these equations into NotePad++ with again only limited success. I was hoping others out there might have some suggestions on any tools which can be used to easier trace the logic through complex Excel equations.
    Wish I didn't know now what I didn't know then.

  2. #2
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,939

    Re: Easier Way To Decipher Nested Nested IF's

    Essentially, this is what that formula is doing...
    =IF(
    ...AND(H105=0,OR(I104=B100,I104=B102,I104=B105,I104=B108)),"BRACKET (RIGHT), PART #124",
    ...IF(
    ......AND(H105=0,OR(I104=B101,I104=B103,I104=B104,I104=B107,I104=B111,I104=B112,I104=B115)),"BRACKET (RIGHT), PART #125",
    ......IF(
    .........AND(H105=0,OR(I104=B106,I104=B109,I104=B110,I104=B113,I104=B114,I104=B116)),"BRACKET (RIGHT), PART #126",
    ............IF(H105=2,"BRACKET (RIGHT), PART #53",
    ...............IF(H105=4,"BRACKET (RIGHT), PART #59",
    ..................IF(H105=6,"BRACKET (RIGHT), PART #61",0))))))

    You will know better than I, what each of those parts is doing.

    the formula editor Fx - Insert button to the left of the formula bar can be a HUGE help to breaking down a formula.
    Then use ALT Enter and the different breaks, to make it easier to see wherer parts start and end (like I did above)
    Last edited by FDibbins; 08-06-2015 at 03:40 PM.
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools
    3. Click on the star if you think someone helped you

    Regards
    Ford

+ 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] Nested Sumif's or how to sum data based on nested criteria
    By dlietz in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 10-07-2014, 11:36 AM
  2. [SOLVED] Nested "If's" - Is there something easier?
    By AndyRoo119 in forum Excel Formulas & Functions
    Replies: 8
    Last Post: 06-01-2014, 05:32 PM
  3. How to reduces Nested IF code(144 Nested IF) to achive same functionality
    By jobseeker in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 02-09-2014, 09:45 AM
  4. Must be an easier way then a Nested If....
    By jackfrostog in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 08-18-2013, 05:10 PM
  5. Nested IF (an easier way?)
    By LPH in forum Excel General
    Replies: 5
    Last Post: 03-21-2009, 08:07 PM
  6. help on a nested countif/nested if formula
    By vickiemc in forum Excel General
    Replies: 2
    Last Post: 08-13-2008, 08:29 AM
  7. [SOLVED] Easier nested subtotals in Excel
    By Zsolt Dubovanszky in forum Excel General
    Replies: 2
    Last Post: 05-05-2006, 09:15 AM

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