+ Reply to Thread
Results 1 to 5 of 5

Need help either VLOOKUP or any other function.....

  1. #1
    Registered User
    Join Date
    11-18-2016
    Location
    Islamabad, Pakistan
    MS-Off Ver
    2010
    Posts
    42

    Need help either VLOOKUP or any other function.....

    Hi,

    This is my first post so I am not sure how this works but I am posting this anyways.

    I have a huge file approx. 50K rows and 14 columns. File basically contains data of employees which are approx. 2,500. In every month deductions are made from employees salary. I want to SUM all the deductions made by employees. Every employee has a unique Employee Code e.g. 5132, but the problem is that the deductions are monthly e.g. Jan, Feb, March so I can't use VLOOKUP function as it only selects 1st value.

    Please find below a rough idea that how the data is

    Date Employee Code Deductions
    31-March 5132 500
    31-March 5133 480
    30-April 5132 510
    30-April 5133 500

    I have tried my best to explain the problem but if further clarification I can attach the excel file.

    Can some one help me on this.

    Thanks

  2. #2
    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
    52,939

    Re: Need help either VLOOKUP or any other function.....

    Hi, welcome to the forum

    Sounds to me that you need to use the SUMIF() function for this....=SUMIF(criteria-range, criteria, sum-range)

    Give it a go, and if you still have a problem, upload a small (clean) sample workbook (not a pic) of what you are working with, and what your expected outcome would look like.
    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

  3. #3
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    28,228

    Re: Need help either VLOOKUP or any other function.....

    Try

    =SUMIFS($C:$C,$A:$A,">=01/03/2016",$A:$A,"<=31/03/2016")

    will SUM all empoyess for March

    =SUMIFS($C:$C,$B:$B,"5132",$A:$A,">=01/03/2016",$A:$A,"<=30/04/2016")

    will SUM March and April for Employee ID 5132
    Last edited by JohnTopley; 11-18-2016 at 03:31 AM.

  4. #4
    Registered User
    Join Date
    11-18-2016
    Location
    Islamabad, Pakistan
    MS-Off Ver
    2010
    Posts
    42

    Re: Need help either VLOOKUP or any other function.....

    Thanks this really helped me alot.

  5. #5
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    28,228

    Re: Need help either VLOOKUP or any other function.....

    If that takes care of your original question, please select Thread Tools from the menu link above and mark this thread as SOLVED. Thanks.

+ 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] Trying to Multiply the result of an IF function combined with a VLOOKUP function
    By ucca in forum Excel Formulas & Functions
    Replies: 10
    Last Post: 09-28-2018, 02:32 AM
  2. Replies: 2
    Last Post: 01-15-2014, 11:40 PM
  3. Need help nesting an index/match function within a Vlookup function.
    By Christopher135 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 12-04-2013, 06:16 PM
  4. Worksheet function Vlookup and VLOOKUP return different results
    By zandero in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 08-08-2010, 08:24 AM
  5. Replies: 1
    Last Post: 12-02-2005, 09:35 AM
  6. [SOLVED] HOW DO I NEST THE VLOOKUP FUNCTION WITH THE LEFT FUNCTION
    By CHAIM in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 09-06-2005, 12:05 AM
  7. [SOLVED] vlookup function-Can vlookup command find the data from the 5 sheets.
    By Rishab shah in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 09-05-2005, 11:05 PM

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