+ Reply to Thread
Results 1 to 14 of 14

Stuck with simple drop down list.

  1. #1
    Registered User
    Join Date
    06-05-2016
    Location
    Wanaka, New Zealand
    MS-Off Ver
    2016
    Posts
    7

    Stuck with simple drop down list.

    Firstly, hi to everyone on this forum
    I have over the last week been given a new position at work because of a back injury which has taken me off the tools into the office. I am fairly decent at finding my way around a computer but excel is new to me and I really want to prove myself at work.
    I was asked to assemble a quoting document that writes out its own letter to go to the customer. I used vlookup and data validation to create drop down list. I am almost done but I am struggling with the letter part.

    My dropdown list look like this with =('Roof Quote'!A5&","&'Roof Quote'!A6) to write the letter. I modified it to this =IF('Roof Quote'!A5="Profile","",'Roof Quote'!A5&",") because as you can see on the images below it adds the text to a letter that may not be needed or wanted. My problem is how do I get the formula to only add the text if it is needed on two or more cells. example Only add text once it has been selected from the dropdown list. So if the list header is 'Profile' It wont add the text unless you have selected something other than that.
    1.jpg
    2.jpg
    3.jpg

    Thank you and I hope I have explained my situation well enough for you guys to understand
    Last edited by jamezb1973; 06-06-2016 at 08:10 PM.

  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,946

    Re: Stuck with simple drop down list.

    Hi, welcome to the forum

    Please upload a sample of your workbook, not a picture of your data. Pictures are pretty much impossible to edit, and no-one wants to re-type your data for you
    Also, not all members can upload picture files (Company firewalls and stuff) - and, depending on what browser is being used, some pics dont even show up on the forum

    Your workbook should show a small desensitized example of the data you are working with and a manual mockup of the expected results.

    Having said that...
    So if the list header is 'Profile' It wont add the text unless you have selected something other than that.
    looks like you already have that covered?
    =IF('Roof Quote'!A5="Profile","",'Roof Quote'!A5&",")
    If you need to test for something else as well, then maybe something like this...
    =IF(AND('Roof Quote'!A5="Profile",A6=""),"",'Roof Quote'!A5&",")
    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

  3. #3
    Forum Expert
    Join Date
    08-12-2012
    Location
    Sydney, Australia
    MS-Off Ver
    Excel 2010
    Posts
    5,636

    Re: Stuck with simple drop down list.

    see attached example on how you could possibly do it
    have the bits on the right hidden so it wont show up when you print the letter
    Attached Files Attached Files
    If you are satisfied with the solution(s) provided, please mark your thread as Solved.
    Select Thread Tools-> Mark thread as Solved. To undo, select Thread Tools-> Mark thread as Unsolved.

  4. #4
    Registered User
    Join Date
    06-05-2016
    Location
    Wanaka, New Zealand
    MS-Off Ver
    2016
    Posts
    7

    Re: Stuck with simple drop down list.

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

    Please upload a sample of your workbook, not a picture of your data. Pictures are pretty much impossible to edit, and no-one wants to re-type your data for you
    Also, not all members can upload picture files (Company firewalls and stuff) - and, depending on what browser is being used, some pics dont even show up on the forum

    Having said that...

    looks like you already have that covered
    Sorry I tried attaching a sample on Firefox and chrome but nothing happens when I click the attachment icon. But you can grab it from HERE
    I have almost got it but I cant get it to add 2 or more from different cells on the Roof Quote page. Thanks
    Last edited by jamezb1973; 06-06-2016 at 08:11 PM.

  5. #5
    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,946

    Re: Stuck with simple drop down list.

    We are having problems with the upload icon, sorry

    To attach a file to your post,
    click advanced (next to quick post),
    scroll down until you see "manage file",
    click that and select "add files" (top right corner).
    click "select files" find your file, click "open" click "upload" click 'done" bottom right. click "submit reply"

    Once the upload is completed the file name will appear below the input boxes in this window.
    You can then close the window to return to the new post screen.

  6. #6
    Registered User
    Join Date
    06-05-2016
    Location
    Wanaka, New Zealand
    MS-Off Ver
    2016
    Posts
    7

    Re: Stuck with simple drop down list.

    Quote Originally Posted by FDibbins View Post
    We are having problems with the upload icon, sorry

    To attach a file to your post,
    click advanced (next to quick post),
    scroll down until you see "manage file",
    click that and select "add files" (top right corner).
    click "select files" find your file, click "open" click "upload" click 'done" bottom right. click "submit reply"

    Once the upload is completed the file name will appear below the input boxes in this window.
    You can then close the window to return to the new post screen.
    Thanks! File added to OP

  7. #7
    Registered User
    Join Date
    06-05-2016
    Location
    Wanaka, New Zealand
    MS-Off Ver
    2016
    Posts
    7

    Re: Stuck with simple drop down list.

    Can Anyone Help?

    Basically I just dont know how to join these into one working formula

    =IF('Roof Quote'!A5="Profile","",'Roof Quote'!A5&",")
    =IF('Roof Quote'!A6="Profile","",'Roof Quote'!A6&",")

    So it would come out something like =IF('Roof Quote'!A5="Profile","",'Roof Quote'!A5&",", IF('Roof Quote'!A6="Profile","",'Roof Quote'!A6&","))
    At the moment it tells me there are too many arguments
    Last edited by jamezb1973; 06-06-2016 at 04:31 AM.

  8. #8
    Forum Expert
    Join Date
    08-12-2012
    Location
    Sydney, Australia
    MS-Off Ver
    Excel 2010
    Posts
    5,636

    Re: Stuck with simple drop down list.

    did you look at my file?

  9. #9
    Forum Expert
    Join Date
    08-12-2012
    Location
    Sydney, Australia
    MS-Off Ver
    Excel 2010
    Posts
    5,636

    Re: Stuck with simple drop down list.

    is this what your after?

    Formula: copy to clipboard
    Please Login or Register  to view this content.

  10. #10
    Registered User
    Join Date
    06-05-2016
    Location
    Wanaka, New Zealand
    MS-Off Ver
    2016
    Posts
    7

    Re: Stuck with simple drop down list.

    Quote Originally Posted by humdingaling View Post
    did you look at my file?
    Yes I did and thank you. I don't think I explained myself too well.
    This was the formula I had =IF('Roof Quote'!A5="Profile","",'Roof Quote'!A5&",", IF('Roof Quote'!A6="Profile","",'Roof Quote'!A6&","))
    But the correct formula is =IF('Roof Quote'!A5="Profile", "", 'Roof Quote'!A5 & "," & IF('Roof Quote'!A6 = "Profile", "", 'Roof Quote'!A6 & ","))

  11. #11
    Forum Expert
    Join Date
    08-12-2012
    Location
    Sydney, Australia
    MS-Off Ver
    Excel 2010
    Posts
    5,636

    Re: Stuck with simple drop down list.

    on your file A6 doesnt even have Profile as an option? so it will always be false?

  12. #12
    Registered User
    Join Date
    06-05-2016
    Location
    Wanaka, New Zealand
    MS-Off Ver
    2016
    Posts
    7

    Re: Stuck with simple drop down list.

    Quote Originally Posted by humdingaling View Post
    on your file A6 doesnt even have Profile as an option? so it will always be false?
    Yeah sorry typo it was actually this:
    Please Login or Register  to view this content.

  13. #13
    Forum Expert
    Join Date
    08-12-2012
    Location
    Sydney, Australia
    MS-Off Ver
    Excel 2010
    Posts
    5,636

    Re: Stuck with simple drop down list.

    you were missing a bracket?
    Formula: copy to clipboard
    Please Login or Register  to view this content.

  14. #14
    Registered User
    Join Date
    06-05-2016
    Location
    Wanaka, New Zealand
    MS-Off Ver
    2016
    Posts
    7

    Re: Stuck with simple drop down list.

    YES! Thank you very much, I was trying to work that out.

+ 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] Stuck in the Mud with Dependent Drop Down List Issues
    By kevindowney in forum Excel General
    Replies: 5
    Last Post: 06-05-2016, 09:26 PM
  2. Simple Drop Down List
    By Klitos in forum Excel - New Users/Basics
    Replies: 5
    Last Post: 06-20-2012, 08:54 AM
  3. simple problem with drop down list. need solution
    By singhabhijitkumar in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 06-17-2011, 06:20 AM
  4. Simple Drop Down List Box with Sub-Categories
    By GregH in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 10-24-2007, 11:01 PM
  5. Stuck with a Simple Formulae
    By bengaluru in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 12-06-2006, 05:00 PM
  6. [SOLVED] question about creating a simple drop down list
    By [email protected] in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 03-18-2006, 02:10 AM
  7. [SOLVED] How do I create a simple drop down box/List
    By SweetShellyGal in forum Excel General
    Replies: 1
    Last Post: 03-11-2005, 01:06 PM

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