+ Reply to Thread
Results 1 to 6 of 6

Move to cell range when drop down selected.

  1. #1
    Registered User
    Join Date
    07-12-2019
    Location
    England
    MS-Off Ver
    Office 365
    Posts
    3

    Move to cell range when drop down selected.

    Hi all,


    Really stuck here and hoping the forum can help.


    I am currently setting up a project plan style document, I have a data validation for the months and have managed to get the dates populated based on this selection. I am trying to get range J5:AN18 to display if "Jan" is selected in the validation drop down, and when "Feb" is selected Range AO5:BP18 and so on for the rest of the months, the idea is to hide all the other columns so they are only displayed when selected from the drop down list.


    Thanks in advance for any help.

  2. #2
    Forum Expert Sam Capricci's Avatar
    Join Date
    06-14-2012
    Location
    Palm Harbor, Florida
    MS-Off Ver
    16.84 for Mac MS 365
    Posts
    8,496

    Re: Move to cell range when drop down selected.

    one way is to use if statements with vlookups, for instance if(wherever Jan is,vlookup(wherever Jan is,J5:AN18, then if(wherever Feb is,vlookup(wherever Feb is,A05:BP18 etc.
    Not sure what you've tried or if you have sample data that might make it easier to develop a set of formulas for you.
    Make contributors happy, click on the "* Add Reputation" as a way to say thank you.
    Sam Capricci

  3. #3
    Registered User
    Join Date
    07-12-2019
    Location
    England
    MS-Off Ver
    Office 365
    Posts
    3

    Re: Move to cell range when drop down selected.

    Thanks Sambo Kid


    I have attached a sample file if it makes it easier.
    Attached Files Attached Files

  4. #4
    Forum Expert Sam Capricci's Avatar
    Join Date
    06-14-2012
    Location
    Palm Harbor, Florida
    MS-Off Ver
    16.84 for Mac MS 365
    Posts
    8,496

    Re: Move to cell range when drop down selected.

    It would help to know what results you want where. In your first post you mention you want all other columns hidden when selecting Jan or Feb etc. Which ranges would be hidden?
    You didn't include any results you want and in which cells. I'm assuming your dropdown you refer to is in cell J2 of the project planner tab, is that correct? Where does the data come from that would populate the results? What are the results you are looking to have populated, something for each column from J through AN if Jan is selected? What gets hidden, if you selected Feb for example would columns J through AN be hidden along with BQ through NJ? And if you select Feb and col J is hidden you cannot select another month without un-hiding that column?
    An explanation here and a workbook with results and where they come from would be a better help.

  5. #5
    Registered User
    Join Date
    07-12-2019
    Location
    England
    MS-Off Ver
    Office 365
    Posts
    3

    Re: Move to cell range when drop down selected.

    Sorry guys, I have been very vague I will try to explain in a bit more detail.

    so the dates run from J4:NJ4 this is from the 1st Jan to 31st December.

    The idea is that when the month is selected from the drop down in J2 all the dates corresponding to the month selected will be displayed, this would include all the dates for example 1st Jan to 31st Jan as well as the activity entries below the dates. So the range that would show is J4:AN41. If Feb is selected in J2 the range shown in the same place would be AO8:BP41.

    I am trying to store data in the cells under the monthly dates and if the month is changed from Jan to Feb I would need the previous data to stay in the cell and not be overwritten.

    I hope that explain its a bit better and thanks for your help so far.

  6. #6
    Forum Expert Sam Capricci's Avatar
    Join Date
    06-14-2012
    Location
    Palm Harbor, Florida
    MS-Off Ver
    16.84 for Mac MS 365
    Posts
    8,496

    Re: Move to cell range when drop down selected.

    well, not trying to be nasty but your layout is not very helpful. It is impossible to see all the range of data from Jan through Dec and understand what you want populated in what locations.
    Can you reload the workbook with some actual data, show what will be selected and show some expected results AND where they would come from?

+ 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. Button that inserts a text into a selected cell or a range on selected cells
    By gorely84 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 11-21-2018, 10:47 PM
  2. [SOLVED] Move cursor to the right automatically after data is entered/selected from the drop downs
    By sloshpuppy in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 12-15-2017, 11:14 AM
  3. Selected cell and everything below it, move down one row.
    By taylorsm in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 05-19-2017, 03:47 PM
  4. [SOLVED] Move cells so that selected range is right aligned
    By Pedsdude in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 06-02-2014, 03:39 PM
  5. select a sheet from a drop down menu and move the row in the selected sheet
    By AlienPump in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 04-27-2012, 02:21 PM
  6. Move selected column to end of dynamic range
    By RedWing in forum Excel General
    Replies: 1
    Last Post: 09-10-2011, 05:19 PM
  7. When a drop selected, move row to different location?
    By soltek in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 02-08-2005, 01:04 PM

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