For either of the above, the macro is going to need to be altered, but I need some more clarification before being able to do that.
1. Your 'Product Code' screen shot shows the 'dictionary' items in columns A:B but your attempted code has it looking over at column AM. Please clarify where it actually is.
I fear my effort to make what I'm seeing easy to interpret backfired. hah.
The Product Categories are listed in a sheet titled 'Product Categories' and is inside the same workbook as the other sheet.
Product Categories
* | A | B |
Category | | |
Blog | | |
Brands/Defence Lab | | |
Fitness/Fitness Bags | | |
Fitness/Fitness Bags | | |
Fitness/Training Ropes | | |
Fitness/Agility Training | | |
Fitness/Agility Training | | |
Revgear/Kids | | |
Triumph United/Kids | | |
Brands/Revgear Thai Destroyer Series | | |
Triumph United/Heavy Bags | | |
Training Weapons/Training Knives | | |
Training Weapons/Training Guns | | |
Brands/Blueguns® | | |
Brands/Kali 4 Kids | | |
Fitness/Belts & Wraps | | |
Fitness/Belts & Wraps | | |
Fitness/Training Ropes | | |
Fitness/Strength Training | | |
Fitness/Resistance Training | | |
Fitness/Medicine Balls | | |
Fitness/Jump Ropes | | |
Fitness/DVDs & Books | | |
Fitness/Cutting Weight Suits | | |
Fitness/Cardio Kits | | |
Fitness | | |
Boxing/Gongs & Rings | | |
Fitness/Strength Training | | |
School & Gym Owners/Revgear University | | |
Kids/Junior Mouth Guards | | |
Kids/Combat Series | | |
HomeClearance | | |
HomeBestSellers | | |
HomeFeaturedProducts | | |
<tbody>
[TD="bgcolor: #cacaca, align: center"]1[/TD]
[TD="align: left"]ID[/TD]
[TD="bgcolor: #cacaca, align: center"]2[/TD]
[TD="align: left"]674[/TD]
[TD="bgcolor: #cacaca, align: center"]3[/TD]
[TD="align: left"]673[/TD]
[TD="bgcolor: #cacaca, align: center"]4[/TD]
[TD="align: left"]672[/TD]
[TD="bgcolor: #cacaca, align: center"]5[/TD]
[TD="align: left"]671[/TD]
[TD="bgcolor: #cacaca, align: center"]6[/TD]
[TD="align: left"]670[/TD]
[TD="bgcolor: #cacaca, align: center"]7[/TD]
[TD="align: left"]669[/TD]
[TD="bgcolor: #cacaca, align: center"]8[/TD]
[TD="align: left"]668[/TD]
[TD="bgcolor: #cacaca, align: center"]9[/TD]
[TD="align: left"]667[/TD]
[TD="bgcolor: #cacaca, align: center"]10[/TD]
[TD="align: left"]666[/TD]
[TD="bgcolor: #cacaca, align: center"]11[/TD]
[TD="align: left"]665[/TD]
[TD="bgcolor: #cacaca, align: center"]12[/TD]
[TD="align: left"]664[/TD]
[TD="bgcolor: #cacaca, align: center"]13[/TD]
[TD="align: left"]663[/TD]
[TD="bgcolor: #cacaca, align: center"]14[/TD]
[TD="align: left"]662[/TD]
[TD="bgcolor: #cacaca, align: center"]15[/TD]
[TD="align: left"]661[/TD]
[TD="bgcolor: #cacaca, align: center"]16[/TD]
[TD="align: left"]660[/TD]
[TD="bgcolor: #cacaca, align: center"]17[/TD]
[TD="align: left"]659[/TD]
[TD="bgcolor: #cacaca, align: center"]18[/TD]
[TD="align: left"]658[/TD]
[TD="bgcolor: #cacaca, align: center"]19[/TD]
[TD="align: left"]657[/TD]
[TD="bgcolor: #cacaca, align: center"]20[/TD]
[TD="align: left"]656[/TD]
[TD="bgcolor: #cacaca, align: center"]21[/TD]
[TD="align: left"]655[/TD]
[TD="bgcolor: #cacaca, align: center"]22[/TD]
[TD="align: left"]654[/TD]
[TD="bgcolor: #cacaca, align: center"]23[/TD]
[TD="align: left"]653[/TD]
[TD="bgcolor: #cacaca, align: center"]24[/TD]
[TD="align: left"]651[/TD]
[TD="bgcolor: #cacaca, align: center"]25[/TD]
[TD="align: left"]650[/TD]
[TD="bgcolor: #cacaca, align: center"]26[/TD]
[TD="align: left"]649[/TD]
[TD="bgcolor: #cacaca, align: center"]27[/TD]
[TD="align: left"]648[/TD]
[TD="bgcolor: #cacaca, align: center"]28[/TD]
[TD="align: left"]647[/TD]
[TD="bgcolor: #cacaca, align: center"]29[/TD]
[TD="align: left"]646[/TD]
[TD="bgcolor: #cacaca, align: center"]30[/TD]
[TD="align: left"]645[/TD]
[TD="bgcolor: #cacaca, align: center"]31[/TD]
[TD="align: left"]644[/TD]
[TD="bgcolor: #cacaca, align: center"]32[/TD]
[TD="align: left"]643[/TD]
[TD="bgcolor: #cacaca, align: center"]33[/TD]
[TD="align: left"]642[/TD]
[TD="bgcolor: #cacaca, align: center"]34[/TD]
[TD="align: left"]641[/TD]
[TD="bgcolor: #cacaca, align: center"]35[/TD]
[TD="align: left"]640[/TD]
</tbody>
Excel tables to the web >> Excel Jeanie HTML 4
2. The data to be 'translated' has changed from being delimited by semicolons to being delimited by commas. This is causing one of the issues. Some of those values are being interpreted by Excel as Text and some as Numbers. If you look at the posted screen shot, the visible values from row 67 and down all have, starting from the right all groups of 3 digits separated by commas (except for possibly the very left hand group). As I have been processing them they are interpreted as numbers, causing the problem.
so ..
- do they have to be delimited by commas? Is it possible/easy for you to revert to semicolon delimiters?
- how is that column (C in your screen shot) formatted? Text, General, Number etc?
- what actual column is that data in? C as per your screen shot or AM as per your code?
- results to column D or column AN?
I didn't catch the "," ";" dilemma, sorry about that! It's been fixed in this revision.
Both columns in "Product Categories" are formatted as
General and both columns in "Active Products-Options" are formatted as
Text.
I'm not sure why a * is showing up in column AN (Translation) on this screen capture, it is not present on the worksheet.
As you can see, I fumbled things in the earlier post trying to make it easier to interpret. These screen captures are exactly as it should be structured. Category ID's to be translated in column AM and I'd like the translations to be placed in column AN.
Active Products-Options
* | AM | AN |
| | |
* | | |
* | | |
* | | |
* | | |
* | | |
* | | |
* | | |
* | | |
* | | |
* | | |
* | | |
* | | |
* | | |
* | | |
* | | |
* | | |
* | | |
* | | |
* | | |
* | | |
* | | |
* | | |
* | | |
* | | |
* | | |
* | | |
* | | |
* | | |
<tbody>
[TD="bgcolor: #cacaca, align: center"]1[/TD]
[TD="align: left"]Category[/TD]
[TD="align: left"]Translation[/TD]
[TD="bgcolor: #cacaca, align: center"]7855[/TD]
[TD="align: left"]646;620;654;493;539;295[/TD]
[TD="bgcolor: #cacaca, align: center"]7889[/TD]
[TD="align: left"]646;656;233[/TD]
[TD="bgcolor: #cacaca, align: center"]7901[/TD]
[TD="align: left"]646;656;233;235[/TD]
[TD="bgcolor: #cacaca, align: center"]7913[/TD]
[TD="align: left"]646;656;657;670;233[/TD]
[TD="bgcolor: #cacaca, align: center"]7926[/TD]
[TD="align: left"]646;656;665;296;499[/TD]
[TD="bgcolor: #cacaca, align: center"]7932[/TD]
[TD="align: left"]646;670;657;656;233[/TD]
[TD="bgcolor: #cacaca, align: center"]7935[/TD]
[TD="align: left"]649;615;76;394[/TD]
[TD="bgcolor: #cacaca, align: center"]7954[/TD]
[TD="align: left"]650;170;614[/TD]
[TD="bgcolor: #cacaca, align: center"]7955[/TD]
[TD="align: left"]650;614;76;573;572[/TD]
[TD="bgcolor: #cacaca, align: center"]7958[/TD]
[TD="align: left"]653;67;77;116;294;490;536;589[/TD]
[TD="bgcolor: #cacaca, align: center"]7963[/TD]
[TD="align: left"]655;465;181;261;497[/TD]
[TD="bgcolor: #cacaca, align: center"]7968[/TD]
[TD="align: left"]658;659[/TD]
[TD="bgcolor: #cacaca, align: center"]7969[/TD]
[TD="align: left"]658;659[/TD]
[TD="bgcolor: #cacaca, align: center"]7981[/TD]
[TD="align: left"]658;659[/TD]
[TD="bgcolor: #cacaca, align: center"]7999[/TD]
[TD="align: left"]658;659;669;669;656[/TD]
[TD="bgcolor: #cacaca, align: center"]8011[/TD]
[TD="align: left"]659;657;668;669;656[/TD]
[TD="bgcolor: #cacaca, align: center"]8040[/TD]
[TD="align: left"]660;503;549;599;96[/TD]
[TD="bgcolor: #cacaca, align: center"]8057[/TD]
[TD="align: left"]660;508;667[/TD]
[TD="bgcolor: #cacaca, align: center"]8058[/TD]
[TD="align: left"]661;662;188;485;532;586;71;607[/TD]
[TD="bgcolor: #cacaca, align: center"]8059[/TD]
[TD="align: left"]661;662;188;485;532;586;71;607[/TD]
[TD="bgcolor: #cacaca, align: center"]8060[/TD]
[TD="align: left"]661;662;71;188;485;532;586;607[/TD]
[TD="bgcolor: #cacaca, align: center"]8061[/TD]
[TD="align: left"]661;662;71;188;485;532;586;607[/TD]
[TD="bgcolor: #cacaca, align: center"]8064[/TD]
[TD="align: left"]661;662;71;188;485;532;586;607[/TD]
[TD="bgcolor: #cacaca, align: center"]8067[/TD]
[TD="align: left"]661;662;71;607;188;485;532;586[/TD]
[TD="bgcolor: #cacaca, align: center"]8068[/TD]
[TD="align: left"]661;662;71;607;188;485;532;586[/TD]
[TD="bgcolor: #cacaca, align: center"]8077[/TD]
[TD="align: left"]662;71;188;485;532;586;607[/TD]
[TD="bgcolor: #cacaca, align: center"]8078[/TD]
[TD="align: left"]662;71;188;485;532;586;607[/TD]
[TD="bgcolor: #cacaca, align: center"]8079[/TD]
[TD="align: left"]664[/TD]
</tbody>
Excel tables to the web >> Excel Jeanie HTML 4
Finally, for testing, can you give me samples (about the number of rows you gave last time is fine) where the values in the dictionary actually also appear in the data to be translated - or at least most of them. In your last samples the dictionary IDs were 55-69 but the data to be translated had almost none of those numbers in it.
Yes, definitely, I can see how that may be helpful.