+ Reply to Thread
Results 1 to 5 of 5

Quantity formula when several options are selected.

  1. #1
    Registered User
    Join Date
    02-19-2013
    Location
    Wales
    MS-Off Ver
    Excel 2003
    Posts
    12

    Quantity formula when several options are selected.

    I have a spreadsheet attached which has thre pull down menus (lists), also in E2 is an output file, The formula I need is to fill a qauntity in E2 when seveal of the options are selected, for example when A1=380, A2=RED & A3 =E i want E2 to display 5.
    another example, when A1=208, A2=BLUE & A3 =F I WANT E2 =10.

    I can write the formula for two cells to = 5 but struggle to enter a code for all three, any suggestions please?
    Attached Files Attached Files

  2. #2
    Forum Guru benishiryo's Avatar
    Join Date
    03-25-2011
    Location
    Singapore
    MS-Off Ver
    Excel 2013
    Posts
    5,156

    Re: Quantity formula when several options are selected.

    hi daffyw, do up a table of possible values & then do a VLOOKUP
    Attached Files Attached Files

    Thanks, if you have clicked on the * and added our rep.

    If you're satisfied with the answer, click Thread Tools above your first post, select "Mark your thread as Solved".

    "Contentment is not the fulfillment of what you want, but the realization of what you already have."


    Tips & Tutorials I Compiled | How to Get Quick & Good Answers

  3. #3
    Registered User
    Join Date
    02-19-2013
    Location
    Wales
    MS-Off Ver
    Excel 2003
    Posts
    12

    Re: Quantity formula when several options are selected.

    Thanks, Never thought of using vlookup...

  4. #4
    Registered User
    Join Date
    02-19-2013
    Location
    Wales
    MS-Off Ver
    Excel 2003
    Posts
    12

    Re: Quantity formula when several options are selected.

    One other quick question, When options are selected that are unique, the display/ row shows #n/a, how do you hide or make the row blank instead of showing n/a?

  5. #5
    Forum Guru benishiryo's Avatar
    Join Date
    03-25-2011
    Location
    Singapore
    MS-Off Ver
    Excel 2013
    Posts
    5,156

    Re: Quantity formula when several options are selected.

    in Excel 2003, try:
    =IF(ISNA(VLOOKUP(A1&A2&A3,$K$1:$L$3,2,0)),"",VLOOKUP(A1&A2&A3,$K$1:$L$3,2,0))

    in Excel 2007 & above:
    =IFERROR(VLOOKUP(A1&A2&A3,$K$1:$L$3,2,0),"")

+ 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