+ Reply to Thread
Results 1 to 5 of 5

using countif and trying to search the whole workbook.

  1. #1
    Registered User
    Join Date
    06-22-2008
    Posts
    2

    using countif and trying to search the whole workbook.

    I'm trying to use COUNTIF to count the number of times a certain string of text appears in a work book. In a way it would even count new work sheets added later. Right now I'm using the "Find All" from the Edit menu. I'm using Excel 2003. It may just be some sort of syntax error. What I have now is =COUNTIF("'STARTSHEET:ENDSHEET'!","[TEXTFOUND]") and I would add new worksheets in between "startsheet" and "endsheet"

  2. #2
    Forum Expert daddylonglegs's Avatar
    Join Date
    01-14-2006
    Location
    England
    MS-Off Ver
    2016
    Posts
    14,675
    You can't use COUNTIF function with 3D references [ i.e. multiple worksheets].

    One way would be to download Morefunc add-in and use COUNTIF.3D function

    Note: that's the usual link I use for Morefunc but when I checked just now I got some sort of error....you may be able to access Morefunc from elsewhere, try googling...

  3. #3
    Forum Expert martindwilson's Avatar
    Join Date
    06-23-2007
    Location
    London,England
    MS-Off Ver
    office 97 ,2007
    Posts
    19,320
    well you could try this but t takes a bit of time setting up
    array formula in a2 on each sheet counts all instances of word "apple" in specified range on that sheet (i used a3:k21 and coloured it yelow for clarity)
    sheet1 a1 simply totals the results. but youd have to copy the formula/paste special values and re confirm with ctrl+shift+enter for each new work sheet and also extend formula in a1 to include new sheet.
    i suspect there's a nice bit of vba code somewhere that'll do it easier
    Attached Files Attached Files
    Last edited by martindwilson; 06-22-2008 at 07:27 PM.

  4. #4
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2003, 2010
    Posts
    40,678
    that's the usual link I use for Morefunc but when I checked just now I got some sort of error ...
    Try http://www.brothersoft.com/morefunc-...oad-11046.html

  5. #5
    Forum Contributor
    Join Date
    09-25-2004
    Posts
    269
    Hope this helps!
    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)

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