+ Reply to Thread
Results 1 to 9 of 9

Compare 2 sales reports.

Hybrid View

  1. #1
    Registered User
    Join Date
    05-31-2013
    Location
    Polokwane,South Africa
    MS-Off Ver
    Excel 2007
    Posts
    14

    Unhappy Compare 2 sales reports.

    Hi Guys,

    I need to compare 2 different sales reports.
    Please see attachment - highlighted data in sheet 1 and 2 need to be compared.
    The "client code" and "Amount included" (Highlighted in Blue)

    I hope someone can assist me in this matter - too complicated for me
    Attached Files Attached Files

  2. #2
    Forum Moderator - RIP Richard Buttrey's Avatar
    Join Date
    01-14-2008
    Location
    Stockton Heath, Cheshire, UK
    MS-Off Ver
    Office 365, Excel for Windows 2010 & Excel for Mac
    Posts
    29,464

    Re: Compare 2 sales reports.

    Hi

    In H9 copied down on Sales Report

    Formula: copy to clipboard
    =INDEX('Sales per Catogory'!$A$1:$AO$1000,MATCH(C9,'Sales per Catogory'!B:B,FALSE)+12,40)


    Change row 1000 as appropriate
    Richard Buttrey

    RIP - d. 06/10/2022

    If any of the responses have helped then please consider rating them by clicking the small star icon below the post.

  3. #3
    Registered User
    Join Date
    05-31-2013
    Location
    Polokwane,South Africa
    MS-Off Ver
    Excel 2007
    Posts
    14

    Re: Compare 2 sales reports.

    Sorry Richard - miss spell..!

  4. #4
    Registered User
    Join Date
    05-31-2013
    Location
    Polokwane,South Africa
    MS-Off Ver
    Excel 2007
    Posts
    14

    Re: Compare 2 sales reports.

    Hi Ricahrd,
    Thanks for your help. But what area is the B:B in your formula ?

  5. #5
    Registered User
    Join Date
    05-31-2013
    Location
    Polokwane,South Africa
    MS-Off Ver
    Excel 2007
    Posts
    14

    Re: Compare 2 sales reports.

    Hi Richard,

    I applied it as you said. On some of the clients it returns as "0"
    Example - Client MA146. If I go check on sheet 1 the sale was 510.

  6. #6
    Forum Moderator - RIP Richard Buttrey's Avatar
    Join Date
    01-14-2008
    Location
    Stockton Heath, Cheshire, UK
    MS-Off Ver
    Office 365, Excel for Windows 2010 & Excel for Mac
    Posts
    29,464

    Re: Compare 2 sales reports.

    Hi,

    That's because your Sales per Category Data is not consistently laid out.

    In most cases between the Row containing the Client Code and the row containing the Value there are 12 rows including the two rows. e.g 5 & 17, that's why you see the +12 in the formula. Where you have zeros the data format is different. In the case you cite for instance the rows are 356 & 367, i.e. only 11 rows inclusive.

    For tasks like these you do really need to ensure your data is consistent otherwise the results are compromised. Sometimes it's possible to work around these things by building more complicated formulae to recognise this situation and adjust accordingly, but there needs to be some consistent rule that can be used to calculate where the amount cells are.

    Are you able to normalise your data first. One other thing. I note that you have merged cells on the Sales per Cat sheet. Avoid merged cells at all costs. They are more trouble than they are worth causing difficulties with various calculations and macro processes and not to be recommended unless absolutely necessary.

  7. #7
    Registered User
    Join Date
    05-31-2013
    Location
    Polokwane,South Africa
    MS-Off Ver
    Excel 2007
    Posts
    14

    Re: Compare 2 sales reports.

    Hi,

    Thanks but the report is an export from Accpac. Dont think you can alter/normalise the data on the Accpack system.
    But I can still use it, much better than sitting with a yellow highlighter...
    Another question: If I have a transaction on the Sales per cat sheet that doesnt show up on the sales report Eg - CAS021 (Row 35)
    Can you change the formula to make that one transaction stand out ?


    Thanks a lot for your help.

  8. #8
    Forum Moderator - RIP Richard Buttrey's Avatar
    Join Date
    01-14-2008
    Location
    Stockton Heath, Cheshire, UK
    MS-Off Ver
    Office 365, Excel for Windows 2010 & Excel for Mac
    Posts
    29,464

    Re: Compare 2 sales reports.

    Hi,

    Good news.

    I see on looking further that the code is also in column U, and in this case it's always on the same row as the amount value.

    Hence you can use

    =INDEX('Sales per Catogory'!$A$1:$AO$1000,MATCH(C9,'Sales per Catogory'!U:U,FALSE),40)

    Re your other Q.

    Put
    =IFERROR(IF(U17<>"",MATCH(U17,'Sales Report'!C:C,FALSE),""),"Not Present")

    in BC17 on the Sales Cat sheet and copy down. You'll see "Not Present" where the code doesn't exist on the Sales Report. You could also if you want use a conditional format in column U to detect the value Not Present in col BC and colour the cell as you wish.

  9. #9
    Registered User
    Join Date
    05-31-2013
    Location
    Polokwane,South Africa
    MS-Off Ver
    Excel 2007
    Posts
    14

    Re: Compare 2 sales reports.

    Thanks a lot.
    It works perfectly!!!

    Thanks again.

    Marlize

+ 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. Compare two reports and show difference in another tab
    By humsboyle in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 05-31-2013, 01:49 PM
  2. Create 2 reports from raw sales data with VBA
    By v_kash in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 05-02-2012, 09:55 AM
  3. Sales Reps reports using Pivot Tables
    By kiat91 in forum Excel General
    Replies: 1
    Last Post: 10-02-2006, 11:30 AM
  4. [SOLVED] Pivot Table - Compare Current Year Sales To Previous Year Sales
    By BobAJones in forum Excel General
    Replies: 0
    Last Post: 04-18-2006, 02:10 AM
  5. Sales Reports
    By Larry G in forum Excel General
    Replies: 2
    Last Post: 12-21-2005, 08:10 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