+ Reply to Thread
Results 1 to 4 of 4

match formula

  1. #1
    Registered User
    Join Date
    04-19-2010
    Location
    US
    MS-Off Ver
    Excel 2003
    Posts
    5

    match formula

    We are trying to match a cell with an array of cells. But if the cell we are trying to match is not in the array, we want the cell to be zero.

    column A column B column C
    Jared Marissa (we want this to say 0)
    Julie
    Bob
    Billy

  2. #2
    Forum Moderator zbor's Avatar
    Join Date
    02-10-2009
    Location
    Croatia
    MS-Off Ver
    365 ProPlus
    Posts
    15,596

    Re: match formula

    Can you upload example?

  3. #3
    Forum Expert JBeaucaire's Avatar
    Join Date
    03-21-2004
    Location
    Bakersfield, CA
    MS-Off Ver
    2010, 2016, Office 365
    Posts
    33,492

    Re: match formula

    In C1:

    =IF(ISNUMBER(MATCH(B1, A:A, 0)), "Match", 0)
    _________________
    Microsoft MVP 2010 - Excel
    Visit: Jerry Beaucaire's Excel Files & Macros

    If you've been given good help, use the icon below to give reputation feedback, it is appreciated.
    Always put your code between code tags. [CODE] your code here [/CODE]

    ?None of us is as good as all of us? - Ray Kroc
    ?Actually, I *am* a rocket scientist.? - JB (little ones count!)

  4. #4
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898

    Re: match formula

    =If(isnumber(match(B1,A:A,0)),"MATCH",0)

    will return "MATCH"1 if matched, 0 if not.

    or

    =--isnumber(match(B1,A:A,0)) will return 1 if matched, 0 if not.
    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