+ Reply to Thread
Results 1 to 3 of 3

Look up a date in a table with a list of multiple start and dates & return a default value

  1. #1
    Registered User
    Join Date
    03-25-2015
    Location
    Melbourne, VIC, AUS
    MS-Off Ver
    2013
    Posts
    17

    Look up a date in a table with a list of multiple start and dates & return a default value

    Hi All,

    I am having some trouble trying to create a query that will return a default value if the date being looked up falls between any of the start and end times in another table.

    The date being looked up is in table1 and start and end dates are in table2. I need for the value in table 1 to be compared to each of the start and end dates in table2.

    So what i would like is if [table1].[date] is between any of the list of [table2].[startdate]'s and [table2].[enddate]'s then the value "TRUE" to be shown, otherwise [table1].[value] to show.

    Hopefully this makes sense, thanks in advance!

    Also Posted here
    Last edited by dnwadams; 10-06-2015 at 01:06 AM.

  2. #2
    Forum Moderator alansidman's Avatar
    Join Date
    02-02-2010
    Location
    Steamboat Springs, CO
    MS-Off Ver
    MS Office 365 Version 2405 Win 11 Home 64 Bit
    Posts
    23,882

    Re: Look up a date in a table with a list of multiple start and dates & return a default v

    Your post does not comply with Rule 8 of our Forum RULES. Do not crosspost your question on multiple forums without including links here to the other threads on other forums.

    Cross-posting is when you post the same question in other forums on the web. The last thing you want to do is waste people's time working on an issue you have already resolved elsewhere. We prefer that you not cross-post at all, but if you do (and it's unlikely to go unnoticed), you MUST provide a link (copy the url from the address bar in your browser) to the cross-post.

    Expect cross-posted questions without a link to be closed and a message will be posted by the moderator explaining why. We are here to help so help us to help you!

    Read this to understand why we ask you to do this, and then please edit your first post to include links to any and all cross-posts in any other forums (not just this site).
    Alan עַם יִשְׂרָאֵל חַי


    Change an Ugly Report with Power Query
    Database Normalization
    Complete Guide to Power Query
    Man's Mind Stretched to New Dimensions Never Returns to Its Original Form

  3. #3
    Registered User
    Join Date
    03-25-2015
    Location
    Melbourne, VIC, AUS
    MS-Off Ver
    2013
    Posts
    17

    Re: Look up a date in a table with a list of multiple start and dates & return a default v

    Hi Alan,

    Thanks for letting me know, i will remember this in future !

+ 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. Setting a start date and end date for Index-Match within a list of dates
    By wiqbal in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 04-04-2015, 10:00 PM
  2. Fill table with dates given start and end date
    By harryhermit in forum Excel General
    Replies: 3
    Last Post: 12-29-2013, 10:21 AM
  3. Replies: 3
    Last Post: 10-13-2012, 08:09 PM
  4. Replies: 4
    Last Post: 10-05-2012, 03:06 PM
  5. Return cell value on calendar for all dates between start date & end date
    By mmctague in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 09-23-2012, 02:11 PM
  6. [SOLVED] How to make drop-down list of dates start with current date?
    By Jan Buckley in forum Excel General
    Replies: 15
    Last Post: 08-29-2005, 05:05 PM
  7. expanding a start date and end date to show all the dates in a list
    By musicman in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 07-20-2005, 04:05 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