+ Reply to Thread
Results 1 to 4 of 4

Grouping Multi-Period

  1. #1
    Registered User
    Join Date
    11-30-2020
    Location
    New York
    MS-Off Ver
    Office 365 16.0
    Posts
    2

    Grouping Multi-Period

    Hi,

    I have some data in an excel file with the following attributes (among many others): There are names that are linked to a rating (ratings are Below target, At Target or Above Target) based on sales performance over four periods (Period 1 to Period 4). The rating most likely occurs in alternating periods (Period 1 then 3 or 2 then 4 but may happen in, consecutive periods. I've been tasked with grouping the names in the following manner: Always below target, Moved from above target rating to Below Target).

    I've been tearing my hair out using a pivot table then copying and pasting that data and applying nested conditional IF statements but It doesn't seem to be working.

    Any help would be really appreciated.
    Attached Files Attached Files
    Last edited by Scrump; 11-30-2020 at 11:18 AM. Reason: adding attachment

  2. #2
    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,410

    Re: Grouping Multi-Period

    Welcome to the forum.

    There are instructions at the top of the page explaining how to attach your sample workbook.
    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.

  3. #3
    Registered User
    Join Date
    11-30-2020
    Location
    New York
    MS-Off Ver
    Office 365 16.0
    Posts
    2

    Re: Grouping Multi-Period

    Thank you AliGW

  4. #4
    Forum Guru
    Join Date
    08-28-2014
    Location
    USA
    MS-Off Ver
    Excel 2019
    Posts
    17,532

    Re: Grouping Multi-Period

    As you are using the 365 version of Excel you could use Get & Transform to put the data into a proper row over row arrangement as modeled in columns A:C on Sheet 2 using the following Advanced Editor code:
    Please Login or Register  to view this content.
    Then three helper columns could be added to the resulting table:
    The first helper column displays the employees who always have a rating of "Below Target" using: =IF(COUNTIFS(A$2:A2,A2)=1,COUNTIFS([[Employee ]],[@[Employee ]],[Rating],"Below Target")=COUNTIFS([[Employee ]],[@[Employee ]]),"")
    The second helper column displays the employees whose rating fell from "Above Target to Below Target" using: =AND(A2=A1,C2="Below Target",C1="AboveTarget")
    The third helper column displays the employees whose rating fell from "At Target to Below Target" using: =AND(A2=A1,C2="Below Target",C1="At Target")
    The count of employees uses: =SUMPRODUCT(--(Table1_2[ABT]<>""))
    The count of employees who always have a rating of "Below Target" uses: =COUNTIFS(Table1_2[ABT],TRUE)
    The count of employees whose rating fell from "Above Target to Below Target" uses: =COUNTIFS(Table1_2[AbT to BT],TRUE)
    The count of employees whose rating fell from "At Target to Below Target" uses: =COUNTIFS(Table1_2[AtT to BT],TRUE)
    Let us know if you have any questions.
    Consider taking the time to add to the reputation of everybody that has taken the time to respond to your query.

+ 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] Multi-Level Bill of Material Automatic Grouping
    By mwasserman in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 07-31-2023, 04:42 AM
  2. Multi-Level Bill of Material Automatic Grouping
    By pmlv in forum Excel Programming / VBA / Macros
    Replies: 10
    Last Post: 07-02-2019, 05:08 PM
  3. grouping data on date from multi tables
    By pjwhitfield in forum Access Tables & Databases
    Replies: 1
    Last Post: 07-22-2015, 12:26 PM
  4. Grouping columns by dates - return last value in period
    By Rhampson100 in forum Excel Charting & Pivots
    Replies: 0
    Last Post: 05-29-2015, 12:44 PM
  5. Multi year invoicing schedule on the basis of billing term and billing period.
    By ca.ashishagrawal in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 07-29-2013, 05:19 PM
  6. Grouping Multi-year values by category in a chart
    By jdrinnin in forum Excel General
    Replies: 4
    Last Post: 10-06-2011, 02:35 PM
  7. macro code for grouping adjacent cells into one multi-line cell
    By M John in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 11-30-2005, 12:15 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