+ Reply to Thread
Results 1 to 2 of 2

How to return variance value from a column using a unique ID, using the last row entry.

Hybrid View

  1. #1
    Registered User
    Join Date
    08-21-2019
    Location
    London
    MS-Off Ver
    Excel for Mac office 365
    Posts
    1

    How to return variance value from a column using a unique ID, using the last row entry.

    I have an employee payroll spreadsheet and I need a formula to show any difference between monthly net pay.

    There is a unique ID for each employee in column A and the net pay amount is in column Q. I want the variance to be shown in column W.

    E.g. Employee 19 had net pay of £1000 paid in August, this is shown in cell Q728, in July they were paid £1050, this is shown in cell Q678. In cell W728 I want it to say -£50.00.

    I want to be able to track these difference each month. If in June they were paid £2000 cell W678 it should show a value of -£950.00. It needs to the vertical column for the last value. The date is in column C.

  2. #2
    Forum Expert PaulM100's Avatar
    Join Date
    10-09-2017
    Location
    UK
    MS-Off Ver
    Office 365
    Posts
    2,108

    Re: How to return variance value from a column using a unique ID, using the last row entry

    I'm not sure about your data layout, but here is a formula that will show you the variance between current date and data for last month:
    =IFERROR(Q1-LOOKUP(2,1/(A:A=A1)/(C:C=DATE(YEAR(C1),MONTH(C1)-1,DAY(C1))),(Q:Q)),"")
    Click the * to say 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. For all unique in Column A, return number of unique in another column
    By spot2018 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 03-05-2018, 12:26 PM
  2. Replies: 2
    Last Post: 01-16-2017, 12:54 PM
  3. Replies: 2
    Last Post: 02-28-2014, 06:42 PM
  4. Replies: 1
    Last Post: 11-13-2013, 04:03 PM
  5. VBA Sort, Insert Row at each Unique Entry of Specific Column
    By bpiereder in forum Excel Programming / VBA / Macros
    Replies: 10
    Last Post: 03-04-2013, 07:45 PM
  6. Replies: 7
    Last Post: 07-09-2012, 11:48 AM
  7. Replies: 0
    Last Post: 08-09-2010, 02:09 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