+ Reply to Thread
Results 1 to 2 of 2

Average Number of Unique Codes for a Given Weekday

Hybrid View

  1. #1
    Registered User
    Join Date
    07-15-2021
    Location
    NB, Canada
    MS-Off Ver
    Office 2019
    Posts
    4

    Average Number of Unique Codes for a Given Weekday

    Good day,

    Looking at the attached workbook, I am looking for a way find the average number of unique codes for each weekday. In other words, on average for Fridays (Fri) there is an average of X unique codes.

    I am using Excel 2019 and I don’t have access to the ‘Unique’ function.

    Thank you for your help,

    JF
    Attached Files Attached Files

  2. #2
    Forum Moderator alansidman's Avatar
    Join Date
    02-02-2010
    Location
    Steamboat Springs, CO
    MS-Off Ver
    MS Office 365 insider Version 2504 Win 11
    Posts
    24,690

    Re: Average Number of Unique Codes for a Given Weekday

    You do have Power Query which is called Get and Transform data found on the Data Tab.
    let
        Source = Excel.CurrentWorkbook(){[Name="Table1"]}[Content],
        #"Grouped Rows" = Table.Group(Source, {"day"}, {{"Count", each Table.RowCount(Table.Distinct(_)), Int64.Type}})
    in
        #"Grouped Rows"
    Excel 2016 (Windows) 32 bit
    A
    B
    1
    day Count
    2
    Fri
    44
    3
    Sat
    46
    4
    Sun
    41
    5
    Mon
    48
    6
    Tue
    44
    7
    Wed
    46
    8
    Thu
    46
    Sheet: Table1

    Power Query is a free AddIn for Excel 2010 and 2013, and is built-in functionality from Excel 2016 onwards (where it is referred to as "Get & Transform Data").

    It is a powerful yet simple way of getting, changing and using data from a broad variety of sources, creating steps which may be easily repeated and refreshed. I strongly recommend learning how to use Power Query - it's among the most powerful functionalities of Excel.

    - Follow this link to learn how to install Power Query in Excel 2010 / 2013.

    - Follow this link for an introduction to Power Query functionality.

    - Follow this link for a video which demonstrates how to use Power Query code provided.


    Please update your profile to XL2019 as it is currently listed as XL2016
    Alan עַם יִשְׂרָאֵל חַי


    Change an Ugly Report with Power Query
    Database Normalization
    Complete Guide to Power Query
    Man's Mind Stretched to New Dimensions Never Returns to Its Original Form

+ 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] VBA Codes to do unique part codes from one column and also sum of these
    By PRADEEPB270 in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 10-07-2021, 02:30 AM
  2. Using weekday function to get average if criteria range equals weekday
    By andrew.beckett in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 10-05-2020, 05:09 AM
  3. [SOLVED] Count average number of times unique values appear
    By BWellman in forum Excel General
    Replies: 5
    Last Post: 08-09-2017, 10:47 AM
  4. [SOLVED] Convert Y Codes from one column to another based on Unique Codes
    By ashishmehra2010 in forum Excel General
    Replies: 2
    Last Post: 10-06-2015, 09:49 PM
  5. [SOLVED] Formula to calculate sum/average based on number of unique dates in range
    By JennOlsen in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 08-19-2014, 06:47 PM
  6. [SOLVED] create list of unique staff numbers with unique work codes
    By shaz0503 in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 01-01-2013, 08:57 PM
  7. Average If Weekday
    By freud1 in forum Excel General
    Replies: 3
    Last Post: 07-08-2011, 05:09 AM

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