+ Reply to Thread
Results 1 to 12 of 12

Options in Drop Down Menu to choose from different formulas.. I think...

  1. #1
    Registered User
    Join Date
    04-03-2013
    Location
    mn
    MS-Off Ver
    Excel 2003
    Posts
    7

    Options in Drop Down Menu to choose from different formulas.. I think...

    I am trying to work out a work order worksheet. I would like the "Labor Total" to equal the hours Xs one of two shop rates (88 or 60/hour), selectable via drop down menu in the labor parts cell.

    I am totally confused and am quite sure I am not making much sense. I am hoping (and am certain that) there are many people here smarter and more experienced than me who are willing to help.

    I have attached the file. Column L will be hidden.

    With great thanks,
    Sample Excel File.xls

  2. #2
    Forum Expert JBeaucaire's Avatar
    Join Date
    03-21-2004
    Location
    Bakersfield, CA
    MS-Off Ver
    2010, 2016, Office 365
    Posts
    33,492

    Re: Options in Drop Down Menu to choose from different formulas.. I think...

    I would suggest having a "default" rate and switching to the other rate only a specific value is entered in your test cell.

    So let's assume you are choosing Shop1 or Shop2 in cell L7. We'll test for one, the other will be implied.

    =E7*IF(L7="Shop1", 60, 88)
    _________________
    Microsoft MVP 2010 - Excel
    Visit: Jerry Beaucaire's Excel Files & Macros

    If you've been given good help, use the icon below to give reputation feedback, it is appreciated.
    Always put your code between code tags. [CODE] your code here [/CODE]

    ?None of us is as good as all of us? - Ray Kroc
    ?Actually, I *am* a rocket scientist.? - JB (little ones count!)

  3. #3
    Registered User
    Join Date
    04-03-2013
    Location
    mn
    MS-Off Ver
    Excel 2003
    Posts
    7

    Re: Options in Drop Down Menu to choose from different formulas.. I think...

    Would you mind, breaking that down even further for me? I really want to get this right.
    Thank you-

  4. #4
    Forum Expert JBeaucaire's Avatar
    Join Date
    03-21-2004
    Location
    Bakersfield, CA
    MS-Off Ver
    2010, 2016, Office 365
    Posts
    33,492

    Re: Options in Drop Down Menu to choose from different formulas.. I think...

    Sure.

    1) What cell in row 7 will you be selecting the parts shop? L7?
    2) What exactly will the two choices be?
    3) What are the rates for each choice?
    4) Will there ever be MORE than these two choices?

  5. #5
    Registered User
    Join Date
    04-03-2013
    Location
    mn
    MS-Off Ver
    Excel 2003
    Posts
    7

    Re: Options in Drop Down Menu to choose from different formulas.. I think...

    Thank you.

    1) L7
    2) Maint. Shop, Paint Shop
    3) 88 or 60
    4) Yes, one or 2 more possibly in the future.

  6. #6
    Forum Expert JBeaucaire's Avatar
    Join Date
    03-21-2004
    Location
    Bakersfield, CA
    MS-Off Ver
    2010, 2016, Office 365
    Posts
    33,492

    Re: Options in Drop Down Menu to choose from different formulas.. I think...

    This LOOKUP formula can be expanded as needed to allow for as many shop names and rates as you wish.

    =LOOKUP(L7, {"Maint. Shop","Paint Shop","Shop1","Shop2"}, {88,60,0,0})

    IMPORTANT - the array of shop names is alphabetized! Remember that. The array of rates must be in the correct order to match the order of the shop names.

    So if you add a new shop in the future to be Shop1 and it's actually called ACME, well, that would have to be moved to the start of the rates array, and the rates reordered to match.

  7. #7
    Registered User
    Join Date
    04-03-2013
    Location
    mn
    MS-Off Ver
    Excel 2003
    Posts
    7

    Re: Options in Drop Down Menu to choose from different formulas.. I think...

    So I create two arrays (as described), and place that LOOKUP formula in the Labor rate cell?

  8. #8
    Forum Expert JBeaucaire's Avatar
    Join Date
    03-21-2004
    Location
    Bakersfield, CA
    MS-Off Ver
    2010, 2016, Office 365
    Posts
    33,492

    Re: Options in Drop Down Menu to choose from different formulas.. I think...

    Yes, that should work. Post your formula here for review if it's different from mine.

  9. #9
    Registered User
    Join Date
    04-03-2013
    Location
    mn
    MS-Off Ver
    Excel 2003
    Posts
    7

    Re: Options in Drop Down Menu to choose from different formulas.. I think...

    I am trying that and i must be missing something. I am sorry, I really am not as equipped for this than I thought. This should work in Excel 03?

  10. #10
    Forum Expert JBeaucaire's Avatar
    Join Date
    03-21-2004
    Location
    Bakersfield, CA
    MS-Off Ver
    2010, 2016, Office 365
    Posts
    33,492

    Re: Options in Drop Down Menu to choose from different formulas.. I think...

    You can do it. Post the formulas you've tried that aren't working as expected.

  11. #11
    Registered User
    Join Date
    04-03-2013
    Location
    mn
    MS-Off Ver
    Excel 2003
    Posts
    7

    Re: Options in Drop Down Menu to choose from different formulas.. I think...

    I don't even want to post my crazy attempts at formulas. Seriously, I need instructions that a 7 year old can follow. I am having an array of problems and I thought I could make a simple spreadsheet, it is turning out to be really, really hard.

    I am also trying to figure out how to make it kick out a new line with the same functions on enter.
    I also am trying to figure out how to give totals and a signature line at the bottom of the page without having a "definite" last page (because it's dependent on the number of line items.)

    I don't even know the right questions to ask. I used to be able to do some of these things before I stopped working full time when my son was born. Now I'm trying to get some work and I have forgotten everything. It's frustrating and embarrassing.

    I appreciate you trying to help, though.

  12. #12
    Forum Expert JBeaucaire's Avatar
    Join Date
    03-21-2004
    Location
    Bakersfield, CA
    MS-Off Ver
    2010, 2016, Office 365
    Posts
    33,492

    Re: Options in Drop Down Menu to choose from different formulas.. I think...

    Looking back at post #6:
    Quote Originally Posted by JBeaucaire View Post
    This LOOKUP formula can be expanded as needed to allow for as many shop names and rates as you wish.

    =LOOKUP(L7, {"Maint. Shop","Paint Shop","Shop1","Shop2"}, {88,60,0,0})

    IMPORTANT - the array of shop names is alphabetized! Remember that. The array of rates must be in the correct order to match the order of the shop names.

    So if you add a new shop in the future to be Shop1 and it's actually called ACME, well, that would have to be moved to the start of the rates array, and the rates reordered to match.
    Notice the red array has 4 elements?
    Each element is enclosed in "quotes" since they are text strings.
    Each element in the array is separated by a comma
    The elements in this array are listed in alphabetical order.
    The array is enclosed in curly braces { }

    Notice the rblue array also has 4 elements?
    Each element is NOT enclosed in "quotes" since they are numeric values.
    Each element in the array is separated by a comma
    The array is enclosed in curly braces { }

    The first element in each of the arrays go together. So the second element "Paint Shop" matches to the second element 60.

    In the formula the first parameter is the "shop" we are trying to lookup in the first array.

+ 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. contents of cell is based on what I choose in a drop down menu
    By damolee in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 06-19-2009, 05:06 AM
  2. Drop Down Menu Options?
    By ibo4lyf in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 03-15-2008, 12:20 AM
  3. Replies: 1
    Last Post: 07-06-2006, 05:25 PM
  4. Drop-down menu options
    By conksu in forum Excel General
    Replies: 3
    Last Post: 04-27-2006, 02:15 PM
  5. [SOLVED] why the date convert to number when i choose formulas from options
    By Musab Saleh in forum Excel General
    Replies: 1
    Last Post: 04-05-2006, 02:45 PM

Tags for this Thread

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