+ Reply to Thread
Results 1 to 5 of 5

Using Countif with non-specific value criteria

  1. #1
    Registered User
    Join Date
    12-16-2014
    Location
    Portland, OR
    MS-Off Ver
    2010
    Posts
    10

    Using Countif with non-specific value criteria

    Hi I'm trying to figure out a method to use countif without specifically telling each cell what value it's looking for.

    Example:
    =IF($I$136<>"",SUMIF(NewSchedule!$K$6:$K$1000,"*129*",NewSchedule!$L$6:$L$1000),"")

    This verifies that an entry has been made in I136, looks into K6:K1000 for values similar to 129 then adds the cells next to it in row L.
    I'd like to be able to drag this formula and have it auto-adjust to different values.

    129 corresponds to an order # and is located in cell A129 so I was hoping to be able to put
    =IF($I$136<>"",SUMIF(NewSchedule!$K$6:$K$1000,"(value of A129)",NewSchedule!$L$6:$L$1000),"")

    then be able to drag it down for the remaining orders
    =IF($I$136<>"",SUMIF(NewSchedule!$K$6:$K$1000,"(value of A130)",NewSchedule!$L$6:$L$1000),"")

    =IF($I$136<>"",SUMIF(NewSchedule!$K$6:$K$1000,"(value of A131)",NewSchedule!$L$6:$L$1000),"")

    =IF($I$136<>"",SUMIF(NewSchedule!$K$6:$K$1000,"(value of A132)",NewSchedule!$L$6:$L$1000),"")

    etc...

    Otherwise I'll be here all day editing the cells manually.

    Thank you!

  2. #2
    Forum Contributor
    Join Date
    10-19-2012
    Location
    Omaha, Nebraska USA
    MS-Off Ver
    Excel 2010
    Posts
    249

    Re: Using Countif with non-specific value criteria

    Hi cdmse,

    I think this may be what you are looking for:

    Please Login or Register  to view this content.
    That would execute the formula for values that are similar to the value in A129. As you copy the formula down, the A129 would advance to A130 and so on.

    Hopefully that helps,

    Dan

  3. #3
    Forum Moderator - RIP Richard Buttrey's Avatar
    Join Date
    01-14-2008
    Location
    Stockton Heath, Cheshire, UK
    MS-Off Ver
    Office 365, Excel for Windows 2010 & Excel for Mac
    Posts
    29,464

    Re: Using Countif with non-specific value criteria

    Hi,

    Maybe

    Formula: copy to clipboard
    Please Login or Register  to view this content.
    Richard Buttrey

    RIP - d. 06/10/2022

    If any of the responses have helped then please consider rating them by clicking the small star icon below the post.

  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: Using Countif with non-specific value criteria

    Quote Originally Posted by cdmse View Post
    =IF($I$136<>"",SUMIF(NewSchedule!$K$6:$K$1000,"*129*",NewSchedule!$L$6:$L$1000),"")
    Wildcards don't work on numbers.

    Assuming the criteria is an alphanumeric string?
    Biff
    Microsoft MVP Excel
    Keep It Simple Stupid

    Let's Go Pens. We Want The Cup.

  5. #5
    Registered User
    Join Date
    12-16-2014
    Location
    Portland, OR
    MS-Off Ver
    2010
    Posts
    10

    Re: Using Countif with non-specific value criteria

    Awesome. Thanks Richard & Dan - Exactly what I was looking for.

+ 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] countif - specific criteria
    By jambo2013 in forum Excel Formulas & Functions
    Replies: 9
    Last Post: 07-15-2015, 04:09 AM
  2. Replies: 4
    Last Post: 05-14-2015, 02:48 PM
  3. [SOLVED] COUNTIF visible cells matching specific criteria
    By MP1989 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 02-17-2015, 06:07 PM
  4. Return dates that match a single criteria (a countif criteria)
    By nickmax1 in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 02-07-2014, 12:43 PM
  5. Need help with COUNTIF function - with specific criteria search
    By robbertl in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 12-20-2012, 12:19 PM
  6. Countif w/ Multiple Criteria-How do I use countif
    By Patrick_KC in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 08-09-2005, 05:05 PM
  7. Countif using format criteria not number criteria?
    By Rumbla76 in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 04-20-2005, 01:06 AM

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