+ Reply to Thread
Results 1 to 14 of 14

vlookup with Date range

  1. #1
    Registered User
    Join Date
    10-26-2011
    Location
    daska, Pakistan
    MS-Off Ver
    Excel 2003
    Posts
    46

    vlookup with Date range

    I need vlookup on cell E13 according date range which is F4 and F5 . Its showing last month value.
    It should show value with Employee id 101 with 01/12/2015 to 31/12/2015 on E13 is 4426.
    help me
    Check attachment
    Attached Files Attached Files
    Last edited by hsc14; 01-02-2016 at 04:45 AM.

  2. #2
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (both in England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2503 (Windows 11 Home 24H2 64-bit)
    Posts
    90,563

    Re: vlookup with Date range

    Can you provide a file without a macro? I prefer not to open Excel files with macros embedded - sorry.
    Ali


    Enthusiastic self-taught user of MS Excel who's always learning!
    Don't forget to say "thank you" in your thread to anyone who has offered you help. It's a universal courtesy.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    NB:
    as a Moderator, I never accept friendship requests.
    Forum Rules (updated August 2023): please read them here.

  3. #3
    Registered User
    Join Date
    10-26-2011
    Location
    daska, Pakistan
    MS-Off Ver
    Excel 2003
    Posts
    46

    Re: vlookup with Date range

    can u check the attachment now , its without macro.

  4. #4
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (both in England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2503 (Windows 11 Home 24H2 64-bit)
    Posts
    90,563

    Re: vlookup with Date range

    Your formula is only matching the employee ID, and is therefore returning the first entry on the salary data sheet that matches. You need to use an INDEX MATCH formula that references the employee ID AND the date. I will create one for you in a moment.

  5. #5
    Registered User
    Join Date
    07-30-2014
    Location
    india
    MS-Off Ver
    2007
    Posts
    43

    Re: vlookup with Date range

    concatenate emp id with date on both sheets and then apply vllokup.

  6. #6
    Registered User
    Join Date
    10-26-2011
    Location
    daska, Pakistan
    MS-Off Ver
    Excel 2003
    Posts
    46

    Re: vlookup with Date range

    thanks, I am waiting you helpful formula

  7. #7
    Forum Expert shukla.ankur281190's Avatar
    Join Date
    05-17-2014
    Location
    Lucknow, India
    MS-Off Ver
    Microsoft® Excel® for Microsoft 365 MSO (Version 2503 Build 16.0.18604.20000) 64-bit
    Posts
    3,992

    Re: vlookup with Date range

    Try

    E13=SUMPRODUCT((Sal_data!$A$5:$A$47>=Emp_Slip!$F$4)*(Sal_data!$A$5:$A$47<=Emp_Slip!$F$5)*(Sal_data!$B$5:$B$47=Emp_Slip!$C$6)*(Sal_data!$E$5:$E$47))

    Formula: copy to clipboard
    Please Login or Register  to view this content.
    If I helped, Don't forget to add reputation (click on the little star ★ at bottom of this post)
    Don't forget to mark threads as "Solved" (Thread Tools->Mark thread as Solved)

  8. #8
    Registered User
    Join Date
    10-26-2011
    Location
    daska, Pakistan
    MS-Off Ver
    Excel 2003
    Posts
    46

    Re: vlookup with Date range

    could you give me example pls

  9. #9
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (both in England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2503 (Windows 11 Home 24H2 64-bit)
    Posts
    90,563

    Re: vlookup with Date range

    Try this in E13:

    =INDEX(Sal_data!$E$5:$E$48,MATCH(1,INDEX((Sal_data!$B$5:$B$48=C6)*(Sal_data!$A$5:$A$48=F4),0),0))

  10. #10
    Forum Expert shukla.ankur281190's Avatar
    Join Date
    05-17-2014
    Location
    Lucknow, India
    MS-Off Ver
    Microsoft® Excel® for Microsoft 365 MSO (Version 2503 Build 16.0.18604.20000) 64-bit
    Posts
    3,992

    Re: vlookup with Date range

    What type example you want??? Is post 8 formula give not what you looking for??

  11. #11
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (both in England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2503 (Windows 11 Home 24H2 64-bit)
    Posts
    90,563

    Re: vlookup with Date range

    Quote Originally Posted by shukla.ankur281190 View Post
    What type example you want??? Is post 8 formula give not what you looking for??
    I don't think he was replying to you - there are others, like yourself, who have added suggestions.

  12. #12
    Forum Expert skywriter's Avatar
    Join Date
    06-09-2014
    Location
    USA
    MS-Off Ver
    365 Version 2409
    Posts
    2,789

    Re: vlookup with Date range

    hsc14 I'm not sure what you are doing, you abruptly mark the other thread as solved and then I see this one. You seemed to think you still had a problem but without feedback or explanation you just mark the thread solved and disappear?
    Other thread.

  13. #13
    Valued Forum Contributor
    Join Date
    12-02-2012
    Location
    Melbourne, VIC
    MS-Off Ver
    Excel 2016
    Posts
    750

    Re: vlookup with Date range


  14. #14
    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
    53,048

    Re: vlookup with Date range

    hsc14, are the other 2 threads of yours related to this 1?
    the others are at...
    http://www.excelforum.com/excel-prog...t-working.html
    and
    http://www.excelforum.com/excel-prog...ml#post4279904

    If they are, please stay with 1 thread until it is resolved, otherwise you could be wasting other member's time, by having them work of something there, that might be solved here

    If they are not the same, please tell me how they differ?
    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

+ 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. [SOLVED] Date range vlookup
    By Deventus in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 06-12-2014, 07:14 AM
  2. Vlookup, date range
    By SKN in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 05-23-2012, 07:45 PM
  3. Vlookup is not and date range
    By evanhughes in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 02-11-2011, 07:28 AM
  4. [SOLVED] Vlookup in date range
    By someko in forum Excel General
    Replies: 6
    Last Post: 03-01-2010, 11:31 AM
  5. VLookup using a date range
    By RHicks in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 02-03-2009, 01:34 PM
  6. Vlookup within date range
    By markmac234 in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 05-26-2008, 07:17 AM
  7. VLOOKUP on a date range
    By Althas in forum Excel General
    Replies: 3
    Last Post: 07-06-2007, 03:58 AM

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