To simply combine them you can place them all together like this:

=SUBSTITUTE(SUBSTITUTE(SUBSTITUTE(SUBSTITUTE(SUBSTITUTE(SUBSTITUTE(SUBSTITUTE(A2,"_AB","_"),"_CD","_"),"_EF","_"),"_40K",""),"_60K",""),"_S_","_"),"_","-")

(note that this may pass the older Excel limit of 7 nested statements. I'm testing in Excel 2010


Another way to do it is by utilizing Left and Right functions.

This assumes that the changing data on the end is always present and is 8 characters long

=SUBSTITUTE(LEFT(A2,LEN(A2)-8),"_","-")

This will achieve the same resulting string


If the string doesn't always end with 8 characters that you want to strip off you can search for the "_S" and get the current location. Try this:

=SUBSTITUTE(LEFT(A2,FIND("_S",A2,1)),"_","-")
Answer from Automate This on Stack Overflow
Discussions

Multiple SUBSTITUTE Functions
Note: This feature may not be available in some browsers. Live Online Excel Training for Your Team from MrExcel. Bring MrExcel to your people. Two hours. High-impact. Zero travel. Click here for details. If you would like to post, please check out the MrExcel Message Board FAQ and register here. If you forgot your password, you can reset your password. ... Is there a way to structure Multiple SUBSTITUTE ... More on mrexcel.com
🌐 mrexcel.com
16
0
September 11, 2008
Using substitute to remove multiple characters at the same time
Assuming you are using Excel online or Excel 365 =REDUCE(A2,D2:D6,LAMBDA(x,y, SUBSTITUTE(x,y, ""))) Where A2 is your input cell and D2:D6 is a range holding all the characters you wish to remove. More on reddit.com
🌐 r/excel
24
6
June 28, 2024
VBA Excel substitute function for multiple conditions at once - Code Review Stack Exchange
I use the SUBSTITUTE() function in my VBA code. In Excel formula, we can nest it as shown in the thread below: https://stackoverflow.com/questions/22313965/how-can-i-combine-multiple-nested-substit... More on codereview.stackexchange.com
🌐 codereview.stackexchange.com
February 11, 2021
SUBSTITUTE formula using two arrays for readability instead of multiple nested SUBSTITUTEs, iterated only once per input
I may be misunderstanding your request, but does this work =FILTER('Rules'!$C$2:$C$20,ISNUMBER(XMATCH('Rules'!$A$2:$A$20&"*",B3,2)),"What is this?") You can change the text in the 3rd argument of FILTER to handle the situation when all values in Rules column A are not at the start of the value in column B of your output sheet. Note that this will give a #SPILL! error if there is more than on possible match from the Rules tab. I didn't include any handling for this as it may be a trigger for you that you need to revise the values in the Rules tab. A possible example would be if you have the following in your Rules tab TRANSFER TO SMITH J TRANSFER TO SMITH JOHN and B3 is say TRANSFER TO SMITH J More on reddit.com
🌐 r/excel
12
1
August 29, 2023
🌐
Excel Champs
excelchamps.com › excel champs › excel formulas list › how to substitute multiple values (nested) in excel
How to Substitute Multiple Values (Nested) in Excel (Formula)
March 13, 2023 - To replace more than one value in a cell, nest SUBSTITUTE inside itself — each function works on the result of the one before it: =SUBSTITUTE(SUBSTITUTE(SUBSTITUTE(A1,"One","1"),"Two","2"),"Three","3"). Build it from the inside out, so the ...
🌐
MrExcel
mrexcel.com › forums › question forums › excel questions
Multiple SUBSTITUTE Functions | MrExcel Message Board
September 11, 2008 - =SUBSTITUTE(B26,"Amount",$H$8) ...however I want to include "Name" (Which is linked to H7) as well. Andy ... Customize Quick Access Toolbar. From All Commands, add Speak Cells or Speak Cells on Enter to QAT. Select cells. Press Speak Cells. ... Brilliant, thanks! ... Brilliant, thanks! Click to expand... I need some help PLEASE?!?!?!?! I did some excel training what seems like over ten years ago, and boy have things changed a little I am trying to make a recipe sort of sheet for my daughters, but im stuck.
🌐
Exceljet
exceljet.net › home › formulas › find and replace multiple values
Find and replace multiple values - Excel formula | Exceljet
October 29, 2025 - To find and replace multiple values (i.e., perform a batch replace all operation), you can use the REDUCE function with a custom LAMBDA function to perform multiple substitutions in a single operation.
🌐
Ablebits
ablebits.com › ablebits blog › excel › find & replace › using excel replace and substitute functions - formula examples
Using Excel REPLACE and SUBSTITUTE functions - formula examples
March 21, 2023 - To achieve this, you can write 3 different SUBSTITUTE formulas: ... Notice that we've added a space at the end of each new_text argument for better readability. To learn other ways to replace multiple values at a time, please see How to do mass find and replace in Excel.
🌐
Microsoft Fabric Community
community.fabric.microsoft.com › t5 › Desktop › substitute-multiple-values › m-p › 50217
Solved: substitute multiple values - Microsoft Fabric Community
July 20, 2016 - Solved: Hi I would like to substistute multiple values with one value, In Excel it can be done by =Substitute(Cell reference, {
Find elsewhere
🌐
Ablebits
ablebits.com › ablebits blog › excel › find & replace › excel: find and replace multiple values at once
Excel: find and replace multiple values at once
June 26, 2026 - And then, put the below formula in B2 and press Enter: =SUBSTITUTE(SUBSTITUTE(SUBSTITUTE(A2:A10, D2, E2), D3, E3), D4, E4) …and you will have all the replacements done at once: Please note, the above approach only works in Excel 365 that supports ...
🌐
Automate Excel
automateexcel.com › home › substitute multiple values – excel & google sheets
Substitute Multiple Values - Excel & Google Sheets - Automate Excel
February 8, 2023 - To find and replace multiple values in Excel, use the SUBSTITUTE function within a nested formula:
🌐
Statology
statology.org › home › excel: how to substitute multiple values in cell
Excel: How to Substitute Multiple Values in Cell
June 2, 2023 - Note that in this example we substitute two values in a cell, but you can create as many nested SUBSTITUTE functions as you’d like to substitute as many values as you’d like. The following example shows how to use this formula in practice. Suppose we have the following dataset in Excel that ...
🌐
ExtendOffice
extendoffice.com › excel tips › excel formulas › find and replace multiple values in excel
Find and replace multiple values in Excel
October 22, 2024 - The basic pattern of the above formula is the usage of the SUBSTITUTE function: =SUBSTITUTE (text, old_text, new_text, [instance]) Then embed the INDEX function into the SUBSTITUTE function, the INDEX function is used to retrieve both the "find" text and the "replace" text, this will run the ...
🌐
ElyxAI
getelyxai.com › home › how-to guides › use substitute function
How to Use SUBSTITUTE Function in Excel - Practical Guide | ElyxAI
Chain multiple SUBSTITUTE functions to replace several different text values in one formula: =SUBSTITUTE(SUBSTITUTE(A1,"old1","new1"),"old2","new2") ✓SUBSTITUTE is case-sensitive; "Excel" and "excel" are treated as different values.
🌐
Excel-Pratique.com
excel-pratique.com › en › tips › replacements-array
Multiple Replacements with Excel
To simplify its usage, you can ... easily: ... =LAMBDA(text,replacement_array,REDUCE(text,SEQUENCE(ROWS(replacement_array)),LAMBDA(t,n,SUBSTITUTE(t,INDEX(replacement_array,n,1),INDEX(replacement_array,n,2)))))...
🌐
ElyxAI
getelyxai.com › home › how-to guides › how to use substitute for multiple replacements in excel
How to How to Use SUBSTITUTE for Multiple Replacements in Excel in Excel - Practical Guide | ElyxAI
Place the text requiring replacements ... to appear, starting from row 2 or your first data row. ... Type the formula: =SUBSTITUTE(SUBSTITUTE(SUBSTITUTE(A2,"old1","new1"),"old2","new2"),"old3","new3")....
🌐
ExcelDemy
exceldemy.com › home › excel formulas › how to substitute multiple characters in excel: 7 methods
How to Substitute Multiple Characters in Excel: 7 Methods - ExcelDemy
June 16, 2024 - We want to substitute “Word” with “Excel”. We use the SUBSTITUTE function to do so. ... Press Enter. ... Repeat the previous steps for the other two criteria. You will get values for all subsequent fields. Note. The SUBSTITUTE function is case-sensitive. As shown below, the values could not be found for words written in lowercase. So, there was no substitution. Below, we will substitute the three codes with full names. ... Press Enter. ... Paste the formula in the other cells.
🌐
Microsoft Support
support.microsoft.com › en-us › office › substitute-function-6434944e-a904-4336-a9b0-1e58df3bc332
SUBSTITUTE function | Microsoft Support
Text Required. The text or the reference to a cell containing text for which you want to substitute characters. Old_text Required. The text you want to replace. New_text Required. The text you want to replace old_text with. Instance_num Optional. Specifies which occurrence of old_text you want to replace with new_text.
🌐
Excel Forum
excelforum.com › excel-formulas-and-functions › 1409369-substitute-for-multiple-values.html
Substitute for Multiple Values [SOLVED]
July 24, 2023 - Excel 2019 I need to substitute 0 (zero) for the following numbers in a cell 1,2,3,4,5,6,7,8,9 (A1 below) Example A1 - "1234G45678" Desire A2 - "0000G00000" I can't nest the substitute function, as I need to minimize the formula character count. Suggestions Please....
🌐
ExcelTrick
exceltrick.com › home › excel substitute function – how to use
Excel SUBSTITUTE Function – How to Use
November 8, 2023 - Here, Excel will substitute all instances of "1" and return "Floor 3, Room 3". ... This is the same formula we used in the previous example, but with the nth_instance argument supplied as 2. The nth_instance­ argument will restrict the substitution to only the specified instance, which in our example is the 2nd instance of "1".