+ Reply to Thread
Results 1 to 4 of 4

Compare two sheets of Data and output Variance on New Sheet

Hybrid View

  1. #1
    Registered User
    Join Date
    08-21-2012
    Location
    Modesto, CA
    MS-Off Ver
    Excel 2007
    Posts
    45

    Compare two sheets of Data and output Variance on New Sheet

    Ciao All ~

    I'm attempting to create variance tab for data pulled by UPC and Store for two time periods.

    This is what I could come up with :

    =SUM((VLOOKUP(VARIANCES!$A2,A!$A:$AY,2,0))-(VLOOKUP(VARIANCES!$A2,B!$A:$AY,2,0)))/(VLOOKUP(VARIANCES!$A2,B!$A:$AY,2,0))

    Is there an easy way so I don't have to change the formula each time it's pasted into a new Column?

    Thank you in advance.
    Attached Files Attached Files
    Last edited by artikyulashun; 09-06-2012 at 06:03 PM.

  2. #2
    Forum Guru
    Join Date
    03-02-2006
    Location
    Los Angeles, Ca
    MS-Off Ver
    WinXP/MSO2007;Win10/MSO2016
    Posts
    12,937

    Re: Variance report

    Thanks for new title.
    Last edited by protonLeah; 09-07-2012 at 01:35 AM.
    Ben Van Johnson

  3. #3
    Registered User
    Join Date
    08-21-2012
    Location
    Modesto, CA
    MS-Off Ver
    Excel 2007
    Posts
    45

    Re: Compare two sheets of Data and output Variance on New Sheet

    Would this be better resolved with a Macro versus a formula?

  4. #4
    Forum Guru
    Join Date
    03-02-2006
    Location
    Los Angeles, Ca
    MS-Off Ver
    WinXP/MSO2007;Win10/MSO2016
    Posts
    12,937

    Re: Compare two sheets of Data and output Variance on New Sheet

    Maybe since the column numbers for the VLOOKUP column indexes correspond to the column the formula is in, you might say:
    =SUM((VLOOKUP(VARIANCES!$A3,Table1,COLUMN(),0))-(VLOOKUP(VARIANCES!$A3,Table2,COLUMN(),0)))/(VLOOKUP(VARIANCES!$A3,Table2,COLUMN(),0))

+ 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