Forum Discussion
JackyGrealish
Jul 13, 2022Copper Contributor
Using IF and LEN formula for a cell
Hi, I work at a energy company where I need to paste value of system sizes, for eg. 8.73MW . I used formula: =LEFT(G5,LEN(G5)-2) to remove the 'MW'. And used IF to see if value is below 30, multipl...
- Jul 13, 2022
ecovonrein
Jul 13, 2022Iron Contributor
You could also try =LAMBDA(v;LET(aUnit;RIGHT(v;2);Scalar;LOOKUP(aUnit;{"kW";"MW"};{1;1000});SUBSTITUTE(v;aUnit;"")*Scalar))(G5)