+ Reply to Thread
Results 1 to 2 of 2

Change cell content depending on selection from drop down list

  1. #1
    Registered User
    Join Date
    04-22-2013
    Location
    Manchester, England
    MS-Off Ver
    Excel for Mac 2011
    Posts
    22

    Change cell content depending on selection from drop down list

    Hi,

    On sheet 2, I have cells A1:A12 labeled Jan, Feb through to Dec. In cells B1:B12 I have figures that relate to this month. On sheet 1, I want a drop down box that when I select a month then a cell will automatically populate the figure below the cell related to that month on sheet 2 - I have several rows with different figures on sheet 2 that would summarise on sheet 1 depending on the month selected from the drop down list on sheet 1.

    I know how to create the list using Data Validation - but not sure how to get it to change the figures depending on which month I select from the drop down menu.

    Can anyone help?

    Many thanks,

  2. #2
    Forum Expert daffodil11's Avatar
    Join Date
    07-11-2013
    Location
    Phoenixville, PA
    MS-Off Ver
    MS Office 2016
    Posts
    4,465

    Re: Change cell content depending on selection from drop down list

    I'd go with INDEX(..SMALL(IF array.

    Where A2:A7 was my first column of things I wanted to return, C2:C7 was month name.

    =IFERROR(INDEX(Sheet2!A$2:A$7,SMALL(IF(Sheet2!$C$2:$C$7=Sheet1!$B$3,ROW($C$2:$C$7)-1),ROW(A1))),"")

    This is an array formula, confirmed by pressing CTRL+SHIFT+ENTER to activate the array, not just ENTER. You will know the array is active when you see curly braces { } appear around your formula. If you do not CTRL+SHIFT+ENTER you will get an error or a clearly incorrect answer. Press F2 on that cell and try again.

    Once entered, the formula was dragged over and down as needed.
    Attached Files Attached Files
    Make Mom proud: Add to my reputation if I helped out!

    Make the Moderators happy: Mark the Thread as Solved if your question was answered!

+ 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. Vlookup to chose correct list depending on a drop down list selection
    By Bandit_750 in forum Excel Formulas & Functions
    Replies: 19
    Last Post: 12-06-2015, 06:22 PM
  2. Replies: 1
    Last Post: 06-22-2014, 02:39 AM
  3. [SOLVED] Hide columns depending on a text selection in a drop-down list
    By hvide makelele in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 05-08-2012, 04:00 PM
  4. [SOLVED] Hide rows depending on a selection in a drop-down list.
    By Kim_Mohler in forum Excel General
    Replies: 5
    Last Post: 05-02-2012, 05:40 PM
  5. Change ws3 Cell Content Depending On ws1 Content
    By heliskier89 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 05-24-2011, 04:52 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