Forum Discussion

Queen_Bee's avatar
Queen_Bee
Copper Contributor
Apr 09, 2022
Solved

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...
  • HansVogelaar's avatar
    Apr 09, 2022

    Queen_Bee 

    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)))

Resources