+ Reply to Thread
Results 1 to 2 of 2

Report when values are on same day based on multiple criteria

  1. #1
    Registered User
    Join Date
    11-22-2019
    Location
    Alaska USA
    MS-Off Ver
    MS Office 2016 (Win 10)
    Posts
    1

    Report when values are on same day based on multiple criteria

    Hello,

    I'm scratching my head over an Excel problem and need someone smarter than me. I have a large dataset that I want to analyze and identify [for each pairing of Member (Col B / "B_MBR_ALT_ID") and billing provider (Col M / "P_BLNG_SYS_ID") and same date of service (Col H / C_SVC_FIRST_DT) there's a value of D2950 in Column E ("C8_OLI_R_PROC_CD") as well as at least one other code in Column E for that date from the list in named region "CrownEXcore" (which is in tab "0-21Crown").

    I added a helper column (See Col U) that looks up if the code in Col E for that row contains one of the codes I'm looking for.

    So in the pivot table example I want to be able efficiently find the entries for Charlie Brown (Row 33:43) because D2950 and D2740 (a code in the named region) both occurred on the same date, in this case 2/27/2018. However for Jayson Borne although he had both those same codes, we don't need to know because they were on separate days (1/31/19 & 2/27/19 -- see rows 147:168).


    Thank you
    Attached Files Attached Files

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

    Re: Report when values are on same day based on multiple criteria

    Hello kbuckland and Welcome to Excel Forum.
    This proposal adds two more helper columns to the data sheet, then all three helpers are included in the source data for the pivot table (PT2)
    Column U in the file attached to post #1 is moved to column N.
    Column O is populated using: =IF(N2="Yes",COUNTIFS(B$2:B$156,B2,E$2:E$156,'0-21Crown'!A$29,G$2:G$156,G2),0)
    Column P is populated using: =COUNTIFS(B$2:B$156,B2,G$2:G$156,G2,N$2:N$156,"Yes",O$2:O$156,">0")>0
    In the pivot table the results of column P are used as the filter (or could be used as a slicer). So to get the results you want you would set the filter to true.
    Let us know if you have any questions.
    Attached Files Attached Files
    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. Create and print report from across multiple worksheets based on cell values
    By stkachuk07 in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 11-26-2016, 02:57 PM
  2. Creating a report from multiple sheets based off of criteria
    By nycguy1128 in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 10-26-2016, 05:05 PM
  3. [SOLVED] Sales Report - SUM IF based on multiple criteria
    By jpetrini888 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 02-16-2016, 09:36 AM
  4. Replies: 4
    Last Post: 05-19-2015, 11:53 PM
  5. Replies: 8
    Last Post: 06-24-2014, 03:35 PM
  6. [SOLVED] How to sum values based on multiple criteria with multple possibilities for each criteria?
    By boredaxel in forum Excel Formulas & Functions
    Replies: 8
    Last Post: 11-05-2013, 02:26 AM
  7. Replies: 1
    Last Post: 10-22-2009, 05:26 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