• We’re currently investigating an issue related to the forum theme and styling that is impacting page layout and visual formatting. The problem has been identified, and we are actively working on a resolution. There is no impact to user data or functionality, this is strictly a front-end display issue. We’ll post an update once the fix has been deployed. Thanks for your patience while we get this sorted.

Excel : update attribute name with abbreviations from another worksheet

radhak

Senior member
So I have this in a column in one worksheet

Account Product Code
Account Status Code

Account Status Description



and the list of abbreviations for each word in another worksheet (two separate columns)
eg:

Account..........acct
Product...........prod
Code..............cd
Status............stat
Description......desc

and I want to generate a column from the first column that looks like:

acct_prod_cd
acct_stat_cd
acct_stat_desc


This would be simple using a database and something like Java. But is it possible to do this in Excel macros?
 
You can do just about anything with VB macros. That said, I try to only use VB macros for things that can't be accomplished using cell formulas. Although the resulting cell formula will be long and (perhaps to some) unappealing, I'd look at using nested SUBSTITUTE functions (acct for Account, prod for Product, cd for Code, stat for Status, desc for Description, and _ for " ").
 
Back
Top