+ Reply to Thread
Results 1 to 6 of 6

Count duplicate text entries and ignore errors

  1. #1
    Registered User
    Join Date
    11-30-2012
    Location
    NC
    MS-Off Ver
    Excel 2010
    Posts
    4

    Count duplicate text entries and ignore errors

    In the range B5:B123, I have text data that is formula driven from a VLOOKUP function (so some values return #N/A). I need a formula that will count the duplicate text entries, but ignores the error #N/A.

    **I know how to make this work using a PivotTable, but that requires filtering and refreshing when new entries are added. This is a template that will be used for daily data entry, so I need something that can do this automatically and quickly.

    Thanks in advance.
    Last edited by raaz00; 12-04-2012 at 10:06 AM.

  2. #2
    Forum Expert daddylonglegs's Avatar
    Join Date
    01-14-2006
    Location
    England
    MS-Off Ver
    2016
    Posts
    14,675

    Re: Count duplicate text entries and ignore errors

    Can you explain what you mean by "count the duplicate text entries". Do you mean you want to count the number of different text entries....or something else?

    My assumption is that if you have these 6 entries, "xyz","#N/A","xyz","xyz","#N/A","abc"....then the count should be 2 ["xyz" and abc", both counted once only] - is that right?
    Audere est facere

  3. #3
    Registered User
    Join Date
    11-30-2012
    Location
    NC
    MS-Off Ver
    Excel 2010
    Posts
    4

    Re: Count duplicate text entries and ignore errors

    Quote Originally Posted by daddylonglegs View Post
    Can you explain what you mean by "count the duplicate text entries". Do you mean you want to count the number of different text entries....or something else?

    My assumption is that if you have these 6 entries, "xyz","#N/A","xyz","xyz","#N/A","abc"....then the count should be 2 ["xyz" and abc", both counted once only] - is that right?
    Thank you for the reply, daddylonglegs.

    In your example, I would want the count to be 1. "xyz" is the only text that is duplicated/repeated. I should have been more specific in my question. Only when a text entry is duplicated/repeated do I want it counted.
    Last edited by raaz00; 11-30-2012 at 06:34 PM.

  4. #4
    Forum Guru benishiryo's Avatar
    Join Date
    03-25-2011
    Location
    Singapore
    MS-Off Ver
    Excel 2013
    Posts
    5,147

    Re: Count duplicate text entries and ignore errors

    hi raaz00, welcome to the forum. maybe an array formula like this?
    Please Login or Register  to view this content.
    you have to paste the formula inside the formula bar & press CTRL + SHIFT + ENTER

    Thanks, if you have clicked on the * and added our rep.

    If you're satisfied with the answer, click Thread Tools above your first post, select "Mark your thread as Solved".

    "Contentment is not the fulfillment of what you want, but the realization of what you already have."


    Tips & Tutorials I Compiled | How to Get Quick & Good Answers

  5. #5
    Registered User
    Join Date
    11-30-2012
    Location
    NC
    MS-Off Ver
    Excel 2010
    Posts
    4

    Re: Count duplicate text entries and ignore errors

    Quote Originally Posted by benishiryo View Post
    hi raaz00, welcome to the forum. maybe an array formula like this?
    Please Login or Register  to view this content.
    you have to paste the formula inside the formula bar & press CTRL + SHIFT + ENTER
    Thank you for the reply, benishiryo.

    The workbook is saved on a server at my job, and since I don't work weekends, I can't test your formula. I'll definitely try it out on Monday and get back to you. Thanks for the help.

  6. #6
    Registered User
    Join Date
    11-30-2012
    Location
    NC
    MS-Off Ver
    Excel 2010
    Posts
    4

    Re: Count duplicate text entries and ignore errors

    Quote Originally Posted by benishiryo View Post
    hi raaz00, welcome to the forum. maybe an array formula like this?
    Please Login or Register  to view this content.
    you have to paste the formula inside the formula bar & press CTRL + SHIFT + ENTER
    Beautiful! Thanks so much for your help. It works exactly how I needed it too!

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

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