+ Reply to Thread
Results 1 to 3 of 3

Thread: Countifs with reference String along with criteria

  1. #1
    Registered User
    Join Date
    11-29-2011
    Location
    India
    MS-Off Ver
    Excel 2007
    Posts
    5

    Countifs with reference String along with criteria

    Hi,

    I require to count the no of times a String is repeated - but want it to be referenced to a cell along with a criteria.

    Ex: I want to count the no of times the string occurs with another criteria


    Sheet1
    A B
    1 Apple 1234
    2 Grape 1235
    3 Pine 1236
    4 Peach 1237


    Sheet2
    C D
    1 1234 Apple,Orange,Pine
    2 1235 Apple,Grapes,Pine
    3 1236 Apple,Peach,Grapes
    4 1237 Pine,Peach,Grapes
    5 1234 Apple,Peach,Grapes
    6 1235 Apple,Grapes,Pine
    7 1235 Apple,Grapes,Pine
    8 1236 Apple,Peach,Grapes


    I want to count the no of times Sheet1B1 occurs in Sheet2 ColumnC but at the same time ColumnD does not contain the string in Sheet1A1 for each row

    in other words i want to count the no of times "1234" is repeated in Column C where corresponding D does not contain the string "Apple"
    Last edited by boscoamd; 11-29-2011 at 10:15 AM.

  2. #2
    Forum Moderator Richard Buttrey's Avatar
    Join Date
    02-15-2008
    Location
    Grappenhall, UK
    MS-Off Ver
    Excel for Windows & Mac - all versions.
    Posts
    6,566

    Re: Countifs with reference String along with criteria

    Hi

    In sheet1 C1 copied down

    COUNTIFS('Sheet2'!C:C,B1,'Sheet2'!D:D,"<>*"&A1&"*")
    Regards
    Richard Buttrey

    If this was useful then please rate it appropriately.

    Click the small star icon at the bottom left of my post.

  3. #3
    Registered User
    Join Date
    11-29-2011
    Location
    India
    MS-Off Ver
    Excel 2007
    Posts
    5

    Re: Countifs with reference String along with criteria

    thanks a ton. this works fine.

+ 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.2.0