+ Reply to Thread
Results 1 to 9 of 9

vlookup with dates made from a dropdown menu

  1. #1
    Registered User
    Join Date
    11-06-2012
    Location
    Earth, The Milkyway
    MS-Off Ver
    Excel 2010
    Posts
    20

    vlookup with dates made from a dropdown menu

    Hi all,

    I am new to the forum so apologies if this is in the wrong section.

    I am working with some data for power vs time. The data is taken from a data logger which outputs values every five minutes so there is quite a bit of data.
    I am looking to use the drop down lists to allow someone to pick: the year, the month & the day. From that I want to be able to do a vlookup of my data with the times chosen.

    The data itself outputs time & date as :"dd/mm/yyyy hh:mm:ss" (which is a pain in the ar*e). The problem I am having is I can't get the three separate drop down boxes (i.e. year, month, date) to combine into the correct format (i.e. dd/mm/yyyy) so I can do a vlookup on it. Any suggestions?

  2. #2
    Forum Expert dilipandey's Avatar
    Join Date
    12-05-2011
    Location
    Dubai, UAE
    MS-Off Ver
    1997 - 2016
    Posts
    8,191

    Re: vlookup with dates made from a dropdown menu

    Hi smjpl,

    Welcome to the forum.
    I understand that the data "dd/mm/yyyy hh:mm:ss" and you wish to give the user the 3 different dropdowns.. for year / month / day.
    You can combine these three values to talk to your data... upload a sample workbook so that I can give a try Thanks.

    Regards,
    DILIPandey

    <click on below 'star' if this helps>
    DILIPandey, Excel rMVP
    +919810929744 (India), +971528225509 (Dubai), [email protected]

  3. #3
    Registered User
    Join Date
    11-06-2012
    Location
    Earth, The Milkyway
    MS-Off Ver
    Excel 2010
    Posts
    20

    Re: vlookup with dates made from a dropdown menu

    Hi DILIPandey,

    Thanks for the reply and the welcome message. Yeah it is the combining of three separate numbers to make a date that I don't know how to do. I have attached the sample sheet.

    Cheers
    Attached Files Attached Files

  4. #4
    Forum Expert dilipandey's Avatar
    Join Date
    12-05-2011
    Location
    Dubai, UAE
    MS-Off Ver
    1997 - 2016
    Posts
    8,191

    Re: vlookup with dates made from a dropdown menu

    Ok.. see the highlighted cell in the attachment where I have used the below formula to obtain date from the dropdowns:-

    =DATE($G$7,INDEX($L$3:$L$14,MATCH($G$8,$K$3:$K$14,0)),G9)

    Book2.xls

    but I am not sure what's next...

    Regards,
    DILIPandey

    <click on below 'star' if this helps>

  5. #5
    Registered User
    Join Date
    11-06-2012
    Location
    Earth, The Milkyway
    MS-Off Ver
    Excel 2010
    Posts
    20

    Re: vlookup with dates made from a dropdown menu

    Is there one that also included time as well?

    i.e. =date & time(....

    or something like that?

  6. #6
    Forum Expert dilipandey's Avatar
    Join Date
    12-05-2011
    Location
    Dubai, UAE
    MS-Off Ver
    1997 - 2016
    Posts
    8,191

    Re: vlookup with dates made from a dropdown menu

    yes.. but you do not have dropdowns for time.. Suggest you to share the complete scenario.. and also after combining this date and time. what and where to do lookup...

    I guess.... Date+Time will do the task but not sure till the time I see the data

    Regards,
    DILIPandey

    <click on below 'star' if this helps>

  7. #7
    Registered User
    Join Date
    11-06-2012
    Location
    Earth, The Milkyway
    MS-Off Ver
    Excel 2010
    Posts
    20

    Re: vlookup with dates made from a dropdown menu

    Basically I want to be able to show graphs over different time periods. At the moment I have data for around 20 days. It is all in one big continuous column though. I want to be able to quickly look at the data for maybe day 13 only without having to go in and change graph ranges.

    The way I was planning on doing it was having graphs based on vlookups. Graph a cell range (keep cell range fixed) but use vlookups to transfer the data from the actual data location into that fixed cell range and base it off the drop downs.

    The reason there are no time drop downs is because they don't need to be optional. Not yet anyway. I would just put in a fixed start and end time so it would just show data for that day or something like that.

  8. #8
    Registered User
    Join Date
    11-06-2012
    Location
    Earth, The Milkyway
    MS-Off Ver
    Excel 2010
    Posts
    20

    Re: vlookup with dates made from a dropdown menu

    Have the time and date issue solved. I guess its time to see if "whats next" actually works. Will post you the results (if you want) if I get it working.

    Thanks again for your help.

  9. #9
    Forum Expert dilipandey's Avatar
    Join Date
    12-05-2011
    Location
    Dubai, UAE
    MS-Off Ver
    1997 - 2016
    Posts
    8,191

    Re: vlookup with dates made from a dropdown menu

    You are welcome..

    Regards,
    DILIPandey

    <click on below 'star' if this helps>

+ 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