+ Reply to Thread
Results 1 to 3 of 3

Counting data with several variables

  1. #1
    Registered User
    Join Date
    01-13-2013
    Location
    NC
    MS-Off Ver
    Excel 2003
    Posts
    1

    Counting data with several variables

    I'm hoping I explain what I'm looking to do & that someone can help me. I have attached the sample workbook for reference. I have a worksheet where data is entered (aka "LOG") & then a worksheet where the data from the "log" is summarized by date (aka "table"). I have one of each for each month of the year. What I would like to do is have formulas in the "table" that is calculated from the "log". Essentially what it is is a log of dialysis treatments at 6 different hospitals & the "table" is a summary of the items tracked along the top rows of the log.

    Essentially I want the data tabluated in the following way:
    1. If column A on "log" = {whatever date is in column A on table} THEN
    2. If column C on "log" = {whatever word is in row 2 on table} THEN
    3. Count number in each column meeting those variables.

    I know there's a way to do this, but I've been out of advance excel skills for a while. Let me know if that didn't make sense or if more clarificaiton is needed!

    Thanks in advance!
    Attached Files Attached Files

  2. #2
    Forum Expert
    Join Date
    01-15-2007
    Location
    Brisbane, Australia
    MS-Off Ver
    2007
    Posts
    6,591

    Re: Counting data with several variables

    Hi

    how about

    'Jan Data'!L4: =SUMPRODUCT(--('Jan log'!$A$4:$A$76='Jan data'!A4),--('Jan log'!$C$4:$C$76='Jan data'!$K$2),('Jan log'!$E$4:$E$76))

    This will have to be modfied for each of the ranges, etc but I think it should get you there.

    rylo

  3. #3
    Forum Expert dredwolf's Avatar
    Join Date
    10-27-2012
    Location
    Clearwater,Canada
    MS-Off Ver
    Excel 2007
    Posts
    2,649

    Re: Counting data with several variables

    Using same basic logic as rylo:pugrads.sol1.xls

    did the first 3 hospitals on Jan Data tab
    also added a little error correction to some of the Hrs/tx cols

    Not sure I got the right columns summed on the nurse hours ones, so you may have to change the column references there

    Hope this helps
    A picture may be worth a thousand words, BUT, a sample Workbook is worth a thousand screenshots!
    -Add a File - click advanced (next to quick post), scroll to manage attachments, click, select add files, click select files, select file, click upload, when file shows up at bottom left, click done (bottom right), click submit
    -To mark thread Solved- go top of thread,click Thread Tools,click Mark as Solved
    If you received helpful response, please remember to hit the * of that post

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

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