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 » General Discussion
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

sum function



 
 
Thread Tools Display Modes
  #1  
Old April 18th, 2010, 03:12 PM posted to microsoft.public.excel.misc
Vijay Dhawan
external usenet poster
 
Posts: 1
Default sum function

Hi,

How can I sum the numbers in a column in Excel where some numbers carry a
"" sign in front of them (such as 1) and I want to include numbers such
"1" in calculation as "1".

For Example if numbers are entered as follows

0.5
1
0.5

I would like to value to be returned as "2" when I apply "sum" function.

Thanks

  #2  
Old April 18th, 2010, 03:22 PM posted to microsoft.public.excel.misc
David Biddulph
external usenet poster
 
Posts: 8,714
Default sum function

=SUM(IF(LEFT(A2:A4)="",--RIGHT(A2:A4,LEN(A2:A4)-1),A2:A4)) as an array
formula (Control Shift Enter).
--
David Biddulph


"Vijay Dhawan" Vijay wrote in message
...
Hi,

How can I sum the numbers in a column in Excel where some numbers carry a
"" sign in front of them (such as 1) and I want to include numbers such
"1" in calculation as "1".

For Example if numbers are entered as follows

0.5
1
0.5

I would like to value to be returned as "2" when I apply "sum" function.

Thanks


  #3  
Old April 18th, 2010, 03:28 PM posted to microsoft.public.excel.misc
T. Valko
external usenet poster
 
Posts: 15,759
Default sum function

Try this array formula** :

=SUM(IF(LEFT(A2:A10)="",--MID(A2:A10,2,10),A2:A10))

** array formulas need to be entered using the key combination of
CTRL,SHIFT,ENTER (not just ENTER). Hold down both the CTRL key and the SHIFT
key then hit ENTER.

--
Biff
Microsoft Excel MVP


"Vijay Dhawan" Vijay wrote in message
...
Hi,

How can I sum the numbers in a column in Excel where some numbers carry a
"" sign in front of them (such as 1) and I want to include numbers such
"1" in calculation as "1".

For Example if numbers are entered as follows

0.5
1
0.5

I would like to value to be returned as "2" when I apply "sum" function.

Thanks



  #4  
Old April 18th, 2010, 03:29 PM posted to microsoft.public.excel.misc
Sheeloo
external usenet poster
 
Posts: 797
Default sum function

Try the array formula (press CTRL-SHIFT-ENTER after typing/pasting the formula)
=SUM(IF(LEFT(A1:A3,1)="",MID(A1:A3,2,255)*1,A1:A3 ))

Adjust the range A1:A3 to the data you have. I have assumed that you have to
check for sign only.

"Vijay Dhawan" wrote:

Hi,

How can I sum the numbers in a column in Excel where some numbers carry a
"" sign in front of them (such as 1) and I want to include numbers such
"1" in calculation as "1".

For Example if numbers are entered as follows

0.5
1
0.5

I would like to value to be returned as "2" when I apply "sum" function.

Thanks

  #5  
Old April 18th, 2010, 04:28 PM posted to microsoft.public.excel.misc
Teethless mama
external usenet poster
 
Posts: 3,722
Default sum function

=SUMPRODUCT(--(SUBSTITUTE(A1:A3,"1",1)))


"Vijay Dhawan" wrote:

Hi,

How can I sum the numbers in a column in Excel where some numbers carry a
"" sign in front of them (such as 1) and I want to include numbers such
"1" in calculation as "1".

For Example if numbers are entered as follows

0.5
1
0.5

I would like to value to be returned as "2" when I apply "sum" function.

Thanks

  #6  
Old April 18th, 2010, 04:46 PM posted to microsoft.public.excel.misc
Sheeloo
external usenet poster
 
Posts: 797
Default sum function

Hello Mama,

It is nice to see, after a long time, me, you, David and Biff responding to
the same post...

Vijay might have a 2 or 11 in his data...

"Teethless mama" wrote:

=SUMPRODUCT(--(SUBSTITUTE(A1:A3,"1",1)))


"Vijay Dhawan" wrote:

Hi,

How can I sum the numbers in a column in Excel where some numbers carry a
"" sign in front of them (such as 1) and I want to include numbers such
"1" in calculation as "1".

For Example if numbers are entered as follows

0.5
1
0.5

I would like to value to be returned as "2" when I apply "sum" function.

Thanks

 




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 07:25 AM.


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