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
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
Can you upload example?
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!)
=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.
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks