+ Reply to Thread
Results 1 to 3 of 3

Thread: Lookup data in previous cells

  1. #1
    Registered User
    Join Date
    06-30-2008
    Location
    Georgia
    MS-Off Ver
    Excel 2007
    Posts
    31

    Question Lookup data in previous cells

    I am trying to deretemine in someone is a repeat caller.

    Not sure if this is possible or not, but i'm looking for a way to do a lookup using one cell but want it to only do the look up in the cells before it not after it, but at the same time not count the first appearance as a repeat call.

    Example:
    Column A contains a list of names
    Column B will contain the said formula with the result returning "Yes" or "No"

    So lets say the name "John Smith" is listed in cell A2, A5 and A10. In cell A2, the fomula would return a "No", because this is the first appearance of the name John Smith, therefore he's not a repeat caller.

    In cell A5, the formula would lookup John Smith in the cells before it (A2:A4), but this time it would see John Smith in A2 therefore return "Yes". Same would apply for cell A10.

    I have attached a file as an example as well.
    Attached Files Attached Files
    Last edited by maddog9486; 09-01-2011 at 10:55 AM.

  2. #2
    Forum Moderator Richard Buttrey's Avatar
    Join Date
    02-15-2008
    Location
    Grappenhall, UK
    MS-Off Ver
    Excel for Windows & Mac - all versions.
    Posts
    6,566

    Re: Lookup data in previous cells

    Hi,
    One way...
    =IF(COUNTIF($A$2:A2,A2)>1,"Yes","No")
    Regards
    Richard Buttrey

    If this was useful then please rate it appropriately.

    Click the small star icon at the bottom left of my post.

  3. #3
    Registered User
    Join Date
    06-30-2008
    Location
    Georgia
    MS-Off Ver
    Excel 2007
    Posts
    31

    Re: Lookup data in previous cells

    Works perfectly Richard. Thank you.

+ 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.2.0