Results 1 to 2 of 2

Thread: VLOOKUP then return date between two dates

  1. #1
    Board Regular
    Join Date
    Oct 2015
    Posts
    54
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Default VLOOKUP then return date between two dates

    Hi all,

    I need to do a VLOOKUP combined with a way to get a value association between two dates.

    On the left hand side is the range where authorization IDs and effective/expiration dates are. On the right hand side is where a lot of data will be with names, service dates, and a column to find the applicable ID for that service date. So if Frank Smith has a service date of between 2/14/19 and 7/13/19, it needs to return "2199"

    I'm able to get the date between two dates given the Service Date from the article here (https://www.extendoffice.com/documen...ate-range.html) but I need to also include the Name of the person.

    A B C D E F G H I
    1 Name Effective Date Expiration Date ID Service Name Service Date Lookup ID
    2 Frank Smith 2/14/19 7/13/19 2199 Frank Smith 6/20/19 2199
    3 Frank Smith 7/14/19 12/20/2020 2200 Frank Smith 6/29/19 2199
    4 Frank Smith 7/12/19 2199
    5 Frank Smith 7/13/19 2199
    6 Frank Smith 7/14/19 2200
    7 Frank Smith 7/18/19 2200
    Last edited by mnoah; Oct 22nd, 2019 at 05:42 PM.

  2. #2
    Board Regular DanteAmor's Avatar
    Join Date
    Dec 2018
    Location
    México
    Posts
    6,945
    Post Thanks / Like
    Mentioned
    85 Post(s)
    Tagged
    15 Thread(s)

    Default Re: VLOOKUP then return date between two dates

    Try this

     ABCDEFGHI
    1NameEffective DateExpiration DateID  Service NameService DateLookup ID
    2Frank Smith14/feb/201913/jul/20192199  Frank Smith20/jun/20192199
    3Frank Smith14/jul/201920/dic/20202200  Frank Smith29/jun/20192199
    4      Frank Smith12/jul/20192199
    5      Frank Smith13/jul/20192199
    6      Frank Smith14/jul/20192200
    7      Frank Smith18/jul/20192200

    CellFormula
    I2=SUMPRODUCT(($A$2:$A$3=G2)*($B$2:$B$3<=H2)*($C$2:$C$3>=H2)*($D$2:$D$3))
    Regards Dante Amor

Some videos you may like

User Tag List

Tags for this Thread

Like this thread? Share it with others

Like this thread? Share it with others

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •