+ Reply to Thread
Results 1 to 3 of 3

Calculate average sales without cancellations

  1. #1
    Registered User
    Join Date
    10-06-2015
    Location
    Barcelona
    MS-Off Ver
    2013
    Posts
    1

    Calculate average sales without cancellations

    Hello,

    I want to calculate the average of sales without the cancellations of the transaction in a Pivot. Example:

    Type Client Sales
    DEB A 100
    DEB B 50
    DEB C 100
    DEB D 200
    CRE B -50
    CRE C -100

    DEB(Debit)
    CRE(Credit)

    When I create the Pivot and make average of Sales it will give me 50 (300 divided by 6 lines), however it should give me 150 (300 divided by 2 real, not cancelled sales = clients A and D).

    Is there an easy workaround? I have the possibility to use invoice numbers for each transaction in case I need to match DEB and CRE (each CRE has the same reference as the DEB). Hope my issue is clear?

    Cheers
    Chris
    Attached Files Attached Files
    Last edited by cstru88; 10-06-2015 at 06:47 AM.

  2. #2
    Forum Moderator zbor's Avatar
    Join Date
    02-10-2009
    Location
    Croatia
    MS-Off Ver
    365 ProPlus
    Posts
    16,003

    Re: Calculate average sales without cancellations

    Here. Use this helper column and reference to it.
    Attached Files Attached Files
    Never use Merged Cells in Excel

  3. #3
    Forum Guru samba_ravi's Avatar
    Join Date
    07-26-2011
    Location
    Hyderabad, India
    MS-Off Ver
    Excel 2021
    Posts
    8,937

    Re: Calculate average sales without cancellations

    H8=g8/(countif(d7:d12,">0")-countif(d7:d12,"<0"))
    Please Login or Register  to view this content.
    Samba

    Say thanks to those who have helped you by clicking Add Reputation star.

+ 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] Weekly sales tracker - weekly average sales amount
    By rossw8 in forum Excel General
    Replies: 2
    Last Post: 09-01-2015, 08:02 AM
  2. Formula to check if a product is on promotion and calculate average sales
    By CA_needing_help in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 03-26-2015, 08:13 AM
  3. Replies: 3
    Last Post: 09-26-2014, 11:20 AM
  4. formula in Excel to calculate rolling daily average of sales total by date
    By Geekgurl in forum Excel Formulas & Functions
    Replies: 8
    Last Post: 02-17-2014, 05:30 PM
  5. [SOLVED] Calculate number of days between sales and prior sales date
    By maacmaac in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 09-03-2013, 03:07 PM
  6. [SOLVED] Calculate total sales adjustments for each sales person
    By Adama in forum Excel Charting & Pivots
    Replies: 2
    Last Post: 09-02-2012, 06:26 PM
  7. [SOLVED] formula to calculate sales tax from total sales
    By Deanna in forum Excel Formulas & Functions
    Replies: 9
    Last Post: 10-05-2005, 04:05 PM

Tags for this Thread

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