Microsoft Office Forums

Go Back   Microsoft Office Forums > Microsoft Excel > Excel

Reply
 
LinkBack Thread Tools Display Modes
  #1  
Old 06-08-2017, 01:35 AM
Willy Excel Willy Excel is offline Mac OS X Office 2016 for Mac
Novice
 
Join Date: Jun 2017
Posts: 3
Willy Excel is on a distinguished road
Default Add up all Digits Within a Cell with a Line Break


Greetings! How do you SUM all numbers within a cell with line breaks?

Or: is it possible to highlight the cells and show "Sum:" down bottom?

Column has some cells with no number, some with one number, some with one number on top (line break) and one on bottom.
Attached Files
File Type: xlsx SUMMultipleRowsWithinCells.xlsx (18.8 KB, 3 views)
Reply With Quote
  #2  
Old 06-08-2017, 03:36 AM
xor xor is offline Windows 10 Office 2016
Expert
 
Join Date: Oct 2015
Posts: 788
xor is a jewel in the roughxor is a jewel in the roughxor is a jewel in the rough
Default

Maybe like the attached.
Attached Files
File Type: xlsm SUMMultipleRowsWithinCells_2.xlsm (12.8 KB, 7 views)
Reply With Quote
  #3  
Old 06-09-2017, 01:05 AM
Willy Excel Willy Excel is offline Mac OS X Office 2016 for Mac
Novice
 
Join Date: Jun 2017
Posts: 3
Willy Excel is on a distinguished road
Default

Thank you very much, xor. I see yours has macros. Ideally, I'll use a regular formula (and I was able to just have a gentleman help me create one). Nonetheless, helpful people like you make these computer headaches a breeze!
Reply With Quote
  #4  
Old 06-09-2017, 01:52 AM
xor xor is offline Windows 10 Office 2016
Expert
 
Join Date: Oct 2015
Posts: 788
xor is a jewel in the roughxor is a jewel in the roughxor is a jewel in the rough
Default

I understand you already have a regular formula solution, but for others it might be useful to know one possible regular formula:

=SUM(IFERROR(--(0&MID(D4,ROW(INDIRECT("1:"&LEN(D4))),1)),0))

This is an array formula which must be committed by holding down Ctrl and Shift before pressing Enter.
Reply With Quote
  #5  
Old 06-09-2017, 07:28 AM
NoSparks NoSparks is offline Windows 7 64bit Office 2010 64bit
Excel Hobbyist
 
Join Date: Nov 2013
Posts: 397
NoSparks is on a distinguished road
Default

Willy's cross post is here.
Reply With Quote
  #6  
Old 06-09-2017, 09:49 AM
Pecoflyer's Avatar
Pecoflyer Pecoflyer is offline Windows 7 64bit Office 2010 64bit
Moderator
 
Join Date: Nov 2011
Location: Brussels Belgium
Posts: 1,914
Pecoflyer is just really nicePecoflyer is just really nicePecoflyer is just really nicePecoflyer is just really nicePecoflyer is just really nice
Default

Do not crosspost your question on multiple forums without including links here to the other threads on other forums.

Cross-posting is when you post the same question in other forums on the web. The last thing you want to do is waste people's time working on an issue you have already resolved elsewhere. We prefer that you not cross-post at all, but if you do (and it's unlikely to go unnoticed), you MUST provide a link (copy the url from the address bar in your browser) to the cross-post.

Expect cross-posted questions without a link to be closed and a message will be posted by the moderator explaining why. We are here to help so help us to help you!

Read this to understand why we ask you to do this, and then please edit your first post to include links to any and all cross-posts in any other forums (not just this site).
Reply With Quote
  #7  
Old 07-09-2017, 12:51 AM
Willy Excel Willy Excel is offline Mac OS X Office 2016 for Mac
Novice
 
Join Date: Jun 2017
Posts: 3
Willy Excel is on a distinguished road
Default

Apologies for the cross post etiquette. Appreciate all the help! I have a solution that now works.

Can't see how to edit first post anymore. Other links:
https://www.excelforum.com/excel-for...ngle-cell.html
https://www.mrexcel.com/forum/excel-...ml#post4863554
Reply With Quote
Reply

Thread Tools
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Last Post
Interchange line break and paragraph break shortcut keys skan Word 2 01-20-2017 03:50 AM
How can I remove line break from 4 dash's nmss18 Word 2 09-11-2014 06:07 AM
Pulling 2 digits before a decimal point from adjoining cell then zeros after decimal jadess916 Excel 1 06-26-2014 03:48 AM
Problems merging in last 4 digits of an account higher than 16 digits Glynda Mail Merge 1 04-08-2011 12:17 AM
How to delete first 6 Digits and one Space from a CELL? Learner7 Excel 3 08-10-2010 04:06 AM


All times are GMT -7. The time now is 08:48 PM.


Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
SEO by vBSEO ©2011, Crawlability, Inc.
MSOfficeForums.com is not affiliated with Microsoft