How to SUM bold numbers in one cell?

penkuk

New Member
Joined
Sep 5, 2024
Messages
5
Office Version
  1. 2016
Platform
  1. Windows
Hello!

I was trying to find post for this one, but couldnt.
So i got numbers in one cell (B3) 4.3 ± 0.4 and in the next cell (B4)18.5 ± 0.5 and so on ...
Is it possible to sum them? with some code to MVB ? or somehow else ?
Ekrānuzņēmums 2024-09-05 172555.png
something like this, and in the blank space i want to sum them
 

Excel Facts

Format cells as currency
Select range and press Ctrl+Shift+4 to format cells as currency. (Shift 4 is the $ sign).
Hi & Welcome to MrExcel.

MrExcel has a tool called “XL2BB” that lets you post samples of your data that will allow us to copy/paste it to our Excel spreadsheets, so we can work with the same copy of data that you are. Instructions on using this tool can be found here: XL2BB Add-in

Note that there is also a "Test Here” forum on this board. This is a place where you can test using this tool (or any other posting techniques that you want to test) before trying to use those tools in your actual posts.

Do you want something like this?

Book1
ABCDEFGHIJKL
1
2
34.3 ± 0.412.2 ± 0.423.1 ± 0.727.7 ± 0.84.712.623.828.5
4
5
6
7
8
Sheet1
Cell Formulas
RangeFormula
G3:J3G3=SUM(--TEXTSPLIT(B3,,CHAR(10)&"±"&CHAR(10)))
 
Upvote 0
Hi & Welcome to MrExcel.

MrExcel has a tool called “XL2BB” that lets you post samples of your data that will allow us to copy/paste it to our Excel spreadsheets, so we can work with the same copy of data that you are. Instructions on using this tool can be found here: XL2BB Add-in

Note that there is also a "Test Here” forum on this board. This is a place where you can test using this tool (or any other posting techniques that you want to test) before trying to use those tools in your actual posts.

Do you want something like this?

Book1
ABCDEFGHIJKL
1
2
34.3 ± 0.412.2 ± 0.423.1 ± 0.727.7 ± 0.84.712.623.828.5
4
5
6
7
8
Sheet1
Cell Formulas
RangeFormula
G3:J3G3=SUM(--TEXTSPLIT(B3,,CHAR(10)&"±"&CHAR(10)))
I just want to sum the bold numbers.
Like the first row equals to 14,9
 
Upvote 0
Hi & welcome to MrExcel.
Are the bold numbers always on top? If so how about
Fluff.xlsm
ABCDE
1
24.3 ± 0.412.2 ± 0.423.1 ± 0.727.7 ± 0.867.3
34.5 ± 0.418.5 ± 0.423.4 ± 0.728.5 ± 0.874.9
Sheet6
Cell Formulas
RangeFormula
E2:E3E2=SUM(--TEXTSPLIT(A2:D2,,CHAR(10)))
 
Upvote 0
Hi & welcome to MrExcel.
Are the bold numbers always on top? If so how about
Fluff.xlsm
ABCDE
1
24.3 ± 0.412.2 ± 0.423.1 ± 0.727.7 ± 0.867.3
34.5 ± 0.418.5 ± 0.423.4 ± 0.728.5 ± 0.874.9
Sheet6
Cell Formulas
RangeFormula
E2:E3E2=SUM(--TEXTSPLIT(A2:D2,,CHAR(10)))
Ekrānuzņēmums 2024-09-05 174201.png
i want like this, your formula didnt work, do i need to download something to work? It shows NAME?
if its possible i need to do average on them .
(the red is my sum)

Ekrānuzņēmums 2024-09-05 175149.png
 
Upvote 0
What version of Excel are you using, your profile shows 365 which has the textsplit function?
 
Upvote 0
Ok, try
Fluff.xlsm
ABCD
18.830.746.556.2
24.3 ± 0.412.2 ± 0.423.1 ± 0.727.7 ± 0.8
34.5 ± 0.418.5 ± 0.423.4 ± 0.728.5 ± 0.8
Sheet6
Cell Formulas
RangeFormula
A1:D1A1=SUMPRODUCT(--(LEFT(A2:A3,FIND(CHAR(10),A2:A3)-1)))
 
Upvote 0
Ok, try
Fluff.xlsm
ABCD
18.830.746.556.2
24.3 ± 0.412.2 ± 0.423.1 ± 0.727.7 ± 0.8
34.5 ± 0.418.5 ± 0.423.4 ± 0.728.5 ± 0.8
Sheet6
Cell Formulas
RangeFormula
A1:D1A1=SUMPRODUCT(--(LEFT(A2:A3,FIND(CHAR(10),A2:A3)-1)))
Ekrānuzņēmums 2024-09-06 093736.png

It doesn't work for me, maybe because i got merged cells ?
 
Upvote 0
VBA option:
Right click on tab name, view code insert module then paste below code into:
PHP:
Option Explicit
Function sumBold(ByVal rng As Range) As Double
Dim cell As Range, sp
For Each cell In rng
    sp = Split(cell, "+-")
    If cell.Characters(1, Len(sp(0))).Font.Bold Then
        sumBold = sumBold + sp(0)
    End If
Next
End Function
Book1
BCD
1Use UDFTest (Use SUM)
255.955.9
314.9+-0.514.9
44.1 +-0.54.1
52.8 +- 0.52.8
612.3+-0.412.3
714.9 +- 0.514.9
84.1 +- 0.54.1
92.8 +- 0.52.8
1012.3 +- 0.4
Sheet1
Cell Formulas
RangeFormula
B2B2=sumBold(B3:B10)
D2D2=SUM(D3:D10)
 
Upvote 1
Solution

Forum statistics

Threads
1,223,894
Messages
6,175,252
Members
452,623
Latest member
Techenthusiast

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top