formular to check if details in one cell match any details in another cell!

tonylpcs@yahoo.co.uk

Active Member
Joined
Dec 19, 2007
Messages
379
Hi Everyone,

Ive been trying to work this out but keep geting stuck, hope someone can help me.

I have a spreadsheet and colum A hold a list of clients names, with each row holding a different name, I need a formular or code that can doe the following.

Look at the name in colum A lets say cell A1, and see if it matches any of the names in colum C on any row, if it does then i need it to put a unique number in colum b next to the name it looked at i.e. if it checking A1 then the number goes in B1, then put the same number in the colum D next to the cell in colum C it matched! i.e. if A1 and C200 have the same name in it the B1 will have a number in it e.g. "1" and D200 will have the same number in it e.g "1".

now i also need it to reconise if the D cell aready has a number in it and if so use that number.

again for example there might be 4 rows with the same name in them, well i need the all to have the same number!

can anyone help please?

Thanks in advance

Tony
 

Excel Facts

Excel Can Read to You
Customize Quick Access Toolbar. From All Commands, add Speak Cells or Speak Cells on Enter to QAT. Select cells. Press Speak Cells.

milesUK

Active Member
Joined
Jan 5, 2003
Messages
388
This might be what you are after. It assumes that the names in column A are unique.
Excel Workbook
ABCD
1bob1bob1
2jim2jim2
3sam3sam3
4paulno matchbob1
5jim2
6sam3
7bob1
8jim2
9sam3
10bob1
11jim2
12sam3
13peteno match
Sheet1
Excel 2007
Cell Formulas
RangeFormula
B1=IF(NOT(ISNA(VLOOKUP(A1,C:C,1,FALSE))),ROW(),"---")
D1=IF(NOT(ISNA(VLOOKUP(C1,A:B,2,FALSE))),VLOOKUP(C1,A:B,2,FALSE),"no match")
 

Forum statistics

Threads
1,141,849
Messages
5,708,965
Members
421,601
Latest member
Garlo

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Top