Anyone know about macros is Excel? I have some data that has to be put together every day, here's an example:
Column
A............B............C............D............E
B-5603............................................"If" Macro
B-2234............................................"If" Macro
C-2934............................................"If" Macro
The "If" Macros is: =IF(SUMPRODUCT(ISNUMBER(SEARCH(B2,A1:A6))+0)>0,B2,"")
So, if I put a list of part numbers in column B, and one of them matches a part number in column A, that number is supposed to show up in column E. This works, but it is not very accurate, because it is picking up parts of numbers and putting them in E. For example, the first part number is B-5603, if a B-5603 is in the B column, it will show up in the E column. But if there is a B-560, that will also show up in the E column. I need it to be exact, and not pick up just parts of a number. Any suggestions?
Column
A............B............C............D............E
B-5603............................................"If" Macro
B-2234............................................"If" Macro
C-2934............................................"If" Macro
The "If" Macros is: =IF(SUMPRODUCT(ISNUMBER(SEARCH(B2,A1:A6))+0)>0,B2,"")
So, if I put a list of part numbers in column B, and one of them matches a part number in column A, that number is supposed to show up in column E. This works, but it is not very accurate, because it is picking up parts of numbers and putting them in E. For example, the first part number is B-5603, if a B-5603 is in the B column, it will show up in the E column. But if there is a B-560, that will also show up in the E column. I need it to be exact, and not pick up just parts of a number. Any suggestions?