Hi all,
This is one of those cases where in a language like PHP, I'd get how to try and achieve what I want, but not quite in Excel. Here's the challenge I have:
[TABLE="width: 600"]
<tbody>[TR]
[TD]Abbreviations[/TD]
[TD]Category Names[/TD]
[/TR]
[TR]
[TD]TDS[/TD]
[TD]Tile Depot Store[/TD]
[/TR]
[TR]
[TD]PT[/TD]
[TD]Porcelain[/TD]
[/TR]
[TR]
[TD]WP[/TD]
[TD]Wood Porcelain[/TD]
[/TR]
[TR]
[TD]MP[/TD]
[TD]Metallic Porcelain[/TD]
[/TR]
[TR]
[TD]PM[/TD]
[TD]Porcelain Mosaic[/TD]
[/TR]
</tbody>[/TABLE]
From that, I'll build a replacement mechanism (like an explode(), implode(), and sprintf() in PHP), where I define a pattern of abbreviations which are delimited (in this case by "/"):
[TABLE="width: 500"]
<tbody>[TR]
[TD]Category Structure[/TD]
[TD]Category Output[/TD]
[/TR]
[TR]
[TD]TDS/PT[/TD]
[TD]The Tile Depot/Porcelain[/TD]
[/TR]
[TR]
[TD]TDS/MP[/TD]
[TD]The Tile Depot/Metallic Porcelain[/TD]
[/TR]
[TR]
[TD]PM/MP/PT[/TD]
[TD]Porcelain Mosaic/Metallic Porcelain/Porcelain[/TD]
[/TR]
</tbody>[/TABLE]
and so on.
I've tried a few things and gotten some pieces of the puzzle, but I'm still struggling with comparing the category structure and generating the output based on the abbreviations and associated names. Here's what I know so far:
I know I can use JOIN to take a column of values and delimit them. For example,
yields
Tile Depot Store/Porcelain/Wood Porcelain/Metallic Porcelain/Porcelain Mosaic
I also know I can use some form of INDEX and MATCH here, whereby, assuming the two datasets are one sheet, this:
yields "Tile Depot Store".
What I need to figure out is how to combine these two methods properly. (Or, as is often the case, figure out if there's a better way to think about this).
As always with this lovely group of people, thank you for taking a look and considering this. I appreciate any and all help very much.
This is one of those cases where in a language like PHP, I'd get how to try and achieve what I want, but not quite in Excel. Here's the challenge I have:
[TABLE="width: 600"]
<tbody>[TR]
[TD]Abbreviations[/TD]
[TD]Category Names[/TD]
[/TR]
[TR]
[TD]TDS[/TD]
[TD]Tile Depot Store[/TD]
[/TR]
[TR]
[TD]PT[/TD]
[TD]Porcelain[/TD]
[/TR]
[TR]
[TD]WP[/TD]
[TD]Wood Porcelain[/TD]
[/TR]
[TR]
[TD]MP[/TD]
[TD]Metallic Porcelain[/TD]
[/TR]
[TR]
[TD]PM[/TD]
[TD]Porcelain Mosaic[/TD]
[/TR]
</tbody>[/TABLE]
From that, I'll build a replacement mechanism (like an explode(), implode(), and sprintf() in PHP), where I define a pattern of abbreviations which are delimited (in this case by "/"):
[TABLE="width: 500"]
<tbody>[TR]
[TD]Category Structure[/TD]
[TD]Category Output[/TD]
[/TR]
[TR]
[TD]TDS/PT[/TD]
[TD]The Tile Depot/Porcelain[/TD]
[/TR]
[TR]
[TD]TDS/MP[/TD]
[TD]The Tile Depot/Metallic Porcelain[/TD]
[/TR]
[TR]
[TD]PM/MP/PT[/TD]
[TD]Porcelain Mosaic/Metallic Porcelain/Porcelain[/TD]
[/TR]
</tbody>[/TABLE]
and so on.
I've tried a few things and gotten some pieces of the puzzle, but I'm still struggling with comparing the category structure and generating the output based on the abbreviations and associated names. Here's what I know so far:
I know I can use JOIN to take a column of values and delimit them. For example,
Code:
=JOIN("/",B2:B6)
Tile Depot Store/Porcelain/Wood Porcelain/Metallic Porcelain/Porcelain Mosaic
I also know I can use some form of INDEX and MATCH here, whereby, assuming the two datasets are one sheet, this:
Code:
=INDEX(Category_Names,MATCH(LEFT(A8,FIND("/",A8)-1),Category_Abbrevs,0))
What I need to figure out is how to combine these two methods properly. (Or, as is often the case, figure out if there's a better way to think about this).
As always with this lovely group of people, thank you for taking a look and considering this. I appreciate any and all help very much.
Last edited: