Creating custom path using excel cell values

ChuckFin

New Member
Joined
Aug 20, 2013
Messages
2
Extract the information from column A and Column B from one excel document and create another excel document and copy each row in the first 4 columns while placing the cell values from column A in the new document path structure.

Source: Document 1 Column A Column B dog


Column AColumn B
dog1234567789
cat1233434334
horse1223232322

<tbody>
</tbody>


Goal: Document 2

[TABLE="width: 919"]
<tbody>[TR]
[TD]Column A[/TD]
[TD]Column B[/TD]
[TD]Column C[/TD]
[TD]Column D[/TD]
[TD]Column E[/TD]
[/TR]
[TR]
[TD]animal/images/dog/type1/an_dog_color.png[/TD]
[TD]animal/images/dog/type1/an_dog_color2x.png
[/TD]
[TD]animal/images/dog/black/an_dog_black.png[/TD]
[TD]animal/images/dog/black/an_dog_black2x.png [/TD]
[TD]1234567789[/TD]
[/TR]
[TR]
[TD]animal/images/cat/type1/an_cat_color.png[/TD]
[TD]animal/images/cat/type1/an_cat_color2x.png
[/TD]
[TD]animal/images/dog/black/an_dog_black.png[/TD]
[TD]animal/images/dog/black/an_dog_black2x.png [/TD]
[TD]1233434334[/TD]
[/TR]
[TR]
[TD]animal/images/ horse /type1/an_ horse_color.png[/TD]
[TD]animal/images/ horse /type1/an_ horse_color2x.png[/TD]
[TD]animal/images/horse/black/an_horse_black.png[/TD]
[TD]animal/images/horse/black/an_horse_black2x.png[/TD]
[TD]1223232322[/TD]
[/TR]
</tbody>[/TABLE]


sample
Column A
dog
I want to take Column A from sheet 1 and create the following in the sheet
animal/images/[column A]/type/an_[ column A]_color.jpg
animal/images/[column A]/type/an_[ column A]_color2x.jpg
animal/images/[column A]/black/an_[ column A]_black.jpg
animal/images/[column A]/black/an_[ column A]_black2x.jpg

Please help?
Thanks
 

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top