1 min readfrom Microsoft Excel | Help & Support with your Formula, Macro, and VBA problems | A Reddit Community

How to total numbers separated by commas in multiple cells.

Hello. I am going a bit nuts and looking for help. I am creating a spreadsheet for my hospital. There is a column which lists the room numbers of patients being discharged in cells E19:E23 (simple 1-2 digit numbers which may repeat in different units) separated by commas. I am trying to total the number of discharges based off of this.

The closest formula I have found follows, but it defaults to “1” instead of “0” if there are no discharges. I am a novice and basically just googling stuff so far and have tried so many formulas. I’ve figured out a dozen others in this sheet but this one still stumps me. Any help would be appreciated. Thank you!

=counta(filterxml(“<x><a>”&substitute(textjoin(“,”,true,e19:e23),”,”,”</a><a>”)&</a></x>”,”//a[number(.)=.]”))

submitted by /u/AnxiousTransitNut
[link] [comments]

Want to read more?

Check out the full article on the original site

View original article

Tagged with

#Excel alternatives for data analysis
#natural language processing for spreadsheets
#generative AI for data analysis
#cloud-based spreadsheet applications
#rows.com
#AI formula generation techniques
#modern spreadsheet innovations
#machine learning in spreadsheet applications
#enterprise-level spreadsheet solutions
#digital transformation in spreadsheet software
#Excel compatibility
#collaborative spreadsheet tools
#AI-driven spreadsheet solutions
#automation in spreadsheet workflows
#no-code spreadsheet solutions
#AI-powered spreadsheet
#formula generator
#Excel alternatives
#spreadsheet API integration
#spreadsheet