Forum Discussion

Benoitgranger81's avatar
Benoitgranger81
Copper Contributor
Aug 25, 2025
Solved

How to get the first 3 numbers of a cell containing "=1+2+3+4"

I have a chart with cells containing sums like "=1+3+6+9". Let name it cell A1. And in next cell, A2 I need a function linking to A1 and asking to send only the sum of the first 3 digits, i.d.  "=1...
  • HansVogelaar's avatar
    Aug 26, 2025

    How about

    =SUM(--TAKE(TEXTSPLIT(MID(FORMULATEXT(A1), 2, 100), "+"), , 3))

Resources