+ Reply to Thread
Results 1 to 2 of 2

How do I find a cell in a column that equals another cell in another column?

  1. #1
    Registered User
    Join Date
    12-18-2014
    Location
    Miami, FL
    MS-Off Ver
    MS Office 2013
    Posts
    1

    How do I find a cell in a column that equals another cell in another column?

    Hi Guys,

    I'm trying to find a cell in an entire column that equals a cell that I know the location of. For example, let's say I'm writing =IF(A2=B:B, A2,"Cell not found") on cell C2. The problem with this statement is that the logic tries to match cell A2 with an entire array B:B, and what I wanna do is find the cell in B:B that is equal to A2 and then output it on cell C2. Does anyone have an idea on how to do this?

    Thanks a lot.

    Best,

    Alexander Bazzi
    CCNA, MCP, A+
    Attached Images Attached Images

  2. #2
    Forum Guru
    Join Date
    08-05-2004
    Location
    NJ
    MS-Off Ver
    365
    Posts
    13,582

    Re: How do I find a cell in a column that equals another cell in another column?

    =IFERROR(INDEX($B:$B, MATCH(A2, $B:$B,0)), "Not Found")
    or
    IF(ISNUMBER(MATCH(A2,$B:$B,0)), A2, "Not Found")
    ChemistB
    My 2?

    substitute commas with semi-colons if your region settings requires
    Don't forget to mark threads as "Solved" (Edit First post>Advanced>Change Prefix)
    If I helped, Don't forget to add to my reputation (click on the little star at bottom of this post)

    Forum Rules: How to use code tags, mark a thread solved, and keep yourself out of trouble

+ 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] Hide Column if Cell in that Column Equals Certain Value
    By martinpgibson in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 06-12-2013, 12:34 AM
  2. Adding column data if a corresponding cell row equals X
    By schnoobs in forum Excel Formulas & Functions
    Replies: 11
    Last Post: 10-22-2012, 12:05 PM
  3. [SOLVED] How to add Value if any one cell in Column equals a specific number?
    By lorne17 in forum Excel Formulas & Functions
    Replies: 9
    Last Post: 08-08-2012, 01:04 PM
  4. Replies: 4
    Last Post: 11-24-2010, 01:51 PM
  5. Find and replace in a column and delete row if cell equals x
    By blzalewski in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 08-07-2008, 03:47 PM

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