+ Reply to Thread
Results 1 to 3 of 3

Formula needed to tell me if a value exists

  1. #1
    Registered User
    Join Date
    07-10-2008
    Location
    Planet Earth
    Posts
    1

    Formula needed to tell me if a value exists

    Hi,

    I have a sheet with a column of ID Numbers (Column C)
    I need a formula in the next column (Column D) to inform me if the new ID Number which I'm entering now is already existing somewhere in column C.

    example:

    Column C -----Column D
    ID Number
    105235 --------the needed formula
    125435 --------the needed formula
    145298 --------the needed formula
    548694 --------the needed formula
    125435 --------the needed formula should tell me that this ID exists

    In the example, I entered the new ID number 125435 after the last ID number in column C, the formula in column D (in the same row as the newely eneterd ID)should inform me that it exists in row 3 as shown

    How can I do that?

    Thank you

  2. #2
    Forum Moderator davesexcel's Avatar
    Join Date
    02-19-2006
    Location
    Regina
    MS-Off Ver
    MS 365
    Posts
    13,475
    Quote Originally Posted by WhatF
    Hi,

    I have a sheet with a column of ID Numbers (Column C)
    I need a formula in the next column (Column D) to inform me if the new ID Number which I'm entering now is already existing somewhere in column C.

    example:

    Column C -----Column D
    ID Number
    105235 --------the needed formula
    125435 --------the needed formula
    145298 --------the needed formula
    548694 --------the needed formula
    125435 --------the needed formula should tell me that this ID exists

    In the example, I entered the new ID number 125435 after the last ID number in column C, the formula in column D (in the same row as the newely eneterd ID)should inform me that it exists in row 3 as shown

    How can I do that?

    Thank you
    Hi,
    Try data validation:
    http://www.cpearson.com/excel/NoDupEntry.aspx

    Or conditional formatting:
    http://www.contextures.com/xlCondFor...html#DupColumn
    Last edited by davesexcel; 07-10-2008 at 04:59 AM.

  3. #3
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898
    Or if you want a formula....

    In D2...

    =IF(Countif(C$2:C2,C2)>1,"Repeat","") copied down...
    Where there is a will there are many ways.

    If you are happy with the results, please add to the contributor's reputation by clicking the reputation icon (star icon) below left corner

    Please also mark the thread as Solved once it is solved. Check the FAQ's to see how.

+ 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