+ Reply to Thread
Results 1 to 5 of 5

AverageIFS formula where values that have the same identifier need to be counted as 1

  1. #1
    Registered User
    Join Date
    09-29-2022
    Location
    United States
    MS-Off Ver
    excel 2019
    Posts
    3

    AverageIFS formula where values that have the same identifier need to be counted as 1

    I have a dataset of sales data and I need to find the average order value of all customers. If I take the average of all orders the average is lower than expected. This is because a customer will make a large purchase one day and then maybe a smaller purchase a week later and the average formula thinks its two different customers.

    So I'm trying to sum the sales values if the client ID is the same and then count is as one. And if there isnt a repeat customer, still use that value in the average.

    Say you have a dataset like this:
    ID Sales Value
    A1 $1000
    A2 $2000
    A1 $100
    A3 $4000


    I want the formula to sum the two values of A1 but only count it as one observation. so the average should be $7100/3, not $7100/4

    pls help

  2. #2
    Banned User!
    Join Date
    02-05-2015
    Location
    San Escobar
    MS-Off Ver
    any on PC except 365
    Posts
    12,168

    Re: AverageIFS formula where values that have the same identifier need to be counted as 1

    not formula but Power Query

    ID Sales Average
    A1
    1000
    2366.666667
    A2
    2000
    A1
    100
    A3
    4000


    Please Login or Register  to view this content.
    next time post example excel file , see top yellow banner
    Last edited by sandy666; 09-29-2022 at 07:19 PM.

  3. #3
    Forum Guru HansDouwe's Avatar
    Join Date
    06-21-2022
    Location
    Nederland
    MS-Off Ver
    365 V2403 (Build 17330.20000)
    Posts
    6,419

    Re: AverageIFS formula where values that have the same identifier need to be counted as 1

    Please try this formula:
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    Attached Files Attached Files

  4. #4
    Valued Forum Contributor
    Join Date
    11-22-2014
    Location
    Arizona, USA
    MS-Off Ver
    Office 365
    Posts
    973

    Re: AverageIFS formula where values that have the same identifier need to be counted as 1

    Please Login or Register  to view this content.
    if the data was in such a structure as Sandy Shared...

    Or if its a table

    Please Login or Register  to view this content.
    -If you think you are done, Start over - ELeGault

  5. #5
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,780

    Re: AverageIFS formula where values that have the same identifier need to be counted as 1

    Administrative Note:

    Welcome to the forum.

    We would very much like to help you with your query, however it has been brought to our attention that the same query has been posted on one or more other forums and you have not told us about this. You are required to do so.

    Please see Forum Rule #3 about cross-posting and adjust accordingly. Read this to understand why we (and other sites like us) consider this to be important: https://excelguru.ca/a-message-to-forum-cross-posters/

    (Note: this requirement is not optional. As you are new here, I shall do it for you this time: https://www.mrexcel.com/board/thread...-as-1.1217966/)
    Ali


    Enthusiastic self-taught user of MS Excel who's always learning!
    Don't forget to say "thank you" in your thread to anyone who has offered you help.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    Forum Rules (updated August 2023): please read them here.

+ 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] Sum Error, Cell Values Not Counted
    By bnckeye27 in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 10-08-2021, 09:14 AM
  2. [SOLVED] Formula to show volume of 2nd identifier if volume of 1st identifier is missing
    By biglou97 in forum Excel Formulas & Functions
    Replies: 8
    Last Post: 09-13-2021, 10:32 AM
  3. Formula that Return values between common identifier
    By andrew8008 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 05-06-2019, 03:31 PM
  4. Replies: 1
    Last Post: 09-25-2018, 11:28 PM
  5. [SOLVED] Formula to Capture Multiple Values for one Identifier
    By sherylt13 in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 10-10-2015, 04:21 PM
  6. Return counted values from a different sheet
    By Losguapos1 in forum Excel Formulas & Functions
    Replies: 9
    Last Post: 11-06-2014, 11:56 PM
  7. range values counted problem
    By Alan M in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 02-23-2005, 02:06 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