Pointing to appropriate cells via formula with variables

roxdrob

New Member
Joined
Mar 2, 2017
Messages
29
[FONT=&quot]Full Disclosure: I posted a version of this on one of the other Excel Forums last night, but I haven't received an answer. I'm hoping you guys can help[/FONT]
[FONT=&quot]What I'm trying to do is create a product title for many different products based on type, color, and whether it has a charm or connector or both. I did a lot of concatenating to get the results I want. I've probably done everything the hard way, so I thought I would throw this out here and see if anyone could tell me if there is an easier way of doing things. The majority of the work is done in the first tab. The 2nd tab is basically a scratch sheet for me.[/FONT]
[FONT=&quot]I would also like to know: Is it possible to do a vlookup on a table that has a concatenated string and somehow in the formula tell it to change the place holder variable to the correct cell in the main sheet? [/FONT]
[FONT=&quot] Apparently I can't attach anything.[/FONT]
[FONT=&quot]Thanks in advance[/FONT]
 

Excel Facts

Move date out one month or year
Use =EDATE(A2,1) for one month later. Use EDATE(A2,12) for one year later.
Here is the formula I'm using:

="Women's Handmade "&D2&" Adjustable Stackable Statement Bracelet "&IF(AND(E2<>"",ISBLANK(F2))," with a "&PROPER(E2)&" Charm",IF(AND(ISBLANK(E2),F2<>"")," with a "&PROPER(F2)&" Connector",IF(AND(ISBLANK(F2),ISBLANK(E2)),"",IF(E2<>""&F2<>""," with a "&PROPER(E2)&" Charm and a "&PROPER(F2)&" Connector",""))))

[TABLE="width: 1202"]
<colgroup><col><col><col><col><col></colgroup><tbody>[TR]
[TD]InventoryNr[/TD]
[TD]Color[/TD]
[TD]Charm[/TD]
[TD]Connector[/TD]
[TD]Title/Descripton[/TD]
[/TR]
[TR]
[TD]ADJ1[/TD]
[TD]Silver[/TD]
[TD][/TD]
[TD]Leaf[/TD]
[TD]Women's Handmade Silver Adjustable Stackable Statement Bracelet with a Leaf Connector[/TD]
[/TR]
[TR]
[TD]ADJ3[/TD]
[TD]Black & Blue[/TD]
[TD]Handcuffs[/TD]
[TD][/TD]
[TD]Women's Handmade Black & Blue Adjustable Stackable Statement Bracelet with a Handcuffs Charm[/TD]
[/TR]
[TR]
[TD]ADJ4[/TD]
[TD]White, Blue, Red & Silver[/TD]
[TD][/TD]
[TD][/TD]
[TD]Women's Handmade White, Blue, Red & Silver Adjustable Stackable Statement Bracelet [/TD]
[/TR]
[TR]
[TD]ADJ5[/TD]
[TD]Blue & Black[/TD]
[TD]Handcuffs[/TD]
[TD][/TD]
[TD]Women's Handmade Blue & Black Adjustable Stackable Statement Bracelet with a Handcuffs Charm[/TD]
[/TR]
[TR]
[TD]ADJ6[/TD]
[TD]Silver[/TD]
[TD]round "breathe"[/TD]
[TD]filigree[/TD]
[TD]Women's Handmade Silver Adjustable Stackable Statement Bracelet with a Round "Breathe" Charm and a Filigree Connector[/TD]
[/TR]
[TR]
[TD]ADJ7[/TD]
[TD]Silver[/TD]
[TD][/TD]
[TD]skull[/TD]
[TD]Women's Handmade Silver Adjustable Stackable Statement Bracelet with a Skull Connector[/TD]
[/TR]
[TR]
[TD]ADJ8[/TD]
[TD]Aqua[/TD]
[TD] "Best Friends" Set[/TD]
[TD][/TD]
[TD]Women's Handmade Aqua Adjustable Stackable Statement Bracelet with a "Best Friends" Set Charm[/TD]
[/TR]
[TR]
[TD]ADJ9[/TD]
[TD]Silver[/TD]
[TD]Tiny Heart[/TD]
[TD][/TD]
[TD]Women's Handmade Silver Adjustable Stackable Statement Bracelet with a Tiny Heart Charm[/TD]
[/TR]
[TR]
[TD]ANK2136[/TD]
[TD]Coral[/TD]
[TD][/TD]
[TD][/TD]
[TD]Women's Handmade Coral Beaded Anklet[/TD]
[/TR]
[TR]
[TD]ANK2137[/TD]
[TD]Black[/TD]
[TD][/TD]
[TD][/TD]
[TD]Women's Handmade Black Beaded Anklet[/TD]
[/TR]
[TR]
[TD]ANK2138[/TD]
[TD]Blue[/TD]
[TD][/TD]
[TD][/TD]
[TD]Women's Handmade Blue Beaded Anklet
[/TD]
[/TR]
</tbody>[/TABLE]


[TABLE="width: 256"]
<colgroup><col width="64" span="4" style="width:48pt"> </colgroup><tbody>[TR]
[TD="width: 64"][/TD]
[TD="width: 64"]Color[/TD]
[TD="width: 64"]Charm[/TD]
[TD="width: 64"]Connector[/TD]
[/TR]
[TR]
[TD][/TD]
[TD]Black[/TD]
[TD]Panda[/TD]
[TD]Love[/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD="class: xl66"]Type[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD="class: xl67, width: 64"]ADJ[/TD]
[TD="colspan: 3"]Women's Handmade Love Adjustable Stackable Statement Bracelet [/TD]
[/TR]
[TR]
[TD="class: xl67, width: 64"]ANK[/TD]
[TD="colspan: 3"]Dunglebees Women's Handmade Beaded Anklet a Panda Charm and a Love Connector[/TD]
[/TR]
[TR]
[TD="class: xl67, width: 64"]APB[/TD]
[TD="colspan: 3"]Dunglebees Women's Handmade Anglican Prayer Beads Episcopal Rosary a Panda Charm and a Love Connector[/TD]
[/TR]
[TR]
[TD="class: xl67, width: 64"]BAE[/TD]
[TD="colspan: 3"]Dunglebees Women's Handmade Beaded Bracelet & Earring Set a Panda Charm and a Love Connector[/TD]
[/TR]
[TR]
[TD="class: xl67, width: 64"]BKM[/TD]
[TD="colspan: 3"]Dunglebees Women's Handmade Beaded Bookmark a Panda Charm and a Love Connector[/TD]
[/TR]
[TR]
[TD="class: xl67, width: 64"]BRC[/TD]
[TD="colspan: 3"]Dunglebees Women's Handmade Black Beaded Stackable Statement Bracelet with a Panda Charm and a Love Connector[/TD]
[/TR]
[TR]
[TD="class: xl67, width: 64"]CAR[/TD]
[TD="colspan: 3"]Dunglebees Women's Handmade Beaded Car Charm, Rearview Mirror Hangler, Car Accessory a Panda Charm and a Love Connector[/TD]
[/TR]
[TR]
[TD="class: xl67, width: 64"]EAR[/TD]
[TD="colspan: 3"]Dunglebees Women's Handmade Beaded Fishhook Pierced Earrings a Panda Charm and a Love Connector[/TD]
[/TR]
</tbody>[/TABLE]
 
Upvote 0
Full Disclosure: I posted a version of this on one of the other Excel Forums last night, but I haven't received an answer.

Can you please post a link to your thread on the other Forum as per the rules (see rule 13 here along with the explanation: Forum Rules).

Thanks
 
Upvote 0

Forum statistics

Threads
1,223,888
Messages
6,175,203
Members
452,617
Latest member
Narendra Babu D

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