+ Reply to Thread
Results 1 to 2 of 2

Vba instead of nested if

  1. #1
    Registered User
    Join Date
    03-15-2011
    Location
    cluj napoca
    MS-Off Ver
    Excel 2007
    Posts
    50

    Vba instead of nested if

    Hello,
    I'm trying to create an excel sheet, to calculate the bill of material of windows and doors. In the attachment you can see a sample of the table. My problem is, that i have to create a very long nested if, to calculate the necessary amount of wood.
    I thought to arrange the table to use lookup, but i didn't succeed.
    I'm opened to other suggestion,but i think i have to use vba.
    Right now, the only working nested if is for windows with one opening.
    I'm looking for materials, to begin to build the vba code.


    For the mods: i hope i didn't open this thread, in the wrong section,if so, you can move it.
    Attached Files Attached Files

  2. #2
    Forum Expert p24leclerc's Avatar
    Join Date
    07-05-2010
    Location
    Québec
    MS-Off Ver
    Excel 2021
    Posts
    2,081

    Re: Vba instead of nested if

    I'm not sure VBA will help you in your task. I'd rather cut your task in smaller one and add various columns to get the amount of wood required. It would be very simple as you know what the formulas are and it could beeasy for you to look up for errors.

    I would suggest you to have columns alike this:
    Out Frame
    Muntin (take into account the fact that it could be vertical or horizontal)
    Fixed frame
    Tilt-Turn opening
    Etc...

    Some columns can be duplicated or tripled to calculate each opening individually based on the type selected for that opening (I saw you have 3 columns "Type")
    This way, each formula should be quite simple and you'll be able to add those numbers to get your amount of wood.
    Pierre Leclerc
    _______________________________________________________

    If you like the help you got,
    Click on the STAR "Add reputation" icon at the bottom.

+ 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. Replies: 0
    Last Post: 10-01-2012, 05:54 AM
  2. Next without For error in nested loop - Escaping a Nested Loop?
    By BeneRich in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 02-10-2012, 06:38 PM
  3. For each loop nested; getting stuck on one cell in first iteration of nested loop
    By Excel_vba in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 12-22-2009, 11:54 AM
  4. Replies: 6
    Last Post: 01-14-2009, 06:59 PM
  5. help on a nested countif/nested if formula
    By vickiemc in forum Excel General
    Replies: 2
    Last Post: 08-13-2008, 08:29 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