A Microsoft Office (Excel, Word) forum. OfficeFrustration

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » OfficeFrustration forum » Microsoft Excel » Charts and Charting
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

m2 behinde a number and I want to sum



 
 
Thread Tools Display Modes
  #1  
Old December 1st, 2009, 11:01 AM posted to microsoft.public.excel.charting
sas[_2_]
external usenet poster
 
Posts: 1
Default m2 behinde a number and I want to sum

5 m²
3 m²
7 m²
2 m²
2m²
12m²
How can I get the sum without clearing the m2 in the field?
  #2  
Old December 1st, 2009, 02:08 PM posted to microsoft.public.excel.charting
Bernard Liengme
external usenet poster
 
Posts: 4,085
Default m2 behinde a number and I want to sum

Let's say the first on in in A1
Insert a new column B
In B1 enter =--LEFT(A1,LEN(A1)-3); this will retunr the number 5 (if you
have 5 m² in A1)
Copy down the column and add
Now you have real numbers that can be added

For a permanent solution: after you have done the above
Select all the new B values and give them the custom format: 0 "m²"
Select all the B values and Copy, with them still selected use Edit | Paste
Special - Values to turn the formulas to numbers
Now you have real numbers that can be added
Now you can delete column A
best wishes
--
Bernard Liengme
http://people.stfx.ca/bliengme
Microsoft Excel MVP

"sas" wrote in message
...
5 m²
3 m²
7 m²
2 m²
2m²
12m²
How can I get the sum without clearing the m2 in the field?


  #3  
Old December 1st, 2009, 02:29 PM posted to microsoft.public.excel.charting
Luke M
external usenet poster
 
Posts: 2,672
Default m2 behinde a number and I want to sum

You need to first create a helper column to strip out the number. Something
like:
=VALUE(LEFT(A1,FIND(" ",A1)-1))

And then perform a summation of the helper column.
--
Best Regards,

Luke M
*Remember to click "yes" if this post helped you!*


"sas" wrote:

5 m²
3 m²
7 m²
2 m²
2m²
12m²
How can I get the sum without clearing the m2 in the field?
.

 




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump


All times are GMT +1. The time now is 01:54 PM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 OfficeFrustration.
The comments are property of their posters.