+ Reply to Thread
Results 1 to 3 of 3

Drop down list formula - help required

  1. #1
    Registered User
    Join Date
    04-11-2012
    Location
    Nottingham
    MS-Off Ver
    Excel 2010
    Posts
    11

    Drop down list formula - help required

    Hi peeps,

    Need some help please!

    I need to produce a formula and a single numeric result from a couple of drop down lists. The drop down list values are presented in text, but I require the formula in numerics. I am guessing that I will have to do this through VLOOKUP, but not too sure how to go about it.....

    More details of what I need to do.......

    I have two drop down boxes which have a text format selection (in black), but need to relate to a numeric value (in red):

    FIRST DROP DOWN (the 'multiplier')

    In Hours - 1
    OOH (+ Sat) - 1.5
    OOH (Sun + BH) - 2

    SECOND DROP DOWN (the 'rate')

    Labour 1 Man - 22
    Labour Fitter + Mate - 66

    In a spreadsheet, I need to multiply the chosen rate numeric value by the chosen multiplier numeric value and then, output this total numeric value to a cell on the worksheet.

    Any help and/ or advice on how to do this would be appreciated.

  2. #2
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898

    Re: Drop down list formula - help required

    Try:

    =VLOOKUP(A1,{"In Hours",1.1;"OOH (+ Sat)",1.5;"OOH (Sun + BH)",2},2,0)*VLOOKUP(B1,{"Labour 1 Man",22;"Labour Fitter + Mate",66},2,0)

    where A1 and B1 are drop downs, respectively.
    Last edited by NBVC; 04-11-2012 at 02:16 PM.
    Where there is a will there are many ways.

    If you are happy with the results, please add to the contributor's reputation by clicking the reputation icon (star icon) below left corner

    Please also mark the thread as Solved once it is solved. Check the FAQ's to see how.

  3. #3
    Registered User
    Join Date
    04-11-2012
    Location
    Nottingham
    MS-Off Ver
    Excel 2010
    Posts
    11

    Re: Drop down list formula - help required

    Quote Originally Posted by NBVC View Post
    Try:

    =VLOOKUP(A1,{"In Hours",1.1;"OOH (+ Sat)",1.5;"OOH (Sun + BH)",2},2,0)*VLOOKUP(B1,{"Labour 1 Man",22;"Labour Fitter + Mate",66},2,0)

    where A1 and B1 are drop downs, respectively.
    A HUGE thanks - works like a charm and does what it says on the tin!! I think I was making things too complicated by my feeble attempt to 'script' it......

+ 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