Forum Discussion
sandrews015
Jun 13, 2022Copper Contributor
Formula question
I have a cell that contains 3 lines of numbers and I need to make sure all three numbers get included in a formula. Whenever I use the sum function, it does not include any of the numbers. How would I go about this?
Thanks
Without modern functions
=SUM( FILTERXML("<t><s>"&SUBSTITUTE(B3,CHAR(10),"</s><s>")&"</s></t>", "//s") )
- Riny_van_EekelenPlatinum Contributor
sandrews015 When you say to have a cell containing three lines of numbers, that means you are dealing with a text string of three number separated with a line-feed (Alt-Enter). Summing texts results 0.
- sandrews015Copper ContributorIs there a way around this, other than giving each number its own cell?