+ Reply to Thread
Results 1 to 9 of 9

Countif

  1. #1
    Registered User
    Join Date
    03-26-2012
    Location
    Wiltshire, England
    MS-Off Ver
    Excel 2010
    Posts
    21

    Countif

    Hi,

    I have a list of Inspections (various type, dates and locations etc) and I am trying to use a CountIFs formula to count the amount of Inspections that are either Type - 'Prelim' or 'Move Out' (this information comes from the same column called Type) and if the Tenancy Year field contains 1011.

    The formula I am using is:
    =COUNTIFS(AB1:AB2919,"1011****",K1:K2919,"Prelim",K1:K2919,"Move Out")

    (AB = Tenancy Year column) (K = Type Column)

    And I am just getting a zero count - which I know is wrong....

    Any ideas on where I am going wrong here?

    Thanks

  2. #2
    Forum Contributor darknation144's Avatar
    Join Date
    01-24-2012
    Location
    London
    MS-Off Ver
    Microsoft Excel 365 MSO
    Posts
    555

    Re: Countif

    Incorrect infomation removed.
    Last edited by darknation144; 03-27-2012 at 11:40 AM.

  3. #3
    Registered User
    Join Date
    03-26-2012
    Location
    Wiltshire, England
    MS-Off Ver
    Excel 2010
    Posts
    21

    Re: Countif

    Thanks, But excel returns me an error for this, but doesn't specify what the problem is? Thanks

  4. #4
    Forum Contributor darknation144's Avatar
    Join Date
    01-24-2012
    Location
    London
    MS-Off Ver
    Microsoft Excel 365 MSO
    Posts
    555

    Re: Countif

    Have you tried just using 1 star in your original formula. As * means multiple characters ? is used for a single character.

  5. #5
    Registered User
    Join Date
    03-26-2012
    Location
    Wiltshire, England
    MS-Off Ver
    Excel 2010
    Posts
    21

    Re: Countif

    Well, the Tenancy Years appear in the following Format "1011BIRM" or "0910CARD" and I want it to count it where ever the Tenancy year contains 1011, which is why I have put 4 stars, to make the format match ... ? Is that right?

  6. #6
    Forum Contributor darknation144's Avatar
    Join Date
    01-24-2012
    Location
    London
    MS-Off Ver
    Microsoft Excel 365 MSO
    Posts
    555

    Re: Countif

    Actually re reading your original post you are searching for Prelim AND Move Out you need to be searching for OR.

  7. #7
    Forum Contributor darknation144's Avatar
    Join Date
    01-24-2012
    Location
    London
    MS-Off Ver
    Microsoft Excel 365 MSO
    Posts
    555

    Re: Countif

    You only need 1 * that will search for 1011 followed by anything.

  8. #8
    Registered User
    Join Date
    03-26-2012
    Location
    Wiltshire, England
    MS-Off Ver
    Excel 2010
    Posts
    21

    Re: Countif

    ah thanks, will try that....

  9. #9
    Forum Contributor darknation144's Avatar
    Join Date
    01-24-2012
    Location
    London
    MS-Off Ver
    Microsoft Excel 365 MSO
    Posts
    555

    Re: Countif

    Try =COUNTIFS(AB1:AB2919,"1011*",K1:K2919,"Prelim")+COUNTIFS(AB1:AB2919,"1011*",K1:K2919,"Move Out")

+ 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