+ Reply to Thread
Results 1 to 7 of 7

Multiple issues - Multiple IF staements with multiple answers, or other coding.

  1. #1
    Registered User
    Join Date
    01-12-2013
    Location
    Puget Sound, WA
    MS-Off Ver
    Excel 2010
    Posts
    12

    Multiple issues - Multiple IF staements with multiple answers, or other coding.

    *If someone has a better title please let me know so I can edit and help others*

    I'd like to start by saying thanks to everyone on these forums, over the last 2-3 years if I've had a problem I've been able to find the answer here or a 'new' way of tackling a task. My boss just knows the basics of Word/Excel/Outlook. and has asked me to build something to save him time with our Bid Proposals instead of him having to type it up every time. I thought it would be simple but just cant get it to look/work properly. For the first time I can seem to find the information I need by searching these forums.

    What I am trying to do:

    Ive created several tabs in excel, each with a list of descriptions and check boxes. The last tab is our Bid Proposal form (basically blank after our header).My idea was that my boss would be able to check the boxes that apply to each individual project, then the description would appear on the last Tab. He would then just need to print off the last page and fax it off.


    My problem:

    1st problem - Well on the last Tab I created a simple =IF('Tab1'!B3=True,'Tab1'!B4) In B4 I wrote the description "drywall on both side of wood framed wall" . Needless to say this didnt work like I planed so I changed it to =IF('Tab1'!B3=True,"drywall on both side of wood framed wall") this worked but just requires a little more typing than I wanted it do. If someone knows a shorter way that would be great.

    2nd Problem - As stated above on the last tab I created each of these "If" statement in Cells A8 - A80 (for example). If he only checks 8 or 9 items from the other Tabs I have a lot of blank space. This is my biggest problem. Id like something that "If" Cell A10 ( for example) is blank the next one moves up, or something. I also though about merging A8-A80 (for example) together but Cant figure out a way to put all the "If" statement together to display all the description. I'm thinking this may take some special coding, That is beyond my knowledge. Is there a simple way I can go about doing this?

    I've attached a copy of what I've been doing so far so everyone can have a netter understanding of what I'm talking about if my explanations were unclear.
    Attached Files Attached Files
    Last edited by inzanesrt4; 01-12-2013 at 08:57 PM.

  2. #2
    Forum Expert martindwilson's Avatar
    Join Date
    06-23-2007
    Location
    London,England
    MS-Off Ver
    office 97 ,2007
    Posts
    19,320

    Re: Multiple issues - Multiple IF staements with multiple answers, or other coding.

    well this works
    =IF('Wall Types'!B3=TRUE, 'Wall Types'!C3,"")
    but try this instead
    Attached Files Attached Files
    "Unless otherwise stated all my comments are directed at OP"

    Mojito connoisseur and now happily retired
    where does code go ?
    look here
    how to insert code

    how to enter array formula

    why use -- in sumproduct
    recommended reading
    wiki Mojito

    how to say no convincingly

    most important thing you need
    Martin Wilson: SPV
    and RSMBC

  3. #3
    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: Multiple issues - Multiple IF staements with multiple answers, or other coding.

    Hi inzanesrt4 and welcome to the forum

    before i even begin to try and adress your questions...
    PLZ PLZ PLZ...try and avoid the use of merged cells, all the do is create havoc later when trying to reference then in a formula, and the same result can be achieved by using "center across selection" under cell formatting.

    also, although using those check-boxes looks impressive, the way you are doing that, you might as well do away with them and just enter X (or whatever) into the cell and bace the references on sheet1 on that

    1st problem
    =IF('Tab1'!B3=True,'Tab1'!B4) doesnt work because you are referencing the row below the control, not the column next to it. try this...
    =IF('Wall Types'!B3=TRUE, 'Wall Types'!C3,"") - note an if statement consists of 3 parts...
    =if(criteria-to-test,what-to-do-if-test=TRUE,what-to-do-if-test=FALSE)

    2nd problem
    actually you only have that formula in A17:A19


    I have modified your worksheets somewhat, take a look at the attached and see if that is something you can work with? (I eliminated the use of the check-boxes)
    Attached Files Attached Files
    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

  4. #4
    Registered User
    Join Date
    01-12-2013
    Location
    Puget Sound, WA
    MS-Off Ver
    Excel 2010
    Posts
    12

    Re: Multiple issues - Multiple IF staements with multiple answers, or other coding.

    Quote Originally Posted by martindwilson View Post
    well this works
    =IF('Wall Types'!B3=TRUE, 'Wall Types'!C3,"")
    but try this instead

    Thanks you very much this appears to work very well. I'll have to dissect your formula (learn from it)and apply it to the rest. It appears I need to learn more about Index and Match functions.

    It looks like it may create another issue with the next step but I will try to figure it out myself, (best way for me to learn) If I have an issue I will come back and ask.

    Again thank you so much.

  5. #5
    Registered User
    Join Date
    01-12-2013
    Location
    Puget Sound, WA
    MS-Off Ver
    Excel 2010
    Posts
    12

    Re: Multiple issues - Multiple IF staements with multiple answers, or other coding.

    Quote Originally Posted by FDibbins View Post
    Hi inzanesrt4 and welcome to the forum

    before i even begin to try and adress your questions...
    PLZ PLZ PLZ...try and avoid the use of merged cells, all the do is create havoc later when trying to reference then in a formula, and the same result can be achieved by using "center across selection" under cell formatting.

    also, although using those check-boxes looks impressive, the way you are doing that, you might as well do away with them and just enter X (or whatever) into the cell and bace the references on sheet1 on that

    1st problem
    =IF('Tab1'!B3=True,'Tab1'!B4) doesnt work because you are referencing the row below the control, not the column next to it. try this...
    =IF('Wall Types'!B3=TRUE, 'Wall Types'!C3,"") - note an if statement consists of 3 parts...
    =if(criteria-to-test,what-to-do-if-test=TRUE,what-to-do-if-test=FALSE)

    2nd problem
    actually you only have that formula in A17:A19


    I have modified your worksheets somewhat, take a look at the attached and see if that is something you can work with? (I eliminated the use of the check-boxes)
    Thanks for explaining its helps. I often get things to work one way and others tell me a better, faster, easier way to accomplish the same task.

    The sheet you attached also appears to work and is similar to martindwilsons. Although it shows N/A in places on the cover sheet but I'm sure I could figure out how to get that fixed. The reason for centering was strictly for appearance.

  6. #6
    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: Multiple issues - Multiple IF staements with multiple answers, or other coding.

    Happy to help. If this answered your question, please take a moment to mark the thread as "solved" - it helps keep things neet and tidy lol, and consider adding the reputation to those that helped (see points 2 & 3 below)

  7. #7
    Registered User
    Join Date
    01-12-2013
    Location
    Puget Sound, WA
    MS-Off Ver
    Excel 2010
    Posts
    12

    Re: Multiple issues - Multiple IF staements with multiple answers, or other coding.

    Do you have an idea for a better title to help future users find the answers needed?

+ 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