+ Reply to Thread
Results 1 to 5 of 5

Help with a formula/function, if it's possible

  1. #1
    Registered User
    Join Date
    03-06-2013
    Location
    Norwalk, Ohio
    MS-Off Ver
    Excel 2007
    Posts
    2

    Help with a formula/function, if it's possible

    I have 31 worksheets/tabs for each day of the month and a "Totals" sheet/tab. This is used to track admissions and discharges for an inpatient unit. What I monitor or track on the totals page is where patient's come from, time of day they are admitted and discharged ect. Now they would like me to track how many admits and discharges happen on specific days of the week.

    I cannot figure out a formula to do this. Can this even be done? I have a formula on each sheet that has the total number of admits for that day (cell F33) and total number of dischages (cell K33). Also, I have the date in B4 of each sheet (formatted as long date: dddd, mmmm, dd, yyyy).

    Is there formula I can put on my "Totals" sheet that would add all F33 cells only when that sheet/tab is a Monday and then do for each other day of the week????

    Appreciate any help!

  2. #2
    Forum Contributor pipoliveira's Avatar
    Join Date
    08-09-2012
    Location
    Ireland
    MS-Off Ver
    Microsoft Office 365 ProPlus
    Posts
    368

    Re: Help with a formula/function, if it's possible

    Yes, it is possible.

    You will need to use the COUNTIFS formula.

    COUNTIFS will account based on various criterias and as you mentioned that they are all on the same cell reference is easy to do.

    I can understand that your Workbook is confidential but can you attach an example with empty data?

    With that exmaple file, I could create the formula you need and then you could just use it on your actual one.

    Best regards,
    Filipe

  3. #3
    Registered User
    Join Date
    03-06-2013
    Location
    Norwalk, Ohio
    MS-Off Ver
    Excel 2007
    Posts
    2

    Re: Help with a formula/function, if it's possible

    Hi Filipe. Thanks for help! Attached is the workbook - I put in generic data for the first 10 days - I hope that is enough to work with.
    Attached Files Attached Files

  4. #4
    Forum Contributor pipoliveira's Avatar
    Join Date
    08-09-2012
    Location
    Ireland
    MS-Off Ver
    Microsoft Office 365 ProPlus
    Posts
    368

    Re: Help with a formula/function, if it's possible

    Hi Rebecca,

    I thought you had the day of the week on each sheet along with the date, but that's ok.

    It gave me a bit more work to do.

    As you do not have the Weekday, the formula COUNTIFS will not work for this.

    Instead I used the COUNTA formula that sums all cells that are not empty for a certain range. The formula was made to sum the sheets that belongs to the weekday (e.g. For Monday: days 7; 14; 21 & 28) and so on for the rest of the week.

    Have a look on the file attached and please let me know if you need further clarification.

    Best regards,
    Filipe
    Attached Files Attached Files

  5. #5
    Forum Expert Pepe Le Mokko's Avatar
    Join Date
    05-14-2009
    Location
    Belgium
    MS-Off Ver
    O365 v 2402
    Posts
    13,600

    Re: Help with a formula/function, if it's possible

    Perhaps change your thread title as per forum rules first?

+ 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