+ Reply to Thread
Results 1 to 3 of 3

V-Lookup, Match or Index when searching between two dates

  1. #1
    Registered User
    Join Date
    06-20-2013
    Location
    London
    MS-Off Ver
    Excel 2010
    Posts
    2

    V-Lookup, Match or Index when searching between two dates

    Hi,

    We have over 600 customer and I need a formula that tells me whether or not we have had a sale from a customer between two dates, so that I can monitor them on a weekly basis.

    Example:
    Customer A made sales on 01/06/2013, 02/06/2013, 05/06/2013 and 07/06/2013
    Customer E made sales on 10/06/2013

    Did Customer A make a sale during the week ending 09/06/2013 (From 01/06/2013 to 09/06/2013 inclusive) - The result should be Yes
    Did Customer A make a sale during the week ending 16/06/2013 (From 10/06/2013 to 16/06/2013 inclusive) - The result should be No

    Did Customer B make a sale during the week ending 09/06/2013 (From 01/06/2013 to 09/06/2013 inclusive) - The result should be No
    Did Customer A make a sale during the week ending 16/06/2013 (From 10/06/2013 to 16/06/2013 inclusive) - The result should be Yes

    I've tried a Vlook-up, but that doesn't allow me to search between two date ranges. Someone suggested SUMPRODUCT, MATCH and INDEX but neither of those worked Perhaps I am not doing the formula properly.

    Would really appreciate it if someone could help me out. I have over 6000 transactions to analyse!!!

    I have attached a Spreadsheet that should help to explain what i need.

    Thanks in advance!!
    Attached Files Attached Files

  2. #2
    Forum Expert XOR LX's Avatar
    Join Date
    04-18-2013
    Location
    Turin, Italy
    MS-Off Ver
    Office 365
    Posts
    7,742

    Re: V-Lookup, Match or Index when searching between two dates

    Hi,

    In F4 and copy across and down as required:

    =IF(SUMPRODUCT(($C$4:$C$31=$E4)*($B$4:$B$31<=F$3)*($B$4:$B$31>=F$3-6))>0,"Yes","No")

    Regards
    Click * below if this answer helped

    Advanced Excel Techniques: http://excelxor.com/

  3. #3
    Registered User
    Join Date
    06-20-2013
    Location
    London
    MS-Off Ver
    Excel 2010
    Posts
    2

    Re: V-Lookup, Match or Index when searching between two dates

    That worked!!

    Thank you!!

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

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