+ Reply to Thread
Results 1 to 6 of 6

Replicate Pivot Table Kind of Report by Functions

  1. #1
    Forum Contributor
    Join Date
    06-01-2014
    Location
    Riyadh, Saudi Arabia
    MS-Off Ver
    Microsoft 365
    Posts
    224

    Question Replicate Pivot Table Kind of Report by Functions

    Hello Everyone,

    In the attached sample file I have a Tab with data and another "Report".

    I know this kind of report could be easily generated by Pivot tables. But for some reason the end user is requesting this to be generated by Excel Functions alone.

    The first column in the report should have distinct entries only and then the second column to have the related distinct entries from the code column.

    Any help is appreciated.
    Attached Files Attached Files
    Last edited by ibuhary; 02-02-2019 at 01:30 PM.

  2. #2
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    24,723

    Re: Replicate Pivot Table Kind of Report by Functions

    I think you forgot to attach the file.

    To do this, click on Go Advanced (below the Edit Window) while you are composing a reply, then scroll down to and click on Manage Attachments and the Upload window will open. Click on Browse and navigate to (and double-click) the file icon that you want to attach, then click on Upload and then on Close this Window to return to the Edit window. When you have finished composing your post, click on Submit Post. Don't try to use the Paperclip icon, as it doesn't work on this forum.

    Hope this helps.

    Pete

  3. #3
    Forum Contributor
    Join Date
    06-01-2014
    Location
    Riyadh, Saudi Arabia
    MS-Off Ver
    Microsoft 365
    Posts
    224

    Re: Replicate Pivot Table Kind of Report by Functions

    Attachment Done

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

    Re: Replicate Pivot Table Kind of Report by Functions

    Is it correct that some 'Codes' apply to more than one 'Item'? As in code 36 applies items 101 and 115.
    Consider taking the time to add to the reputation of everybody that has taken the time to respond to your query.

  5. #5
    Forum Contributor
    Join Date
    06-01-2014
    Location
    Riyadh, Saudi Arabia
    MS-Off Ver
    Microsoft 365
    Posts
    224

    Re: Replicate Pivot Table Kind of Report by Functions

    Yes, that is correct and that was the fact what drives this process a difficult one.

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

    Re: Replicate Pivot Table Kind of Report by Functions

    This proposal employs four helper columns which may be moved and/or hidden for aesthetic purposes.
    The first helper combines item and code using: =DATA!A2&"/"&DATA!D2
    The second helper lists unique item/code combinations using:
    Formula: copy to clipboard
    Please Login or Register  to view this content.

    The third helper separates the codes using: =IFERROR(RIGHT(G2,LEN(G2)-SEARCH("/",G2)),"")
    The fourth helper separates the item using: =IFERROR(VALUE(LEFT(G2,SEARCH("/",G2)-1)),"")
    The Item column of the report is populated using: =IFERROR(SMALL(I$2:I$77,ROW(1:1)),"")
    Note that duplicate item numbers are hidden using conditional formatting.
    The Code column is populated using: =INDEX(H$2:H$77,AGGREGATE(15,6,(ROW($2:$77)-1)/(I$2:I$77=L2),COUNTIFS(L$2:L2,L2)))
    The Sum of B/A columns are populated using: =IF($L2="","",SUMIFS(DATA!B$2:B$77,DATA!$D$2:$D$77,$M2,DATA!$A$2:$A$77,$L2))
    Let us know if you have any questions.
    Attached Files Attached Files

+ 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. Replies: 5
    Last Post: 03-08-2018, 08:14 AM
  2. Replies: 1
    Last Post: 07-24-2015, 01:58 AM
  3. [SOLVED] Pivot report sorting - need some kind of filtering control
    By timtim89 in forum Excel Charting & Pivots
    Replies: 1
    Last Post: 01-03-2015, 07:51 PM
  4. VBA Code to replicate Pivot table data and apply a % to a value field
    By kenadams378 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 08-13-2012, 05:39 AM
  5. a pivot table report cannot overlap another pivot table report
    By judyh in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 05-25-2007, 12:59 AM
  6. Replies: 1
    Last Post: 02-15-2006, 05:10 PM
  7. [SOLVED] A pivot table report cannot overlap another pivot table report.
    By David in forum Excel General
    Replies: 1
    Last Post: 06-23-2005, 07: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