+ Reply to Thread
Results 1 to 6 of 6

Setting a word I type and let excel pull up a range of dates

  1. #1
    Registered User
    Join Date
    05-13-2013
    Location
    Singapore
    MS-Off Ver
    Excel 2010
    Posts
    4

    Setting a word I type and let excel pull up a range of dates

    Hi all forum gurus,

    I am very new to excel and I am wondering if this is possible.

    I have a spreadsheet with plenty of data and the data is linked to bloomberg.

    So i am trying to make a spreadsheet that is dynamic. How I want it to work is like this:

    For example, I want to type in "C N3 Comdty" in a cell, which is the only cell that I need to input, and this acts as a command to input
    a date range (say 1/5/2013 to 13//5/2013) into two separate cells say C1 (1/5/2013) and D1 (13/5/2013).

    Can this be done? If possible, please teach me how to do it.

    Million thanks in advance.

  2. #2
    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,939

    Re: Setting a word I type and let excel pull up a range of dates

    Hi and welcome to the forum

    how will you know what dates you want to have shown?

    You could probably do this with either a vlookup() - if you have a lot of variables to choose from - of with a simple =if(A1=C N3 Comdty,"1/5/2013,"")

    Without seeing what you are working with, its a bit hard to say
    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

  3. #3
    Registered User
    Join Date
    05-13-2013
    Location
    Singapore
    MS-Off Ver
    Excel 2010
    Posts
    4

    Re: Setting a word I type and let excel pull up a range of dates

    Hi FDibbins,

    I want it to be a set of fixed dates. For example, C N3 Comdty will always be 1/5/2013 to 13/5/2013 and C N4 Comdty will always be 1/5/2014 to 13/5/2014. I just want to say input "C N3 Comdty" into cell A1 for example, and it will populate 2 cells. i.e C 1 and D 1 with 1/5/2013 and 13/5/2013.
    Last edited by Chowzz; 05-13-2013 at 10:50 PM.

  4. #4
    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,939

    Re: Setting a word I type and let excel pull up a range of dates

    Take a look at the attached and see if that will work for you? I created a table M1:O3 for your text and dates
    the yellow cell A2 has a drop-down based on the above table, so you dont have to type the text - and avoids typos
    Click the small arrow, pick a text and the dates appear.
    I left a blank at the top incase you dont want anything shown.
    To extend the table on the right, enter/paste your additional data below what is already there, click on A2, then on the ribbon, select DATA/Data Validation/data validation and extend the range you see there
    Hope this helps?
    Attached Files Attached Files

  5. #5
    Registered User
    Join Date
    05-13-2013
    Location
    Singapore
    MS-Off Ver
    Excel 2010
    Posts
    4

    Re: Setting a word I type and let excel pull up a range of dates

    Exactly! This is what I need!!

    OMG you are my saviour FD!

    Thank you!

  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,939

    Re: Setting a word I type and let excel pull up a range of dates

    Happy to help and thanks for the feedback

+ 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