+ Reply to Thread
Results 1 to 5 of 5

Adding up dates from multiple tabs

  1. #1
    Registered User
    Join Date
    03-07-2011
    Location
    USA - USA - USA
    MS-Off Ver
    Excel 2003
    Posts
    2

    Adding up dates from multiple tabs

    Hello, we keep a daily census of patients that are enrolled in research studies. Each study has a tab with the patient's admission date along with a date for each day they are on our unit. The enclosed spreadsheet has two studies and an analysis tab. On the analysis tab, I want to be able to count the dates for a particular day. So on May 20th, we had 4 patients on our research unit. Each patient enrolls at different dates, and has a different enrollment date, so the 5/20/14 dates are in different cells in different tabs. How do I count the dates?
    Thank you.
    Attached Files Attached Files
    Last edited by rmagrino; 05-21-2014 at 11:37 AM.

  2. #2
    Forum Contributor
    Join Date
    04-24-2007
    Location
    NYC
    MS-Off Ver
    2k3/2k7/2010
    Posts
    270

    Re: Adding up dates from multiple tabs

    Here's an example:

    =COUNTIF('Study 1'!A:F,"5/20/14")+COUNTIF('Study 2'!A:F,"5/20/14")

    replace "5/20/14" with a cell like A1. if you are putting a date in A1

  3. #3
    Forum Expert newdoverman's Avatar
    Join Date
    02-07-2013
    Location
    Port Dover, Ontario, Canada
    MS-Off Ver
    2010
    Posts
    10,330

    Re: Adding up dates from multiple tabs

    This is what six is talking about above. The use of whole column references is convenient but inefficient. It is better to have defined ranges but easier to enter if those ranges were the SAME dimension as you could use copy and paste:

    Formula: copy to clipboard
    Please Login or Register  to view this content.


    This might also be of interest. Just add the worksheet names along the row with the worksheet names and copy the formula across and down.
    Attached Files Attached Files
    <---------If you like someone's answer, click the star to the left of one of their posts to give them a reputation point for that answer.
    Ron W

  4. #4
    Registered User
    Join Date
    03-07-2011
    Location
    USA - USA - USA
    MS-Off Ver
    Excel 2003
    Posts
    2

    Re: Adding up dates from multiple tabs

    Thanks all. Just started to look at your posts. All the studies are different durations, so each study would need it's own defined range.. Will take a look. I think I have enough to get started.

  5. #5
    Forum Expert newdoverman's Avatar
    Join Date
    02-07-2013
    Location
    Port Dover, Ontario, Canada
    MS-Off Ver
    2010
    Posts
    10,330

    Re: Adding up dates from multiple tabs

    You will save yourself a lot of work if you just define the ranges on each worksheet to be large enough and equal to each other to handle the largest of the worksheets.

    In the workbook that I uploaded to you, all you have to do to include a new study is to add the name of the worksheet in the row with the worksheet names and copy the formula over. The formula will recognize the worksheet from the name you enter and fill in the data for you.

    To make the formula work with your actual data, change the $F$100 to the lower right limit of what will exceed what you think that you will need. For example it might be something like $M$20000 which would cover 12 subjects for 54 years!

    Planning ahead will save you a lot of work.

+ 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: 1
    Last Post: 11-23-2013, 12:05 PM
  2. Adding across multiple tabs
    By TWent in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 12-21-2010, 05:31 PM
  3. Naming multiple tabs and dates
    By daznav in forum Excel General
    Replies: 1
    Last Post: 02-21-2010, 02:39 PM
  4. Adding Cells from Multiple Tabs
    By tux4ever in forum Excel Formulas & Functions
    Replies: 10
    Last Post: 11-04-2008, 12:21 AM
  5. How to sum data from multiple tabs WITHOUT adding tab by tab?
    By jim_0068 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 01-03-2007, 12:02 AM

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