+ Reply to Thread
Results 1 to 10 of 10

Assign Two Values to Cell Dependent on a Drop Down Menu

  1. #1
    Registered User
    Join Date
    02-26-2012
    Location
    San Diego, CA
    MS-Off Ver
    Excel 2010
    Posts
    62

    Assign Two Values to Cell Dependent on a Drop Down Menu

    I have a large range of cells that I would like to add two or more values to, depending on which option is chosen from a drop down menu. Is this possible?

  2. #2
    Valued Forum Contributor
    Join Date
    04-03-2012
    Location
    East Sussex, UK
    MS-Off Ver
    Excel 2003:2010
    Posts
    893

    Re: Assign Two Values to Cell Dependent on a Drop Down Menu

    It may or may not be... it's not entirely clear from your post what you actually mean.

    Could you explain a little more?
    Perhaps attach an example workbook with a before & after?
    If I've been of help, please hit the star

  3. #3
    Forum Expert Fotis1991's Avatar
    Join Date
    10-11-2011
    Location
    Athens(The homeland of the Democracy!). Greece
    MS-Off Ver
    Excel 1997!&2003 & 2007&2010
    Posts
    13,744

    Re: Assign Two Values to Cell Dependent on a Drop Down Menu

    Look's like a SUMIF issue.
    Regards

    Fotis.

    -This is my Greek whisper to Europe.

    --Remember, saying thanks only takes a second or two. Click the little star * below, to give some Rep if you think an answer deserves it.

    Advanced Excel Techniques: http://excelxor.com/

    --KISS(Keep it simple Stupid)

    --Bring them back.

    ---See about Acropolis of Athens.

    --Visit Greece.

  4. #4
    Registered User
    Join Date
    02-26-2012
    Location
    San Diego, CA
    MS-Off Ver
    Excel 2010
    Posts
    62

    Re: Assign Two Values to Cell Dependent on a Drop Down Menu

    A simple example could be this. Cell A1 is a drop down menu, with two choices "1" or "2". Cell B1:F10 would contain two different values. The visible value is dependent on whether"1" or "2" is chosen from the drop down menu. Im a little rushed atm, but if that doesn't make sense I will make an example worksheet. Thanks for your help.

  5. #5
    Registered User
    Join Date
    02-26-2012
    Location
    San Diego, CA
    MS-Off Ver
    Excel 2010
    Posts
    62

    Re: Assign Two Values to Cell Dependent on a Drop Down Menu

    Data Dependent on Drop Down.xlsx

    In the example I attached, all of the red question marks would change to A data, B data, or C data, depending on what option I pick from the drop down.

  6. #6
    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,926

    Re: Assign Two Values to Cell Dependent on a Drop Down Menu

    try this...

    In B2, copied down and across, use this...

    =OFFSET(B$1,ROW(A1),MATCH($C$1,$F$1:$P$1,0)+2)
    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

  7. #7
    Registered User
    Join Date
    02-26-2012
    Location
    San Diego, CA
    MS-Off Ver
    Excel 2010
    Posts
    62

    Re: Assign Two Values to Cell Dependent on a Drop Down Menu

    Hmmm, I got it to work for cell B2 only. How would I get this to work for the whole range B2:D5?

  8. #8
    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,926

    Re: Assign Two Values to Cell Dependent on a Drop Down Menu

    On the sample file you provided, that worked fine when I copied down and across.

    If your actual range is different to what you posted, adjust the ranges accordingly

  9. #9
    Registered User
    Join Date
    02-26-2012
    Location
    San Diego, CA
    MS-Off Ver
    Excel 2010
    Posts
    62

    Re: Assign Two Values to Cell Dependent on a Drop Down Menu

    excel problem 1.xlsx

    Thanks so much, I got it to work on the example worksheet. However, when I tried to alter that formula to make it work in the actual worksheet I am making, I was having troubles. If it isn't too much too ask, could you make the formula for the new attached worksheet. Cell W2 contains the drop down menu and the data are in the 3 bottom red boxes. Thanks again!

  10. #10
    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,926

    Re: Assign Two Values to Cell Dependent on a Drop Down Menu

    OK yes, I can see how what I gave you wouldnt work, your tables are oriented differently

    Try this approach instead.

    1st give each table "heading" a name range. for instance, right-click W29, select "name a range" and click enter (if should already have picked MR as the name). Repeat for all other tables.

    Then use this formula in R4, copied down and across...

    =OFFSET(INDIRECT($X$2),ROW(A1),COLUMN(R1)-COLUMN($X1)+1)

+ 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