Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1,560
Default Sum and If Function Problem with Excel 2007

I am working with a golf score card. I have a conditional statement that
gives points on a hole depending on the score. The If statements are working
perfectly, however, I can not sum the points correctly. I have used $ with
the column and row references and have taken the $ away and still receive the
same figure, "0" or zero. I get the zero regardless of the figures in the
conditional cells. I am using the basic =sum(b2:j2) for the 9 holes. Any
assistance would be greatly appreciated! Thank you.
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 10,593
Default Sum and If Function Problem with Excel 2007

Is your conditional statement returning numbers that are really text, say
"1", "2", instead of 1 or 2. SUM won't like these.

--
HTH

Bob

(there's no email, no snail mail, but somewhere should be gmail in my addy)

"David" wrote in message
...
I am working with a golf score card. I have a conditional statement that
gives points on a hole depending on the score. The If statements are
working
perfectly, however, I can not sum the points correctly. I have used $
with
the column and row references and have taken the $ away and still receive
the
same figure, "0" or zero. I get the zero regardless of the figures in the
conditional cells. I am using the basic =sum(b2:j2) for the 9 holes. Any
assistance would be greatly appreciated! Thank you.



  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1,560
Default Sum and If Function Problem with Excel 2007

Thanks, Bob. I am using the "1", "2" in my conditional statement. The
numbers returned are from "0" to "8".

"Bob Phillips" wrote:

Is your conditional statement returning numbers that are really text, say
"1", "2", instead of 1 or 2. SUM won't like these.

--
HTH

Bob

(there's no email, no snail mail, but somewhere should be gmail in my addy)

"David" wrote in message
...
I am working with a golf score card. I have a conditional statement that
gives points on a hole depending on the score. The If statements are
working
perfectly, however, I can not sum the points correctly. I have used $
with
the column and row references and have taken the $ away and still receive
the
same figure, "0" or zero. I get the zero regardless of the figures in the
conditional cells. I am using the basic =sum(b2:j2) for the 9 holes. Any
assistance would be greatly appreciated! Thank you.




  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 15,768
Default Sum and If Function Problem with Excel 2007

Remove the quotes from around the numbers. When you quote numbers Excel
evaluates them as text and text is ignored by the SUM function.

Don't do like this:

=IF(A1="x","1","0")

Do like this:

=IF(A1="x",1,0)
=IF(A1=1,"x",0)

Only text is quoted in formulas.

--
Biff
Microsoft Excel MVP


"David" wrote in message
...
Thanks, Bob. I am using the "1", "2" in my conditional statement. The
numbers returned are from "0" to "8".

"Bob Phillips" wrote:

Is your conditional statement returning numbers that are really text, say
"1", "2", instead of 1 or 2. SUM won't like these.

--
HTH

Bob

(there's no email, no snail mail, but somewhere should be gmail in my
addy)

"David" wrote in message
...
I am working with a golf score card. I have a conditional statement
that
gives points on a hole depending on the score. The If statements are
working
perfectly, however, I can not sum the points correctly. I have used $
with
the column and row references and have taken the $ away and still
receive
the
same figure, "0" or zero. I get the zero regardless of the figures in
the
conditional cells. I am using the basic =sum(b2:j2) for the 9 holes.
Any
assistance would be greatly appreciated! Thank you.






  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1,560
Default Sum and If Function Problem with Excel 2007

Bill, thank you very much. I had it backwards with the quote/text thing.
You are the best.

"T. Valko" wrote:

Remove the quotes from around the numbers. When you quote numbers Excel
evaluates them as text and text is ignored by the SUM function.

Don't do like this:

=IF(A1="x","1","0")

Do like this:

=IF(A1="x",1,0)
=IF(A1=1,"x",0)

Only text is quoted in formulas.

--
Biff
Microsoft Excel MVP


"David" wrote in message
...
Thanks, Bob. I am using the "1", "2" in my conditional statement. The
numbers returned are from "0" to "8".

"Bob Phillips" wrote:

Is your conditional statement returning numbers that are really text, say
"1", "2", instead of 1 or 2. SUM won't like these.

--
HTH

Bob

(there's no email, no snail mail, but somewhere should be gmail in my
addy)

"David" wrote in message
...
I am working with a golf score card. I have a conditional statement
that
gives points on a hole depending on the score. The If statements are
working
perfectly, however, I can not sum the points correctly. I have used $
with
the column and row references and have taken the $ away and still
receive
the
same figure, "0" or zero. I get the zero regardless of the figures in
the
conditional cells. I am using the basic =sum(b2:j2) for the 9 holes.
Any
assistance would be greatly appreciated! Thank you.








  #6   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 15,768
Default Sum and If Function Problem with Excel 2007

You're welcome. Thanks for the feedback!

--
Biff
Microsoft Excel MVP


"David" wrote in message
...
Bill, thank you very much. I had it backwards with the quote/text thing.
You are the best.

"T. Valko" wrote:

Remove the quotes from around the numbers. When you quote numbers Excel
evaluates them as text and text is ignored by the SUM function.

Don't do like this:

=IF(A1="x","1","0")

Do like this:

=IF(A1="x",1,0)
=IF(A1=1,"x",0)

Only text is quoted in formulas.

--
Biff
Microsoft Excel MVP


"David" wrote in message
...
Thanks, Bob. I am using the "1", "2" in my conditional statement. The
numbers returned are from "0" to "8".

"Bob Phillips" wrote:

Is your conditional statement returning numbers that are really text,
say
"1", "2", instead of 1 or 2. SUM won't like these.

--
HTH

Bob

(there's no email, no snail mail, but somewhere should be gmail in my
addy)

"David" wrote in message
...
I am working with a golf score card. I have a conditional statement
that
gives points on a hole depending on the score. The If statements
are
working
perfectly, however, I can not sum the points correctly. I have used
$
with
the column and row references and have taken the $ away and still
receive
the
same figure, "0" or zero. I get the zero regardless of the figures
in
the
conditional cells. I am using the basic =sum(b2:j2) for the 9
holes.
Any
assistance would be greatly appreciated! Thank you.








Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Problem with Regression function in 2007, Analysis Tool Pak Lauren273 Excel Discussion (Misc queries) 2 May 25th 08 10:00 PM
Excel 2007 Bug or other problem Kevin Lutz Excel Discussion (Misc queries) 0 July 17th 07 04:08 PM
Excel 2007 VBA problem teepee Excel Discussion (Misc queries) 7 March 31st 07 10:56 AM
Problem in Excel 2007 Beta. Kam Excel Discussion (Misc queries) 0 August 10th 06 07:42 AM
2007 Excel Chart Problem YokohamaGaijin Excel Discussion (Misc queries) 0 June 7th 06 02:56 AM


All times are GMT +1. The time now is 09:17 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"