+ Reply to Thread
Results 1 to 5 of 5

Determining How Many Parts With If & And Functions

Hybrid View

  1. #1
    Registered User
    Join Date
    08-04-2011
    Location
    USA
    MS-Off Ver
    Excel 2003
    Posts
    2

    Determining How Many Parts With If & And Functions

    Alright, here's what im looking at...

    \1

    As you can see my formula for the current selected cell is quite lengthy and if I add anymore it comes up with an error saying there are too many levels of nesting. What I知 trying to do is come up with a formula that compares the sizes in cells M17 - M21. The grey area, or Glass section, is what I知 currently working on. The formula needs to look at the cells M17 - M21 and determine how many pieces of glass you池e going to need to fill the requirements. If you need more of an explanation, let me know and I値l be glad to elaborate
    Attached Files Attached Files
    Last edited by Moshay08; 08-04-2011 at 10:43 AM. Reason: Added Attachment

  2. #2
    Forum Contributor
    Join Date
    01-28-2010
    Location
    Sydney, Australia
    MS-Off Ver
    Excel 2003
    Posts
    157

    Re: Determining How Many Parts With If & And Functions

    Maybe split the long formula into two or more cells then use the SUM function to extract the result into a single cell.
    On the attached workbook your O13 formula has been split up into two shorter formulae in O12 and P12.
    SUM(O12:P12) in O13 picks up the final result.

    With the shorter formulae in the two cells you will be able to add your other comparisons.

    Beau Nydal
    Attached Files Attached Files

  3. #3
    Administrator 6StringJazzer's Avatar
    Join Date
    01-27-2010
    Location
    Tysons Corner, VA, USA
    MS-Off Ver
    MS 365 Family 64-bit 2404
    Posts
    24,827

    Re: Determining How Many Parts With If & And Functions

    I'm having a difficult time unwinding your formula to understand the underlying intent. It is not at all clear how that series of comparisons tells you how many pieces of glass are needed.

    I'm also have these problems diagnosing how your sheet works:

    M17:M19 have the same array formula but the formula contains no array. Therefore I don't know why you are using an array formula. All three cells have the same formula referring to the same single cell, so will always have the same value, and your IF statement will always produce a 6.

    That formula refers to J20, which is a constant, so will always have the same value.

    M20:M21 also have the same formula and therefore the same value.

    That formula refers to J21, which is a constant, so will always have the same value.
    Jeff
    | | |キ| |キ| |キ| |キ| | |:| | |キ| |キ|
    Read the rules
    Use code tags to [code]enclose your code![/code]

  4. #4
    Registered User
    Join Date
    08-04-2011
    Location
    USA
    MS-Off Ver
    Excel 2003
    Posts
    2

    Re: Determining How Many Parts With If & And Functions

    Quote Originally Posted by 6StringJazzer View Post
    I'm having a difficult time unwinding your formula to understand the underlying intent. It is not at all clear how that series of comparisons tells you how many pieces of glass are needed.

    I'm also have these problems diagnosing how your sheet works:

    M17:M19 have the same array formula but the formula contains no array. Therefore I don't know why you are using an array formula. All three cells have the same formula referring to the same single cell, so will always have the same value, and your IF statement will always produce a 6.

    That formula refers to J20, which is a constant, so will always have the same value.

    M20:M21 also have the same formula and therefore the same value.

    That formula refers to J21, which is a constant, so will always have the same value.
    cell's M17-M19 are defaulted to equal the same amount as well as cells M20-M21. However the user of the form will be able to enter a value in there if need be. If they want a custom width or whatever instead of just the default.

    basically what happens is the user enters a width number into the RO H field and a height number into the RO NH field, then the forum defaults to make the openings equal to eachother, however if there is a custom width of one of the windows it can be entered in to replace the default forumla.
    Last edited by Moshay08; 08-04-2011 at 12:34 PM.

  5. #5
    Administrator 6StringJazzer's Avatar
    Join Date
    01-27-2010
    Location
    Tysons Corner, VA, USA
    MS-Off Ver
    MS 365 Family 64-bit 2404
    Posts
    24,827

    Re: Determining How Many Parts With If & And Functions

    beaunydal's idea of splitting is good if you just need to manage the complexity. It might be possible to simplify the formula if you can describe the logic you used to build it. I still can't figure out how all of that gets you a number of pieces of glass.

+ 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