+ Reply to Thread
Results 1 to 6 of 6

Accomplishing the function of countif with wildcards on numeric data - help please

  1. #1
    Registered User
    Join Date
    02-14-2018
    Location
    Portland, Oregon
    MS-Off Ver
    2016
    Posts
    4

    Accomplishing the function of countif with wildcards on numeric data - help please

    Hello all, I have what I think is a fairly simple workflow that I would like to make a ton more efficient. I have to make summary tables for reports that have source data from county assessors concerning the "land use" of tax lots. I get a ton of tax lot data and want to be able to crank through it very quickly, and currently do not like my process. What I want to setup is a master spreadsheet that I can paste my source data into. This master spreadsheet would have built in formulas that would recognize the source data and spit out my summary tables with a few macros and some clever formulas. One of the formulas I am having trouble with, and know must be possible, is achieving the function of a countif with wildcards on numeric data.

    The land use data I get is numerically coded, I only care about the first digit of the three digit code, for example 960, 950, and 940 are all listed as "Exempt" in my summary table because that is the level of specificity we use in our reports. Specifically all three digit numbers starting with 000 and ending with 900 are coded to a different land use, so I need to have wildcards that only sum values for numbers that start with a given number, not that contain a given number. Thusly I want to search my source data for 9** and count that way for my "Exempt" values and count them. Then I need to accomplish the function a sumif based on that "Exempt" dataset gathered by the 9** function built previously for the acreage of the tax lots. I appreciate any help that is given to me, and realize that my questions are a bit specific. I wish I had more experience in array based excel formulas because all the searching into actual useful formulas for this seems to point that direction, but sadly I do not. If anyone needs a short example of the data I am working with and the summary table I am turning it into I would be happy to provide it.
    Attached Files Attached Files
    Last edited by boged17; 06-15-2018 at 01:45 PM.

  2. #2
    Registered User
    Join Date
    06-13-2018
    Location
    india
    MS-Off Ver
    2010;2007
    Posts
    54

    Re: Accomplishing the function of countif with wildcards on numeric data - help please

    hi boged ! it would be better if you could update a sample file with 10-15 rows of data with result expected.

  3. #3
    Registered User
    Join Date
    02-14-2018
    Location
    Portland, Oregon
    MS-Off Ver
    2016
    Posts
    4

    Re: Accomplishing the function of countif with wildcards on numeric data - help please

    Will do. Just made a short spreadsheet to attach.

  4. #4
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    28,206

    Re: Accomplishing the function of countif with wildcards on numeric data - help please

    Try

    in H3

    =COUNTIFS($A$3:$A$16,">=" &$F3,$A$3:$A$16,"<=" &$F3+99)

    in I3

    =SUMIFS($B$3:$B$16,$A$3:$A$16,">=" &$F3,$A$3:$A$16,"<=" &$F3+99)

  5. #5
    Forum Expert
    Join Date
    06-08-2012
    Location
    Left the forum!
    MS-Off Ver
    Left the forum!
    Posts
    5,189

    Re: Accomplishing the function of countif with wildcards on numeric data - help please

    Try this one for the count, enter into H3 of your sample and copy down as needed.

    =COUNTIF($A$3:$A$16,"<"&F3+100)-SUM(H$2:H2)

    And this one for the sum in I3 and copied down.

    =SUMIF($A$3:$A$16,"<"&F3+100,$B$3:$B$16)-SUM(I$2:I2)

    Are you able to modify that as needed for your real data?

  6. #6
    Registered User
    Join Date
    02-14-2018
    Location
    Portland, Oregon
    MS-Off Ver
    2016
    Posts
    4

    Re: Accomplishing the function of countif with wildcards on numeric data - help please

    Thank you for all your help, I got my mission accomplished! Sorry for the delayed response, I got busy at work and didn't get a chance to get the formulas into a spreadsheet until just now.

+ 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. Numeric wildcards
    By Keerlof in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 03-11-2016, 10:24 AM
  2. [SOLVED] Addition of alpha numeric using excel function COUNTIF
    By omsai.us in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 03-19-2014, 04:34 AM
  3. COUNTIF Formula for Non-Numeric Data Not Working
    By Mezzi in forum Excel Formulas & Functions
    Replies: 14
    Last Post: 06-10-2013, 04:27 PM
  4. Replies: 3
    Last Post: 10-18-2010, 11:09 AM
  5. Countif with wildcards
    By seanjoe in forum Excel General
    Replies: 4
    Last Post: 06-02-2010, 09:04 AM
  6. countif function to count text numeric data in same cell
    By keithn@thenails in forum Excel General
    Replies: 4
    Last Post: 11-11-2006, 04:54 PM
  7. Merging Macros & Accomplishing conditional data manipulation
    By Tungar in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 04-13-2005, 06:43 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