+ Reply to Thread
Results 1 to 3 of 3

adding data across multiple sheets that meet several criteria

  1. #1
    Registered User
    Join Date
    08-29-2024
    Location
    USA
    MS-Off Ver
    365
    Posts
    28

    adding data across multiple sheets that meet several criteria

    Each workday I track the number of patients into our clinic. With each patient we mark if they were referred by someone as well as their assessment score and their home State.

    I have each day's data on one sheet labelled with the date: Jun1, Jun2, Jun3, etc.) The data on each sheet is in the same format, I just copy the previous day's sheet and enter the current day's data.

    I have these sheets housed between a blank "Start" and blank "End" since there are hundreds of these sheets, it makes it easier for some tabulations.


    What I'm needing: I need to get a count of the number of patients who: 1) have received a referral 2) are from State "WI" and 3) have a Score on "#9" as a 1. [Note: I will copy this formula and change to "2" and "3") later.

    Sample 'ReferralCount' spreadsheet is similar to actual sheet. On ReferralCount:

    Formula would be on Totals sheet, C5.
    Referral would be a 'Y' in B:B or '<>' in B:B
    State would be "WI" in F:F
    Score #9 would be '1' in E:E
    Attached Files Attached Files
    Last edited by drewber; 07-03-2025 at 02:21 PM.

  2. #2
    Forum Expert
    Join Date
    06-05-2017
    Location
    Brazil
    MS-Off Ver
    Microsoft 365 Version 2505
    Posts
    1,532

    Re: adding data across multiple sheets that meet several criteria

    Hi.

    I have adapted the solution by JohnTopley at this thread:
    https://www.excelforum.com/excel-for...ext-to-it.html

    The formula came out like this:
    Formula: copy to clipboard
    Please Login or Register  to view this content.

    Also, I list the states in G5 and use data validation to select a state in F5.

    Please check if this helps.

    Good luck!
    Attached Files Attached Files

  3. #3
    Forum Expert
    Join Date
    02-11-2014
    Location
    New York
    MS-Off Ver
    Excel 365 (Windows)
    Posts
    6,354

    Re: adding data across multiple sheets that meet several criteria

    You really should do yourself a favor and use a single sheet - just add a column of dates, and all your analyses will be easier, including using data queries and data tools like pivot tables.

    Here is a macro that will combine your data from all your daily sheets into one sheet; it can handle sheets as far back as 1 year ago from tomorrow.

    Please Login or Register  to view this content.
    Bernie Deitrick
    Excel MVP 2000-2010

+ 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: 05-23-2018, 09:35 PM
  2. Adding cells from historic data base, as long as they meet two criteria
    By porepiga in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 10-10-2017, 11:23 AM
  3. Replies: 7
    Last Post: 02-22-2014, 01:17 AM
  4. Replies: 1
    Last Post: 02-21-2014, 09:04 PM
  5. [SOLVED] Adding totals that meet a text and a data criteria
    By Telescope in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 01-05-2013, 02:57 PM
  6. Replies: 5
    Last Post: 10-05-2012, 01:21 PM
  7. Adding rows that meet a criteria and consolidating data
    By matador_73 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 09-30-2012, 07:06 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