How to replace text that repeats multiple times

Flavien

Board Regular
Joined
Jan 8, 2023
Messages
78
Office Version
  1. 365
Platform
  1. Windows
Hello,

Here's the type of formula I use. The words "NOMINAL_A"; "Appareil_A" are named cells.

I have to constantly add new conditions (because I forget some) and I have to redo Ctrl+H each time to redo the whole alphabet. Is there a code that allows me to change the combination "_B" as many times as there are letters? and thus generate a list with the 26 letters of the alphabet?

Thanks a lot for your help
Excel Formula:
[TABLE width="303pt"]
[TR]
[td width="404px"]SI(NOMINAL_B="";"";SI(Appareil_B="Tampon fileté";D1;SI(Appareil_B="Bague filetée";D1;SI(Appareil_B="Comparateur";"Comparateur";SI(Appareil_B="Keyence";"Programme N°"&D1;SI(Appareil_B="Micromètre";"Micromètre";SI(Appareil_B="Micro Pack";"Micro Pack";SI(Appareil_B="Pied à coulisse";"Pied à coulisse";Appareil_B&" "&Symb_B&Mini_B&" = Go"&" / "&Appareil_B&" "&Symb_B&Maxi_B&" = No Go"))))))))[/td]
[/TR]
[/TABLE]
 

Excel Facts

Save Often
If you start asking yourself if now is a good time to save your Excel workbook, the answer is Yes
Please
  • Translate your formula to English (Excel Questions forum requires posting in English only), and
  • Post your formula in the given formula code tags at the top of the Reply window only, not trying to to also use a table.
It may also help if you give some sample data, explain what you want in relation to that particular sample data and give the expected results. A good way is to use XL2BB
(If you have trouble with XL2BB, review the "XL2BB Icons greyed out" link in the 'Known XL2BB issues' section near the top of the XL2BB Instructions page linked above.)
 
Upvote 0

Forum statistics

Threads
1,223,911
Messages
6,175,333
Members
452,636
Latest member
laura12345

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