Forum Discussion
Queen_Bee
Apr 09, 2022Copper Contributor
Subtraction Help
I'm looking for a formula to return certain values when using excel. For instance: Cell A1 would be 531 Cell B2 would be 185 I want to subtract but I want it to return 454 as the answer. So it wo...
- Apr 09, 2022
If you're certain the two numbers have the same number of digits, a slightly shorter version:
=CONCAT(ABS(MID(A1,SEQUENCE(LEN(A1)),1)-MID(B2,SEQUENCE(LEN(A1)),1)))
HansVogelaar
Apr 09, 2022MVP
If you're certain the two numbers have the same number of digits, a slightly shorter version:
=CONCAT(ABS(MID(A1,SEQUENCE(LEN(A1)),1)-MID(B2,SEQUENCE(LEN(A1)),1)))
- Queen_BeeApr 10, 2022Copper Contributor
HansVogelaar this worked perfectly. It will always be a three digit number. Thank you so much.
- SergeiBaklanApr 09, 2022Diamond Contributor
With double dash in front...
- HansVogelaarApr 09, 2022MVP
OK, yes!