+ Reply to Thread
Results 1 to 3 of 3

Excel 2007 : Count 3 criteria in specified cells

Hybrid View

  1. #1
    Registered User
    Join Date
    10-11-2011
    Location
    Doha, Qatar
    MS-Off Ver
    Excel 2007
    Posts
    2

    Count 3 criteria in specified cells

    I want to count 3 criteria ( T2, T3, B) in specified cells ( light blue cells)
    Here I did it only for T2 with "countif" but it`s very long.
    Any other ideas?
    here I attached the sheet.
    Attached Files Attached Files
    Last edited by NBVC; 10-11-2011 at 12:27 PM.

  2. #2
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898

    Re: Count 3 criteria in specified cells

    If you can add one more column between AL and AM with an "S" header, then try:

    =SUMPRODUCT(COUNTIFS($C$1:$AL$1,"F",$C$2:$AL$2,{"T2","T3","B"}))+SUMPRODUCT(COUNTIFS($C$1:$AL$1,"F",$D$2:$AM$2,{"T2","T3","B"}))

    else, if you can insert a row above or below the first row that somehow marks the "blue" columns, then you can use a shorter formula (i.e. half the size as above) using that mark as criteria....

    You can also use actual dates instead of just the letter, to use Weekday() function for criteria to get only Friday and Saturday dates....
    Last edited by NBVC; 10-11-2011 at 12:27 PM. Reason: typo
    Where there is a will there are many ways.

    If you are happy with the results, please add to the contributor's reputation by clicking the reputation icon (star icon) below left corner

    Please also mark the thread as Solved once it is solved. Check the FAQ's to see how.

  3. #3
    Registered User
    Join Date
    10-11-2011
    Location
    Doha, Qatar
    MS-Off Ver
    Excel 2007
    Posts
    2

    Thumbs up Re: Count 3 criteria in specified cells

    thx a lot NBVC, i did a modification u suggest and it`s working fine. great job !!!

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Tags for this Thread

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