+ Reply to Thread
Results 1 to 22 of 22

Drop Down Menus

  1. #1
    Registered User
    Join Date
    11-04-2009
    Location
    Chicago, Illinois
    MS-Off Ver
    Excel 2003
    Posts
    27

    Drop Down Menus

    To better understand what I'm saying I made a screen shot of the excel spreadsheet I have made. - http://img202.imageshack.us/img202/4237/picforhelp.png - The formulas in this screen shot aren't updated.

    Ok i have an item database and I wanted to have a drop down menu under the description column where I can select the item and it automatically fills in a code to the product in the column to the left of it and the unit price 2 columns to the right. Right now I have formulas in the code column and a formula in the unit cost column and the only problem I have with this is if I want to manually type the price in for a product the formula is deleted and if this form drags on for days its not going to be easy to get the formula back. So if you if this is possible let me know. If I wasn't detailed enough with my description and not seeing the screen shot please ask for more information.
    -Thanks a lot David W.

  2. #2
    Forum Contributor mewingkitty's Avatar
    Join Date
    09-29-2008
    Location
    Fort McMurray, Alberta, Canada
    MS-Off Ver
    Excel 2003
    Posts
    949

    Re: Drop Down Menus

    Really?
    Like really really?
    =IF(AND(OR(BLONDE,BRUNETTE,REDHEAD),OR(MY PLACE,HER PLACE),ME),BOW-CHICKA-BOW-WOW,ANOTHER NIGHT ON THE INTERNET)

  3. #3
    Forum Expert teylyn's Avatar
    Join Date
    10-28-2008
    Location
    New Zealand
    MS-Off Ver
    Excel 365 Insider Fast
    Posts
    11,372

    Re: Drop Down Menus

    from your previous post about the same topic and with the same incomprehensible (at least for me) screenshot.

    Quote Originally Posted by JBeaucaire View Post
    1) You can't type in a cell with a formula. Period. Unless you want to delete the formula.

  4. #4
    Registered User
    Join Date
    11-04-2009
    Location
    Chicago, Illinois
    MS-Off Ver
    Excel 2003
    Posts
    27

    Re: Drop Down Menus

    I'm asking a completely different question... and the screen shot is so u can visualize where the columns are that I'm talking about. I want know if its possible to select an item from the drop down and for it to fill in the description column the code column and the unit cost column instead of having formulas.

  5. #5
    Forum Moderator davesexcel's Avatar
    Join Date
    02-19-2006
    Location
    Regina
    MS-Off Ver
    MS 365
    Posts
    13,482

    Re: Drop Down Menus

    Quote Originally Posted by wiL View Post
    I'm asking a completely different question... and the screen shot is so u can visualize where the columns are that I'm talking about. I want know if its possible to select an item from the drop down and for it to fill in the description column the code column and the unit cost column instead of having formulas.
    The only way this can be done is with VBA, you will have to attach a sample workbook in order for somebody to help you. If you want data to show up without using formulas, then VBA is the way to go.

  6. #6
    Registered User
    Join Date
    11-04-2009
    Location
    Chicago, Illinois
    MS-Off Ver
    Excel 2003
    Posts
    27

    Re: Drop Down Menus


  7. #7
    Forum Expert teylyn's Avatar
    Join Date
    10-28-2008
    Location
    New Zealand
    MS-Off Ver
    Excel 365 Insider Fast
    Posts
    11,372

    Re: Drop Down Menus

    This forum has a functionality to upload workbooks. Use it. Nobody feels like going to an untrusted external site to download something only after having to stare at the screen for an artificial delay period.

  8. #8
    Registered User
    Join Date
    11-04-2009
    Location
    Chicago, Illinois
    MS-Off Ver
    Excel 2003
    Posts
    27

    Re: Drop Down Menus

    Hey man im sorry im really new to this forum how do i go about uploading it to this forum?

  9. #9
    Registered User
    Join Date
    11-04-2009
    Location
    Chicago, Illinois
    MS-Off Ver
    Excel 2003
    Posts
    27

    Re: Drop Down Menus

    Sorry common sense question... ok the downloadable link is in here now. If anyone could help me out with this it would be very appreciated... but this vba stuff i have no idea about ill try to read about it while you guys respond
    Attached Files Attached Files

  10. #10
    Forum Moderator davesexcel's Avatar
    Join Date
    02-19-2006
    Location
    Regina
    MS-Off Ver
    MS 365
    Posts
    13,482

    Re: Drop Down Menus

    Quote Originally Posted by wiL View Post
    Sorry common sense question... ok the downloadable link is in here now. If anyone could help me out with this it would be very appreciated... but this vba stuff i have no idea about ill try to read about it while you guys respond
    After looking at your workbook, and reading your original question!

    Are you going to be saving this workbook for this particular client and then starting a new workbook for a new client?

  11. #11
    Registered User
    Join Date
    11-04-2009
    Location
    Chicago, Illinois
    MS-Off Ver
    Excel 2003
    Posts
    27

    Re: Drop Down Menus

    correct I will be starting a new document every single time. I'm going to have this as a template and saving as a different documents every time I have a different client.

  12. #12
    Forum Moderator davesexcel's Avatar
    Join Date
    02-19-2006
    Location
    Regina
    MS-Off Ver
    MS 365
    Posts
    13,482

    Re: Drop Down Menus

    Quote Originally Posted by wiL View Post
    correct I will be starting a new document every single time. I'm going to have this as a template and saving as a different documents every time I have a different client.
    So if you open the original workbook, do some stuff to it, save it as different name, the original will still be the same won't it?

  13. #13
    Forum Expert
    Join Date
    01-03-2006
    Location
    Waikato, New Zealand
    MS-Off Ver
    2010 @ work & 2007 @ home
    Posts
    2,243

    Re: Drop Down Menus

    hi,

    I'm not sure if I have understood correctly but I'll give it a go...

    As the others say, you can either have a value or a formula in a cell but not both, & if you can really only have the single cell/column you will need VBA. However, if you are open to using a helper column you can use an IsBlank test to differentiate between use of the helper column & the looked-up value. Does the attached file work for you?

    hth
    Rob
    Attached Files Attached Files
    Rob Brockett
    Kiwi in the UK
    Always learning & the best way to learn is to experience...

  14. #14
    Registered User
    Join Date
    11-04-2009
    Location
    Chicago, Illinois
    MS-Off Ver
    Excel 2003
    Posts
    27

    Re: Drop Down Menus

    Yes Dave correct that's what I was planning on doing.

    broro i don't exactly follow the terms your using. I'm a novice user of excel. yes the workbook I have in the attachment works perfectly right now but if I'd like to manually fill something in the unit cost the formula will disappear. If I'm working on this over a couple days and if I messed up the manual input and want to go back I'd have to go through the hassle of copying the formula back into place and doing that every time will waste a lot of my time. So what I was wondering is if I can get it when i select something from the drop down in the description column it fills in the description column and on top of that the code column and the unit cost column.

    To explain how it works now is I have a drop down menu made for the description column and all you do is select the product. Then I have a vlookup in the code column where it looks up the product and matches the product code with this description. Then in the unit cost it looks up which code corresponds with which price. Extended cost which will stay looks at the quantity if there is a discount percent and will factor that in. if there isn't then it wont and then multiply the quantity by the unit cost.

    My question:
    So, basically is there a way to eliminate the formulas in the code column and the unit cost column by using the drop down of the description to fill in the code column and the unit cost column and keeping the structure of the template I made.

  15. #15
    Forum Moderator davesexcel's Avatar
    Join Date
    02-19-2006
    Location
    Regina
    MS-Off Ver
    MS 365
    Posts
    13,482

    Re: Drop Down Menus

    Hi wiL,

    Just to clarify, if you open the "Template", do some stuff to it, then save it with a different name, the template will not be altered, just the Workbook that you saved has been altered. Open the Template again and it should be unaltered.
    This is my confusion.

  16. #16
    Registered User
    Join Date
    11-04-2009
    Location
    Chicago, Illinois
    MS-Off Ver
    Excel 2003
    Posts
    27

    Re: Drop Down Menus

    Yeah thats whats going to go down lol...

  17. #17
    Registered User
    Join Date
    11-04-2009
    Location
    Chicago, Illinois
    MS-Off Ver
    Excel 2003
    Posts
    27

    Re: Drop Down Menus

    So can anyone help me out with this problem??

  18. #18
    Forum Expert
    Join Date
    01-03-2006
    Location
    Waikato, New Zealand
    MS-Off Ver
    2010 @ work & 2007 @ home
    Posts
    2,243

    Re: Drop Down Menus

    Hi Wil,
    Have you read up on VBA code/macros now?
    Are you happy to have VBA code in your template file, to allow you to remove the need for formulae?

    If you want to do more reading before saying yes, here's a collection of links with some introductory explanations about using macros:
    http://www.thecodecage.com/forumz/ex...tml#post471341
    This is the one I initially read: http://www.mvps.org/dmcritchie/excel/getstarted.htm

    hth
    Rob

  19. #19
    Forum Moderator davesexcel's Avatar
    Join Date
    02-19-2006
    Location
    Regina
    MS-Off Ver
    MS 365
    Posts
    13,482

    Re: Drop Down Menus

    Quote Originally Posted by wiL View Post
    So can anyone help me out with this problem??
    I thought the problem was solved, by not altering your template but altering the saved workbook.

  20. #20
    Registered User
    Join Date
    11-04-2009
    Location
    Chicago, Illinois
    MS-Off Ver
    Excel 2003
    Posts
    27

    Re: Drop Down Menus

    Yeah I was interested in following through with the vba/macros I'll read up on it right now.


    Dave, like I said before it works completely fine until it comes down to manually inputting data. I'm going to be making a different workbook every time to keep the original pristine but lets say once i do make my new workbook and i manually input something over the formula and its wrong and i have to go back I may not be able to do the simple ctrl+z if I'm doing this over a couple of days.

    So, for now can you guys answer this question? Is it possible for what I explained earlier? So lets say I keep the drop down for the description ok? And when I pick something from the description drop down menu it automatically fills in not only the description column but also the code column and the unit price column. Let me know if you follow

  21. #21
    Registered User
    Join Date
    11-04-2009
    Location
    Chicago, Illinois
    MS-Off Ver
    Excel 2003
    Posts
    27

    Re: Drop Down Menus

    Its fine its done I did it in vba

  22. #22
    Forum Expert
    Join Date
    01-03-2006
    Location
    Waikato, New Zealand
    MS-Off Ver
    2010 @ work & 2007 @ home
    Posts
    2,243

    Re: Drop Down Menus

    Thanks for letting us know - can you please mark the post as solved?

    Also, can you please post your solution for other users who may search this thread?

    Rob

+ 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