![]() |
![]() |
|
|||||||
| Excel Questions All Excel/VBA questions - formulas, macros, pivot tables, general help, etc. Please post to this forum in English only. |
![]() |
|
|
Thread Tools | Display Modes |
|
|
#1 |
|
New Member
Join Date: Apr 2002
Posts: 2
|
I am trying to find a macro or add in of some sort that can solve the following problem. I need to compare data on one sheet (part numbers) to data on another sheet (part numbers and routing masters). I need to find the corresponding routing masters to about 800 part numbers. The problem is that there are about 5000 part numbers w/ routing masters on the second sheet. I need to find a way to duplicate the search and replace on a mass scale. In other words, I want to search for all 800 on the next sheet and then replace them with a bolded text or place an X in the column next to them or something of the like. I am currently plugging one at a time, so any suggestions would be appreciated. Thank you.
JB |
|
|
|
|
|
#2 | |
|
MrExcel MVP
Join Date: Mar 2002
Location: Chicago, IL USA
Posts: 2,042
|
Quote:
Use a lookup table. Assume that your master sheet is on Sheet 2, with part numbers in A1:A5000, and B1:B5000 holding the routing masters. Sheet 1, A1:A800 are the part numbers that need routing masters attached. On sheet1, cell B1, type the following =VLOOKUP(A1,Sheet2!$A$1:$B$5000,2,0) and copy down the column. Any ones on the short list missing from the master list will return a #NA error result. Bye, Jay |
|
|
|
|
|
|
#3 |
|
Board Regular
Join Date: Apr 2002
Location: Cape Town,South Africa
Posts: 234
|
I believe that the vlookup function are more suitable in this case my friend
|
|
|
|
|
|
#4 |
|
New Member
Join Date: Apr 2002
Posts: 2
|
Thank you very much for your help. It cut my work in half! I guess I need to brush up on my Excel.
JB |
|
|
|
![]() |
| Bookmarks |
| Thread Tools | |
| Display Modes | |
|
|