+ Reply to Thread
Results 1 to 4 of 4

Excel 2003: COUNTIF/SUMPRODUCT, Multiple Criteria w/Wildcard

  1. #1
    Registered User
    Join Date
    11-24-2008
    Location
    Louisville, KY
    Posts
    2

    Excel 2003: COUNTIF/SUMPRODUCT, Multiple Criteria w/Wildcard

    I'm trying to write this but it returns a 0 when I know there are 3 records that match this criteria:

    =SUMPRODUCT(('Invoice-Detail'!J2:J50="NewJob_Post.NET")*('Invoice-Detail'!H2:H50="KY_*"))

    I think the problem is in the wildcard character. I don't know if I should be using COUNTIF or SUMPRODUCT or something else?

    Thanks in advance for your help. I've been working on this for 2 DAYS! I give up!

    PS: I'm using EXCEL 2003, not 2007!
    Last edited by EricF; 11-24-2008 at 09:40 PM.

  2. #2
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2003, 2010
    Posts
    40,678
    Maybe

    =SUMPRODUCT( ('Invoice-Detail'!J2:J50="NewJob_Post.NET") * ISNUMBER(FIND("KY_", 'Invoice-Detail'!H2:H50) ) )
    Entia non sunt multiplicanda sine necessitate

  3. #3
    Forum Expert daddylonglegs's Avatar
    Join Date
    01-14-2006
    Location
    England
    MS-Off Ver
    2016
    Posts
    14,675
    If you use "KY_*" then, in this situation, the * doesn't act as a wildcard, this is only true if the cells contain the literal string "KY_*". You can use LEFT function, i.e.

    =SUMPRODUCT(--('Invoice-Detail'!J2:J50="NewJob_Post.NET"),--(LEFT('Invoice-Detail'!H2:H50,3)="KY_"))

  4. #4
    Registered User
    Join Date
    11-24-2008
    Location
    Louisville, KY
    Posts
    2

    daddylonglegs - thank you!

    Thanks daddylonglegs. Your response was 100% right on - worked perfect!!!

+ 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