Hi guys,
<?xml:namespace prefix = o ns = "urn:schemas-microsoft-com
ffice
ffice" /><o
></o
>
I have two ranges of numbers stored as text on two different sheets.
The first one is from product code and the second is from product category.
The problem is both ranges are of different lengths and I have to find out if a product from the right is part of a particular product category. Even if the length is different the first digits are indicative of the belonging of a code. For example 1234 and 12345 are “family”-their first 4 digits match.
Just to give you an example of what is desired:
<o
></o
>
Category____ Code
2200 ________22002
2323________ 232347
<o
></o
>
So, the loop should do the following:
<o
></o
>
Any ideas would be greatly appreciated.
<?xml:namespace prefix = o ns = "urn:schemas-microsoft-com
I have two ranges of numbers stored as text on two different sheets.
The first one is from product code and the second is from product category.
The problem is both ranges are of different lengths and I have to find out if a product from the right is part of a particular product category. Even if the length is different the first digits are indicative of the belonging of a code. For example 1234 and 12345 are “family”-their first 4 digits match.
Just to give you an example of what is desired:
<o
Category____ Code
2200 ________22002
2323________ 232347
<o
So, the loop should do the following:
- Compare the first string from the “Category” column to each and every entry on the right, if a match exists (we have no match here for 2200) write “ok” next to it.
- Next trim one digit from the right from every string in the “Code” column.
- Compare same first string from the “Category” column to each trimmed string from “Code” column (here we should have a match 2200=2200)
- Write “ok” next to it
<o
Any ideas would be greatly appreciated.