Auto Find/Replace Multiples

caj1980

Board Regular
Joined
Oct 23, 2013
Messages
108
I have two lists. One is my source data. The second is the truncated version that I want the first list replaced with. I need a solution that will make this efficient and preferably automated as I don't want to have to follow a lengthy process every time I update the source data (typically daily).

This is being done as a result of the problem/solution in this thread:
https://www.mrexcel.com/forum/excel-questions/1020474-custom-list-length-limit.html#post4896913

Here are the two lists side by side.

ReadyReady
Project Initiation#Pause#Provide Inputs at Project Kick-offPI#P#Kick-off
Project Initiation#Pause#Research Impact AssessmentPI#P#Assess
Project Initiation#Pause#Verify Approved CutsheetPI#P#Cutsheet
Project Initiation#Pause#Hard Reserve PositionPI#P#Position
Project Initiation#In-Progress#Provide Inputs at Project Kick-offPI#IP#Kick-off
Project Initiation#In-Progress#Research Impact AssessmentPI#IP#Assessment
Project Initiation#In-Progress#Verify Approved CutsheetPI#IP#Cutsheet
Project Initiation#In-Progress#Hard Reserve PositionPI#IP#Position
Cabling Vendor Engagement#Pause#Create Vendor SOWVE#P#SOW
Cabling Vendor Engagement#Pause#Assist in Vendor Walk-ThruVE#P#Walk-Thru
Cabling Vendor Engagement#Pause#Analyze Bids from VendorsVE#P#Bids
Cabling Vendor Engagement#Pause#Vendor Selection and SupportVE#P#Select
Cabling Vendor Engagement#In-Progress#Create Vendor SOWVE#IP#SOW
Cabling Vendor Engagement#In-Progress#Assist in Vendor Walk-ThruVE#IP#Walk-Thru
Cabling Vendor Engagement#In-Progress#Analyze Bids from VendorsVE#IP#Bids
Cabling Vendor Engagement#In-Progress#Vendor Selection and SupportVE#IP#Select
Financial Vendor Approval#Pause#Cut TT to NSI Finance for PR and POVA#P#PR
Financial Vendor Approval#Pause#Approved PO to VendorVA#P#PO
Financial Vendor Approval#In-Progress#Cut TT to NSI Finance for PR and POVA#IP#PR
Financial Vendor Approval#In-Progress#Approved PO to VendorVA#IP#PO
Cabling Installation#Pause#Cabling - CM and Access RequestCI#P#Request
Cabling Installation#Pause#Verify Material ProcurementCI#P#Procure
Cabling Installation#Pause#Monitor Vendor Cable InstallationCI#P#Monitor
Cabling Installation#In-Progress#Cabling - CM and Access RequestCI#IP#Request
Cabling Installation#In-Progress#Verify Material ProcurementCI#IP#Procure
Cabling Installation#In-Progress#Monitor Vendor Cable InstallationCI#IP#Monitor
Rack Strider Workflow#Pause#Confirm Rack ArrivalSW#P#Arrival
Rack Strider Workflow#Pause#Final RSPC ValidationSW#P#Validate
Rack Strider Workflow#Pause#Scan Rack Into PositionSW#P#Scan
Rack Strider Workflow#Pause#Cut TT for Bolt Down & EnergizeSW#P#Energize
Rack Strider Workflow#Pause#Complete Strider WorkflowSW#P#Complete
Rack Strider Workflow#In-Progress#Confirm Rack ArrivalSW#IP#Arrival
Rack Strider Workflow#In-Progress#Final RSPC ValidationSW#IP#Validate
Rack Strider Workflow#In-Progress#Scan Rack Into PositionSW#IP#Scan
Rack Strider Workflow#In-Progress#Cut TT for Bolt Down & EnergizeSW#IP#Energize
Rack Strider Workflow#In-Progress#Complete Strider WorkflowSW#IP#Complete
Build & Troubleshoot#PauseBT#P
Build & Troubleshoot#In-ProgressBT#IP
Validation and Turn-Up#Pause#Final ValidationVT#P#Validate
Validation and Turn-Up#Pause#Turn-Up and NHOVT#P#Turn-Up
Validation and Turn-Up#In-Progress#Final ValidationVT#IP#Validate
Validation and Turn-Up#In-Progress#Turn-Up and NHOVT#IP#Turn-Up
Project Closure#Pause#Create Project Closure CMPC#P#Create
Project Closure#Pause#Rack Elevation & Take PicturesPC#P#Pics
Project Closure#Pause#Walk-Thru with DCOPC#P#PCF
Project Closure#Pause#NSI Manager sign-offPC#P#NSI Manager
Project Closure#Pause#Close Project Closure CM and ProjectPC#P#Close
Project Closure#In-Progress#Create Project Closure CMPC#IP#Create
Project Closure#In-Progress#Rack Elevation & Take PicturesPC#IP#Pics
Project Closure#In-Progress#Walk-Thru with DCOPC#IP#PCF
Project Closure#In-Progress#NSI Manager sign-offPC#IP#NSI Manager
Project Closure#In-Progress#Close Project Closure CM and ProjectPC#IP#Close
Project DoneProject Done

<tbody>
</tbody>
 
Last edited:

Excel Facts

Did you know Excel offers Filter by Selection?
Add the AutoFilter icon to the Quick Access Toolbar. Select a cell containing Apple, click AutoFilter, and you will get all rows with Apple
Sheet "Import" is the target of the Fin/Replace, specifically column E.
I note that you have also been asking about unmerging cells in another thread. Is this related? That is, does column E contain merged cells?
If so, will they be unmerged with values duplicated like you asked for in that other thread, before the Find/Replace is implemented?
 
Upvote 0
I note that you have also been asking about unmerging cells in another thread. Is this related? That is, does column E contain merged cells?
If so, will they be unmerged with values duplicated like you asked for in that other thread, before the Find/Replace is implemented?


No, the column that I need to find/replace does not contain merged cells. In my final doc it is actually column J. It is only column E in the sanitized version.
 
Upvote 0
Follow-up question. Assuming merged cells are not an issue, and all this shortening and Find/Replace is to get items sorted in the same order as the values in column A of 'Custom Lists', couldn't you ..

a) Forget about shortening and Find/Replace and Custom Lists
b) Put (yourself or by macro) a formula something like this in column F of 'Import' and copy down
F2: =MATCH(E2,'Custom Lists'!A$1:A$60,0)
c) Sort the data on 'Import' based on column F
 
Upvote 0
Follow-up question. Assuming merged cells are not an issue, and all this shortening and Find/Replace is to get items sorted in the same order as the values in column A of 'Custom Lists', couldn't you ..

a) Forget about shortening and Find/Replace and Custom Lists
b) Put (yourself or by macro) a formula something like this in column F of 'Import' and copy down
F2: =MATCH(E2,'Custom Lists'!A$1:A$60,0)
c) Sort the data on 'Import' based on column F




So that works and is certainly easier than find/replace. However, there is no logical definition of the Phase when it is converted to a number. I need the truncated text to display so that users of the document can still decipher the name of that phase. Am I missing something on how to sort by the numbers but display the labels? This is all happening in a Pivot table not in the Import sheet.
 
Upvote 0
This is all happening in a Pivot table not in the Import sheet.
It is a bit tricky when the goalposts keep moving. ;)



However, there is no logical definition of the Phase when it is converted to a number.
The phase (is that column E in the sanitized version?) isn't converted to a number, it is still there in its own column. A number is just placed in another column to do the sorting.

What about if you put this in the extra column instead?
=TEXT(MATCH(E2,'Custom Lists'!A$1:A$60,0),"00 ")&E2

Could you then use that in your Pivot Table so that the prefix number helps with the sorting but the column E text still appears.



... or if you do want the shorter text, try:

=TEXT(MATCH(E2,'Custom Lists'!A$1:A$60,0),"00 ")&VLOOKUP(E2,'Custom Lists'!A$1:B$60,2,0)
 
Upvote 0
It is a bit tricky when the goalposts keep moving. ;)



The phase (is that column E in the sanitized version?) isn't converted to a number, it is still there in its own column. A number is just placed in another column to do the sorting.

What about if you put this in the extra column instead?
=TEXT(MATCH(E2,'Custom Lists'!A$1:A$60,0),"00 ")&E2

Could you then use that in your Pivot Table so that the prefix number helps with the sorting but the column E text still appears.



... or if you do want the shorter text, try:

=TEXT(MATCH(E2,'Custom Lists'!A$1:A$60,0),"00 ")&VLOOKUP(E2,'Custom Lists'!A$1:B$60,2,0)




The TEXT MATCH & VLOOKUP worked great! I like how it puts a number in front of the trunkated label, adds more clarity to the data as not all labels are always present depending on the data set. Shows when there are steps in the process not currently active. Great solution... straight through the moving uprights!
 
Upvote 0

Forum statistics

Threads
1,215,328
Messages
6,124,299
Members
449,149
Latest member
mwdbActuary

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