+ Reply to Thread
Results 1 to 4 of 4

CountIF with conditions, match names and count if < or > 1000

Hybrid View

  1. #1
    Registered User
    Join Date
    01-02-2012
    Location
    Victoria
    MS-Off Ver
    Excel 2003
    Posts
    22

    CountIF with conditions, match names and count if < or > 1000

    Hi all,

    after a formula that will match a name in sheet 2, to the database on sheet 1 and then count only the values that is less than 1000 that corresponds to that persons name.

    Not sure if this is possible but any help would be appreciated.

    Thanks.

  2. #2
    Forum Guru DonkeyOte's Avatar
    Join Date
    10-22-2008
    Location
    Northumberland, UK
    MS-Off Ver
    O365
    Posts
    21,531

    Re: CountIF with conditions, match names and count if < or > 1000

    If as implied you are using XL2003

    Sheet2!B1:
    =SUMPRODUCT((Sheet1!$A$1:$A$100=A1)*(Sheet1!$B$1:$B$100<1000))
    where A1 holds Name
    If using XL2007+ see COUNTIFS function

    Above assumes dimensions of both ranges (name & values) are identical

  3. #3
    Registered User
    Join Date
    09-12-2008
    Location
    Oman
    Posts
    8

    Re: CountIF with conditions, match names and count if < or > 1000

    The easiest way is to add column in "Sheet 1" with the condition to pick all values >1000 and then use countif formula in Sheet 2 from that NEW column. There are other solutions too but need some time.

  4. #4
    Registered User
    Join Date
    01-02-2012
    Location
    Victoria
    MS-Off Ver
    Excel 2003
    Posts
    22

    Re: CountIF with conditions, match names and count if < or > 1000

    Thanks DonkeyOte, that worked!

    just a follow up question, if i wanted the formula to be greater than -1000 and less than 1000 and another to be less than -1000 and greater than 1000, h ow would i go about doing that? I have just added >1000 and <1000 but it hasnt seemed to work.

    Thanks.

+ 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