+ Reply to Thread
Results 1 to 8 of 8

COUNTIF Table and another table of values

  1. #1
    Registered User
    Join Date
    07-31-2013
    Location
    Regina, Canada
    MS-Off Ver
    Excel 2013
    Posts
    4

    COUNTIF Table and another table of values

    Hello,

    I am trying to put together a couple of data sets to get a number.

    I have a Table full of mac addresses

    Table1 Column header is "User MAC"
    Type of data in column is 34-C0-59-7D-DF-E7

    I have a second sheet with just basic data like this

    Samsung Devices
    34-C0-59
    34-C0-58
    34-C0-60

    I want to do a countif that will count the samsung devices in the Table1 "User MAC" column based on whether or not the MAC address begins with ANY of the Samsung vendor ID's listed in the second sheet.


    Any help is appreciated. Thank you
    Dallas
    Last edited by dgbrown; 07-31-2013 at 12:00 PM. Reason: add caps to ANY

  2. #2
    Forum Expert
    Join Date
    09-20-2011
    Location
    England
    MS-Off Ver
    Excel 2010
    Posts
    2,278

    Re: COUNTIF Table and another table of values

    Hello
    Perhaps Countif with a wildcard*:

    Please Login or Register  to view this content.
    'User_MAC' is the range with the Mac addresses and A2 contains the code of the Samsung Device.

    It may be more complex than this but I hope it helps.
    DBY

  3. #3
    Registered User
    Join Date
    07-31-2013
    Location
    Regina, Canada
    MS-Off Ver
    Excel 2013
    Posts
    4

    Re: COUNTIF Table and another table of values

    Thanks for he reply. That works with one value to search by. My issue is that I have multiple values in the second sheet with the vendor ids. So its like I need a loop threw the possible values to search with the wildcard for and thats what I'm not sure is possible. Again thanks for the reply.

  4. #4
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,933

    Re: COUNTIF Table and another table of values

    Hi and welcome to the forum

    i would suggest you upload a sample work book, (all sensitive data removed), showing what data you are working with, a few examples of what your expected outcome is, and how you arrived at that
    To attach a file to your post,
    click advanced (next to quick post),
    scroll down until you see "manage file",
    click that and select "add files" (top right corner).
    click "select files" find your file, click "open" click "upload" click 'done" bottom right. click "submit reply"

    Once the upload is completed the file name will appear below the input boxes in this window.
    You can then close the window to return to the new post screen.
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools
    3. Click on the star if you think someone helped you

    Regards
    Ford

  5. #5
    Registered User
    Join Date
    07-31-2013
    Location
    Regina, Canada
    MS-Off Ver
    Excel 2013
    Posts
    4

    Re: COUNTIF Table and another table of values

    Thanks. I have uploaded a sample of what I'm trying to do. I couldn't find how to delete so I ended up uploading two files. DeviceSummary2 is the one I want to use. The first sheet I want to have a summary count of types of devices based on the vendor ID of the MAC address. The possible vendor ID's are stored on the second sheet in 3 separate tables. The data i want to count from is the "User MAC" column of the Device Summary Table on the second sheet.

    Again thanks for the replies, I appreciate it.
    Attached Files Attached Files

  6. #6
    Forum Expert
    Join Date
    09-20-2011
    Location
    England
    MS-Off Ver
    Excel 2010
    Posts
    2,278

    Re: COUNTIF Table and another table of values

    Hello
    I've attempted to come up with a formula to count as you require. As you can see in the attached reply, there's a count table on the 'Session Data' tab which appears to tally with the formulas in the 'Device Summary' tab.

    Hopefully this is doing what you require.
    DBY
    Attached Files Attached Files

  7. #7
    Registered User
    Join Date
    07-31-2013
    Location
    Regina, Canada
    MS-Off Ver
    Excel 2013
    Posts
    4

    Re: COUNTIF Table and another table of values

    Thanks so much,that will work just fine. Doing it with that other table is works perfectly.

  8. #8
    Forum Expert
    Join Date
    09-20-2011
    Location
    England
    MS-Off Ver
    Excel 2010
    Posts
    2,278

    Re: COUNTIF Table and another table of values

    Glad to have helped. The table was there just as a check but you can of course use it to create your summary rather than the single formulas in the 'Device Summary' Tab.

    DBY

+ 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] How to populate a table based on the searched values in a pivoted table
    By Kausty88 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 06-19-2012, 06:11 AM
  2. Countif Formula between Values from a Data Table
    By mrvp in forum Excel General
    Replies: 4
    Last Post: 03-06-2012, 07:25 PM
  3. Replies: 0
    Last Post: 10-13-2011, 06:31 PM
  4. Replies: 9
    Last Post: 02-01-2011, 08:47 AM
  5. summing table values with multiple criteria from a dynamic table
    By griffith in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 05-06-2005, 05:51 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