+ Reply to Thread
Results 1 to 4 of 4

Need help with VLookup to complete variance analysis

  1. #1
    Registered User
    Join Date
    01-06-2011
    Location
    Colorado, USA
    MS-Off Ver
    Excel 2010
    Posts
    4

    Need help with VLookup to complete variance analysis

    Hi All,

    This is my first post on this forum. I am working on automating the variance analysis report for my company by using excel formulas. I have attached a workbook for you all to work on, plus it will help everyone to better understand my problem. So, here it is:

    Workbook "Excel Forum" (See Attached file) contains data in two worksheets "Sheet1" & "Sheet2". I am trying to use different excel functions to use the record number in "sheet1" and pull the total patient paid amount from "sheet2" in respective certification period in "Sheet1". Example: Lets say I am trying to pull paid amount for record number "4094".

    Now there are few problems: First, "Sheet2" contains multiple entries for record number 4094. Second, the "service date" in "sheet2" should be within the certification period in "sheet1".

    I need help to figure out a formula which will lookup for record number from "Sheet1" in "Sheet2". Then if the service date lies within the certification period, it would add all the received amounts and display the total sum in Total Received Amount in "Sheet1". I would really appreciate if someone can take sometime and help me outwith this problem. Thanks
    Excel Forum.xlsx

  2. #2
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898

    Re: Need help with VLookup to complete variance analysis

    Try:

    =SUMIFS(Sheet2!C:C,Sheet2!A:A,A2,Sheet2!B:B,">="&B2,Sheet2!B:B,"<="&C2)

    copied down
    Where there is a will there are many ways.

    If you are happy with the results, please add to the contributor's reputation by clicking the reputation icon (star icon) below left corner

    Please also mark the thread as Solved once it is solved. Check the FAQ's to see how.

  3. #3
    Registered User
    Join Date
    01-06-2011
    Location
    Colorado, USA
    MS-Off Ver
    Excel 2010
    Posts
    4

    Re: Need help with VLookup to complete variance analysis

    Thanks NBVC. I tried the formula that you gave me and it did work. Thanks a ton and appreciate your help.

  4. #4
    Forum Expert Kevin UK's Avatar
    Join Date
    12-07-2010
    Location
    Radstock, Somerset
    MS-Off Ver
    365
    Posts
    1,922

    Re: Need help with VLookup to complete variance analysis

    Hi Rahulsharma

    Perhaps you need to update your profile regarding your Excel version!

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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