+ Reply to Thread
Results 1 to 4 of 4

Countif & Subtotal

  1. #1
    Forum Contributor
    Join Date
    06-17-2010
    Location
    Donemana, NI
    MS-Off Ver
    Excel 2007
    Posts
    386

    Countif & Subtotal

    Hi,
    Sorry to ask such a simple question but I am trying to work out email address percentage on a massive workshop 10000+ rows. I have used the following formula but it does not work and i'm confused to why, =SUMPRODUCT(SUBTOTAL(3,OFFSET(A2,ROW(A2:A100)-ROW(A2),0)),(A2:A100="*@*")+0), but it returns 0, if I take the * (wildcard) out it works as long as @ is the only character in the cell, I need it to check to see if the @ is evident as in some cases numbers and other text has been inputted.
    Many Thanks
    Johnny

  2. #2
    Forum Expert Tony Valko's Avatar
    Join Date
    12-31-2011
    Location
    Pittsburgh
    MS-Off Ver
    2002, 2007:2013
    Posts
    18,890

    Re: Countif & Subtotal

    The SUMPRODUCT function doesn't accept wildcards.

    Try it like this:

    =SUMPRODUCT(SUBTOTAL(3,OFFSET(A2,ROW(A2:A100)-ROW(A2),0)),--ISNUMBER(FIND("@",A2:A100)))
    Biff
    Microsoft MVP Excel
    Keep It Simple Stupid

    Let's Go Pens. We Want The Cup.

  3. #3
    Forum Contributor
    Join Date
    06-17-2010
    Location
    Donemana, NI
    MS-Off Ver
    Excel 2007
    Posts
    386

    Re: Countif & Subtotal

    Works perfectly, many thanks Tony

  4. #4
    Forum Expert Tony Valko's Avatar
    Join Date
    12-31-2011
    Location
    Pittsburgh
    MS-Off Ver
    2002, 2007:2013
    Posts
    18,890

    Re: Countif & Subtotal

    You're welcome. Thanks for the feedback!

+ 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] Subtotal and Countif
    By Lehany in forum Excel Formulas & Functions
    Replies: 8
    Last Post: 07-10-2014, 01:53 PM
  2. Mix countif with subtotal
    By ExcelFailure in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 01-06-2014, 04:00 AM
  3. [SOLVED] Subtotal countif?
    By freud1 in forum Excel General
    Replies: 12
    Last Post: 10-02-2012, 07:31 AM
  4. [SOLVED] =Subtotal(countif,Range); Subtotal and countif in 1 formula [SOLVED]
    By thomas.mapua in forum Excel General
    Replies: 5
    Last Post: 01-06-2012, 11:33 AM
  5. Countif in subtotal
    By coolzero in forum Excel General
    Replies: 1
    Last Post: 05-25-2011, 03: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