the_observer
Member
Hi all,
This is not a simple question and is definitely high above my limited knowledge of excel so i need your help if you may ...
I have an excel (attached) with 4 columns.
Column A has product names and Column B has their prices.
Column C has other product names and Column D has their prices.
(Actually they come from 2 different excels but i copy paste them in one excel so it will be easier for me to understand maybe).
My question is rather complicated for me (i hope it is not so much complicated for your eyes) so i split it in three parts:
1. I would like to compare each cell of column A with all cells of column B .Both cells are text (product names).
2. When a cell of columnA is equal or similar enough (e.g. first 30 characters) with a cell of columnC (which means the product is the same),i would like to export (to a new excel maybe) the product name along with the price difference (from the columns B and D that have the prices) and continue comparing with the next product of column C.
3. This has to be keep going on until all cells of column A have been compared with all cells of column C.
I have some thoughs on this riddle:
-Can excel accomplish this or should i use VBA or visual basic ?
-In step 2 is there a better way to make excel understand that the products are the same when they do not have exact names than the one i thought (by comparing the 30 first characters)?
-There might be "-" or spaces in the product names in the 2 compared columns but i guess this is the easier part since i could batch replace them.The 3 last products of the Excel i have attached are made this way for test purposes.
Let's hope i explained my problem well enough.
Now,do you think it can be done in excel ?
If yes ,i would be much obliged for any suggestions.
Thank you for your time reading this ,
Regards.
This is not a simple question and is definitely high above my limited knowledge of excel so i need your help if you may ...
I have an excel (attached) with 4 columns.
Column A has product names and Column B has their prices.
Column C has other product names and Column D has their prices.
(Actually they come from 2 different excels but i copy paste them in one excel so it will be easier for me to understand maybe).
My question is rather complicated for me (i hope it is not so much complicated for your eyes) so i split it in three parts:
1. I would like to compare each cell of column A with all cells of column B .Both cells are text (product names).
2. When a cell of columnA is equal or similar enough (e.g. first 30 characters) with a cell of columnC (which means the product is the same),i would like to export (to a new excel maybe) the product name along with the price difference (from the columns B and D that have the prices) and continue comparing with the next product of column C.
3. This has to be keep going on until all cells of column A have been compared with all cells of column C.
I have some thoughs on this riddle:
-Can excel accomplish this or should i use VBA or visual basic ?
-In step 2 is there a better way to make excel understand that the products are the same when they do not have exact names than the one i thought (by comparing the 30 first characters)?
-There might be "-" or spaces in the product names in the 2 compared columns but i guess this is the easier part since i could batch replace them.The 3 last products of the Excel i have attached are made this way for test purposes.
Let's hope i explained my problem well enough.
Now,do you think it can be done in excel ?
If yes ,i would be much obliged for any suggestions.
Thank you for your time reading this ,
Regards.