Formula please for extract number

punit83

Board Regular
Joined
Jan 17, 2018
Messages
66
Office Version
  1. 2019
Platform
  1. Windows
Hello Ever1 !

i have tried few formula from forum to extract number from data in cell, it gets attracted but cannot sum as it is extracted as text.
Please any one can share formula in which number can get extract and i can sum them also.

Thanks in advance from newbie

Extract Number & Sum.xlsx
AB
1DateResult
20.07 DR0.07
32.61 DR2.61
420.00 DR20.00
54.08 DR4.08
670.00 DR70.00
70.07 DR0.07
80.07 CR0.07
92.61 CR2.61
1020.00 CR20.00
114.08 CR4.08
1270.00 CR70.00
130.07 CR0.07
14Total193.66
Sheet1
Cell Formulas
RangeFormula
B14B14=SUM(B2:B13)
 

Excel Facts

What do {} around a formula in the formula bar mean?
{Formula} means the formula was entered using Ctrl+Shift+Enter signifying an old-style array formula.
in the extraction formula you use then *1 or +0 to change to a number

i think XL2BB converts to a number, EDIT - yes it does - so you can see the image below - showing the text - left justified and then using *1 to change to a number
any here
Book8
ABC
1DateResult
20.07 DR0.070.07
32.61 DR2.612.61
420.00 DR20.0020
54.08 DR4.084.08
670.00 DR70.0070
70.07 DR0.070.07
80.07 CR0.070.07
92.61 CR2.612.61
1020.00 CR20.0020
114.08 CR4.084.08
1270.00 CR70.0070
130.07 CR0.070.07
14Total0193.66
Sheet1
Cell Formulas
RangeFormula
B2:B13B2=LEFT(A2,SEARCH(" ",A2,1))
C2:C13C2=LEFT(A2,SEARCH(" ",A2,1))*1
B14:C14B14=SUM(B2:B13)


DateResult
0.07 DR0.07
0.07​
2.61 DR2.61
2.61​
20.00 DR20.00
20​
4.08 DR4.08
4.08​
70.00 DR70.00
70​
0.07 DR0.07
0.07​
0.07 CR0.07
0.07​
2.61 CR2.61
2.61​
20.00 CR20.00
20​
4.08 CR4.08
4.08​
70.00 CR70.00
70​
0.07 CR0.07
0.07​
Total
0​
193.66​
 
Upvote 0
Solution
in the extraction formula you use then *1 or +0 to change to a number

i think XL2BB converts to a number, EDIT - yes it does - so you can see the image below - showing the text - left justified and then using *1 to change to a number
any here
Book8
ABC
1DateResult
20.07 DR0.070.07
32.61 DR2.612.61
420.00 DR20.0020
54.08 DR4.084.08
670.00 DR70.0070
70.07 DR0.070.07
80.07 CR0.070.07
92.61 CR2.612.61
1020.00 CR20.0020
114.08 CR4.084.08
1270.00 CR70.0070
130.07 CR0.070.07
14Total0193.66
Sheet1
Cell Formulas
RangeFormula
B2:B13B2=LEFT(A2,SEARCH(" ",A2,1))
C2:C13C2=LEFT(A2,SEARCH(" ",A2,1))*1
B14:C14B14=SUM(B2:B13)


DateResult
0.07 DR0.07
0.07​
2.61 DR2.61
2.61​
20.00 DR20.00
20​
4.08 DR4.08
4.08​
70.00 DR70.00
70​
0.07 DR0.07
0.07​
0.07 CR0.07
0.07​
2.61 CR2.61
2.61​
20.00 CR20.00
20​
4.08 CR4.08
4.08​
70.00 CR70.00
70​
0.07 CR0.07
0.07​
Total
0​
193.66​
Thank you so much and so simple tried so many different and long formula.
 
Upvote 0
You can sum directly from column A, if you need:
=SUM(--LEFT(A2:A13,FIND(" ",A2:A13)-1))
 
Upvote 0
After you put formula don't press Enter, press CTRL+SHIFT+ENTER
 
Upvote 0

Forum statistics

Threads
1,215,261
Messages
6,123,945
Members
449,134
Latest member
NickWBA

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