Replacing.xlsx | ||||||||||
---|---|---|---|---|---|---|---|---|---|---|
A | B | C | D | E | F | G | H | |||
1 | Should read | Table for changes | ||||||||
2 | Course | Course | Old | New | ||||||
3 | Adv Dip Sci | Advanced Diploma Science | Adv | Advanced | Advanced Diploma Science | |||||
4 | As Deg Business | Associate Degree Business | Dip | Diploma | Associate Degree Business | |||||
5 | D Bus | Diploma Business | D | Diploma | Diploma Business | |||||
6 | Cer Maths | Certificate Maths | Cer | Certificate | Certificate Maths | |||||
7 | D Sci | Diploma Science | As | Associate | Diploma Sci | |||||
8 | Deg | Degree | ||||||||
9 | Bus | Business | ||||||||
10 | Sci | Science | ||||||||
Sheet1 |
Cell Formulas | ||
---|---|---|
Range | Formula | |
H3:H7 | H3 | =REDUCE(A3,Table1[Old],LAMBDA(a,v,SUBSTITUTE(a,v,OFFSET(v,0,1)))) |
This mainly works except for the cell in yellow. To get around replacing issues I've entered some of the old values with a trailing space. I was getting Businessiness before using the trailing space. There's probably an easy fix for this but it's beyond me.