+ Reply to Thread
Results 1 to 4 of 4

Summarizing data with Specific/Representative Data Table Example

  1. #1
    Forum Contributor
    Join Date
    06-11-2016
    Location
    Atlanta
    MS-Off Ver
    2016
    Posts
    104

    Summarizing data with Specific/Representative Data Table Example

    I need help calculating the number of patients, visits, and gross charges from a data table. Essentially summarizing my data with specific parameters.

    A quick rundown of what I need and how my example is set up:
    - In the data table there is a column for Patient Name, Insurance, Date of Service, and Cost.
    - I need to calculate the number of patients have each insurance (Column C of the Solution)
    - I need to calculate the number of visits for each insurance (Column D of the Solution). The number of visits is calculated by looking at the 'date of service' and the 'patient name'. For example, Matt and Snow went to the doctor on 7/11/17. Matt had one entry (one charge) and snow had two entries (two separate charges) for a total of 3 entries. However, there would be 2 patients and 2 visits for that day.
    - I need to calculate the gross charge for each insurance (Column E of the Solution).

    I spent a good amount of time making sure the data on my example is a representation of my real data. The proposed solution is inputted and calculated manually to show you the correct answers.

    Thanks in advance,

    Matt
    Attached Files Attached Files

  2. #2
    Forum Expert tim201110's Avatar
    Join Date
    10-23-2011
    Location
    Russia
    MS-Off Ver
    2016, 2019
    Posts
    2,357

    Re: Summarizing data with Specific/Representative Data Table Example

    Patients =SUM(--(IFERROR(MATCH($G$3:$G$20,IF($H$3:$H$20=$B3,$G$3:$G$20),),)=ROW($A$1:$A$18))) as array formula
    Visits =SUM(--(IFERROR(MATCH($I$3:$I$20,IF($H$3:$H$20=$B3,$I$3:$I$20),),)=ROW($A$1:$A$18))) as array formula
    Gross =SUMIF($H$3:$H$20,B3,$J$3:$J$20)

  3. #3
    Forum Contributor
    Join Date
    06-11-2016
    Location
    Atlanta
    MS-Off Ver
    2016
    Posts
    104

    Re: Summarizing data with Specific/Representative Data Table Example

    Sorry for the late reply, but I do appreciate the help! Everything works great!

  4. #4
    Forum Contributor
    Join Date
    06-11-2016
    Location
    Atlanta
    MS-Off Ver
    2016
    Posts
    104

    Re: Summarizing data with Specific/Representative Data Table Example

    Could you explain to me the row command in your formula? The formula isn't working when i try transferring it to my data. The data is representative, but the real thing has a lot more columns and a lot more rows. It's also on separate tabs

+ 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. Summarizing data in pre-prepared table
    By gsrai31 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 05-02-2017, 01:16 PM
  2. [SOLVED] PowerPivot Table summarizing Data Question
    By dawondr in forum Excel Charting & Pivots
    Replies: 4
    Last Post: 04-10-2017, 09:51 AM
  3. How to get an auto populating table summarizing pivot data?
    By Meggo12 in forum Excel Charting & Pivots
    Replies: 3
    Last Post: 10-08-2016, 08:50 AM
  4. Summarizing the data from sheet 1 and transferring the data in sheet2
    By Elainefish in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 05-07-2013, 03:34 AM
  5. Summarizing Data with Pivot Table
    By karaf in forum Excel General
    Replies: 1
    Last Post: 01-24-2011, 09:25 PM
  6. summarizing data without a pivot table?
    By txbullets in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 04-30-2008, 11:05 AM
  7. [SOLVED] organize data in a pivot table without summarizing?
    By pivot table help in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 12-01-2005, 09:40 PM

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