+ Reply to Thread
Results 1 to 10 of 10

Multiple Criteria for COUNTIF / IF / AND..in excel 2003!

  1. #1
    Registered User
    Join Date
    08-26-2015
    Location
    England
    MS-Off Ver
    2003
    Posts
    4

    Angry Multiple Criteria for COUNTIF / IF / AND..in excel 2003!

    Good morning everyone!

    Hopefully you can help! I've been stuck on this one problem for over a week - and usually I can sort out my problems by searching all the threads here, but this has proved to be a fruitless serach this time, as nothing seems to work!

    Basically, I have a spreadsheet for work, where we maintain a database of the validity of peoples checks on the teams. There are four teams, spread over four sheets, and the checks expiry date is tracked against the individual - there are 8 differing types of checks that we use. On the overview sheet (Front Cover) I have managed to complete the information for the Team breakdown (mainly thanks for people on here - Thanks guys!). Here is my issue :

    Each team is broken down again, into synidcates. There are four syndicates (1-4). The syndicates are split up between the four teams, so when I need to display the information on the overview sheet, I need to search all teams coumn C2:C145 (I have simply gone to C145 incase we increase the size of the teams) of for their syndicate, and then display if their check is due within the next 4 weeks. I have managed to complete the "in date" and "out of Date" data, but for some reason, I cannot get the forumal to work with the "due in 4 weeks". Apparently it would be simple with COUNTIFs, but I'm using Excel 2003 - ARGH!

    So, the formula needs to read C2:C145 from all sheets, checking which syndicate is displayed, and then decide if the relevant check is due within 4 weeks of todays date. I have tried having "cheat" boxes hidden away with all the information split down, but that doesn't seem to help. Apparently it may have to involve VBA, which would be a potential non-starter from me!

    I've included a (very) stripped down example of what I am working on - The original contains a lot of sensitive data, so I mocked up what it would look like - enough for someone to understand what I mean / need.

    I REALLY hope someone can help....PLEASE!!!! Many, many thanks everyone!
    Attached Files Attached Files

  2. #2
    Forum Guru Kaper's Avatar
    Join Date
    12-14-2013
    Location
    Warsaw, Poland
    MS-Off Ver
    most often: Office 365 in Windows environment
    Posts
    8,623

    Re: Multiple Criteria for COUNTIF / IF / AND..in excel 2003!

    IN excel pre2007 one had to use SUMPRODUCT if there were more than one condition.
    typical "general formula" would look like
    Formula: copy to clipboard
    Please Login or Register  to view this content.

    an equivalent to post2003:
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    Best Regards,

    Kaper

  3. #3
    Registered User
    Join Date
    08-26-2015
    Location
    England
    MS-Off Ver
    2003
    Posts
    4

    Re: Multiple Criteria for COUNTIF / IF / AND..in excel 2003!

    I have used SUMPRODUCT throughtout, but it doesn't seem to look for the last date. Now matter how I have set it up!

    The type of thing I have used is similar to this:

    =SUMPRODUCT('TEAM A'!C2:C145="1",('TEAM A'!E2:E145=">"&TODAY()+31)).

    This constantly returns 0 (or an error), no matter what. It could be as simple as my logic is wrong. It does need to count how many people have their checks due within the next 31 days, so I also tried to use COUNTIF, but again, it wouldn't work.

  4. #4
    Forum Expert
    Join Date
    07-20-2011
    Location
    Mysore, India.
    MS-Off Ver
    Excel 2019
    Posts
    8,587

    Re: Multiple Criteria for COUNTIF / IF / AND..in excel 2003!

    Try this
    =SUMPRODUCT(('TEAM A'!C2:C145=1)*('TEAM A'!E2:E145>=TODAY()+31))

  5. #5
    Forum Guru Kaper's Avatar
    Join Date
    12-14-2013
    Location
    Warsaw, Poland
    MS-Off Ver
    most often: Office 365 in Windows environment
    Posts
    8,623

    Re: Multiple Criteria for COUNTIF / IF / AND..in excel 2003!

    The clou is here (based on my sample notation):
    Formula: copy to clipboard
    Please Login or Register  to view this content.

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


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


    in simple words - you have to supply sumproduct with numbers not table of boolean values. The easiest way to achieve this is by forcing excel to do type conversion for us.

    I've seen such approach in your file so expected you are aware of this.

  6. #6
    Forum Contributor
    Join Date
    03-17-2005
    Location
    Canterbury, Kent
    MS-Off Ver
    2003, 2010
    Posts
    285

    Re: Multiple Criteria for COUNTIF / IF / AND..in excel 2003!

    With the use of helper columns I came up with this. Not very elegant but seems to work.

    Windy
    Attached Files Attached Files

  7. #7
    Registered User
    Join Date
    08-26-2015
    Location
    England
    MS-Off Ver
    2003
    Posts
    4

    Re: Multiple Criteria for COUNTIF / IF / AND..in excel 2003!

    Quote Originally Posted by Kaper View Post
    The clou is here (based on my sample notation):
    Formula: copy to clipboard
    Please Login or Register  to view this content.

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


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


    in simple words - you have to supply sumproduct with numbers not table of boolean values. The easiest way to achieve this is by forcing excel to do type conversion for us.

    I've seen such approach in your file so expected you are aware of this.
    I don't really understand your formula - I'm not searching for anything in coumn A or B - I'm not sure how to get this to read my columns?

  8. #8
    Registered User
    Join Date
    08-26-2015
    Location
    England
    MS-Off Ver
    2003
    Posts
    4

    Re: Multiple Criteria for COUNTIF / IF / AND..in excel 2003!

    Quote Originally Posted by kvsrinivasamurthy View Post
    Try this
    =SUMPRODUCT(('TEAM A'!C2:C145=1)*('TEAM A'!E2:E145>=TODAY()+31))
    I've tried this also, and it still returns "0" - could this be down to formatting of the actual cell with the date?

  9. #9
    Forum Expert
    Join Date
    07-20-2011
    Location
    Mysore, India.
    MS-Off Ver
    Excel 2019
    Posts
    8,587

    Re: Multiple Criteria for COUNTIF / IF / AND..in excel 2003!

    I am not clear what is required. Try this in C10, then dragged horizontally.
    Please Login or Register  to view this content.

  10. #10
    Forum Expert
    Join Date
    07-20-2011
    Location
    Mysore, India.
    MS-Off Ver
    Excel 2019
    Posts
    8,587

    Re: Multiple Criteria for COUNTIF / IF / AND..in excel 2003!

    I am not clear what is required. Try this in C10, then dragged horizontally.
    Please Login or Register  to view this content.
    Attached Files Attached Files

+ 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. [SOLVED] Multiple criteria SUMPRODUCT (3 criteria) Excel 2003
    By lelrich in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 11-10-2014, 01:58 PM
  2. [SOLVED] COUNTIF - multiple criteria (excel 2003)
    By nat.ssnt in forum Excel Formulas & Functions
    Replies: 13
    Last Post: 11-10-2013, 10:58 PM
  3. Countif, Multiple Criteria, Multiple Sheets, Excel 2003
    By shyammankoo in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 03-07-2013, 06:50 AM
  4. Multiple COUNTIF - Excel 2003
    By db1966 in forum Excel General
    Replies: 5
    Last Post: 02-09-2012, 09:50 AM
  5. Multiple Countif Statement for Excel 2003
    By Mile029 in forum Excel General
    Replies: 2
    Last Post: 11-30-2011, 02:58 PM
  6. Replies: 2
    Last Post: 02-25-2011, 09:42 AM
  7. Excel 2003: COUNTIF/SUMPRODUCT, Multiple Criteria w/Wildcard
    By EricF in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 11-24-2008, 09:41 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