Alternative when you hit the substitute nesting limit

koltregaskes

New Member
Joined
Feb 8, 2005
Messages
15
I am trying to make user friendly names into database friendly names. I have a list of 2000+ field names that I've been trying to cut down to a format I can use for our database. For example:

"Drawings Issued" >>> "DWG_ISSUED"
"Quote Received" >>> "QUOTE_RECEIVED"
"Project Manager" >>> "PM"
"Radio Planner" >>> "TXPLANNER"
"Detailed Design Drawings Uploaded" >>> "DDDWG_UPLOADED"
"Job Number Build" >>> "JOBNUM_BLD"
"Revisions Required" >>> "REV_REQUIRED"

I've been able to use SUBSTITUTE up until now but I've just hit the 64 nested limit. Is there an alternative to using the nested SUBSTITUTE formula? I was thinking I could use a VLOOKUP to lookup up the user friendly name and what the DB friendly substitute. So I could have another table where column A lists the user friendly text and column B lists the DB friendly text. For example:

Column A >>> Column B
Drawings >>> DWG
Issued >>> _ISSUED
Build >>> BLD
Number >>> NUM
Radio >>> TX

Is this possible? Please let me know if you need any more details from me?
 

Excel Facts

What did Pito Salas invent?
Pito Salas, working for Lotus, popularized what would become to be pivot tables. It was released as Lotus Improv in 1989.
I could use a VLOOKUP to lookup up the user friendly name and what the DB friendly substitute. So I could have another table where column A lists the user friendly text and column B lists the DB friendly text. For example:

Column A >>> Column B
Drawings >>> DWG
Issued >>> _ISSUED
Build >>> BLD
Number >>> NUM
Radio >>> TX

Is this possible?

That's very possible and a good solution. What do you need help with?
 
Upvote 0

Forum statistics

Threads
1,223,228
Messages
6,170,871
Members
452,363
Latest member
merico17

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