Results 1 to 17 of 17

Problem with COUNTIF formula

Threaded View

  1. #1
    Forum Guru (RIP) Marcol's Avatar
    Join Date
    12-23-2009
    Location
    Fife, Scotland
    MS-Off Ver
    Excel '97 & 2003/7
    Posts
    7,216

    Problem with COUNTIF formula

    When trying to answer a thread I came across this situation when trying to use COUNTIF to reveal duplicates.

    The OP has an 18 digit serial number stored as text, I thought
    =COUNTIF($A1:$A$1,$A2)
    Dragged Down
    would show duplicates if the returned value was greater than 0, the result was not at all what I was expecting. (See the attached workbook)

    Step 2 I tried MATCH as a check and this does return what I was expecting.

    Step 3 was to convert the text string to a number and run the COUNTIF again, still seems wrong

    Step 4 concatenated the string with a trailing "A" and the COUNTIF now returns the expected result

    Why does the original formula apparently not work?....


    Slainte
    Alistair
    Attached Files Attached Files
    Last edited by Marcol; 03-06-2011 at 02:13 PM. Reason: Problem Solved
    If you need any more information, please feel free to ask.

    However,If this takes care of your needs, please select Thread Tools from menu above and set this topic to SOLVED. It helps everybody! ....

    Also
    اس کی مدد کرتا ہے اگر
    شکریہ کہنے کے لئے سٹار کلک کریں
    If you are satisfied by any members response to your problem please consider using the small Star icon bottom left of their post to show your appreciation.

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