+ Reply to Thread
Results 1 to 5 of 5

COUNTIF with multiple criteria on several columns (different column heading)

  1. #1
    Registered User
    Join Date
    11-06-2012
    Location
    Manila, Philippines
    MS-Off Ver
    Excel 2007
    Posts
    11

    COUNTIF with multiple criteria on several columns (different column heading)

    Hi,

    What formula can I use if I want to get a daily count of the data based on criteria across different columns?

    I want it to automatically count the data instead of doing it manually, for example:

    Daily Received Sheet - C5 will show the total number of units received on october 1st group A+
    Daily discarded & transfused - C5 will show the total number of units discarded on Oct 1st with reason "Expired"

    Please help how to write the formula correctly. See attachment

    Thanks!
    Attached Files Attached Files

  2. #2
    Forum Expert Fotis1991's Avatar
    Join Date
    10-11-2011
    Location
    Athens(The homeland of the Democracy!). Greece
    MS-Off Ver
    Excel 1997!&2003 & 2007&2010
    Posts
    13,744

    Re: COUNTIF with multiple criteria on several columns (different column heading)

    In C5 of your first sheet put this. Copy down and across. Same way for the other one.

    =COUNTIFS('Daily Discarded and Transfused'!$D$37:$D$600,C$4,'Daily Discarded and Transfused'!$F$37:$F$600,'Daily Received October'!$B5)
    Regards

    Fotis.

    -This is my Greek whisper to Europe.

    --Remember, saying thanks only takes a second or two. Click the little star * below, to give some Rep if you think an answer deserves it.

    Advanced Excel Techniques: http://excelxor.com/

    --KISS(Keep it simple Stupid)

    --Bring them back.

    ---See about Acropolis of Athens.

    --Visit Greece.

  3. #3
    Registered User
    Join Date
    10-02-2012
    Location
    Baku
    MS-Off Ver
    Excel 2010
    Posts
    273

    Re: COUNTIF with multiple criteria on several columns (different column heading)

    Daily Recieved order, c5 cell
    =COUNTIFS($D$42:$D$903,C$4,$B$42:$B$903,$B5)

  4. #4
    Forum Guru benishiryo's Avatar
    Join Date
    03-25-2011
    Location
    Singapore
    MS-Off Ver
    Excel 2013
    Posts
    5,147

    Re: COUNTIF with multiple criteria on several columns (different column heading)

    hi rose4emi, not sure if i got you correctly. for "Daily Received October", try:
    =SUMPRODUCT(($B$42:$B$903=$B5)*($D$42:$D$903=C$4))

    this is counting Date Received that is in 1 oct & Blood A+. copy down & across

    for Daily Discarded and Transfused, try:
    =SUMPRODUCT(($E$37:$E$616=$A$5)*($F$37:$F$616=C$4))

    this is counting Unit Status "Discarded" & Date Discarded 1 Oct

    Thanks, if you have clicked on the * and added our rep.

    If you're satisfied with the answer, click Thread Tools above your first post, select "Mark your thread as Solved".

    "Contentment is not the fulfillment of what you want, but the realization of what you already have."


    Tips & Tutorials I Compiled | How to Get Quick & Good Answers

  5. #5
    Registered User
    Join Date
    11-06-2012
    Location
    Manila, Philippines
    MS-Off Ver
    Excel 2007
    Posts
    11

    Re: COUNTIF with multiple criteria on several columns (different column heading)

    Thanks for all your responses! I'm trying your suggestions atm

+ 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