Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
thomasjefferson
 
Posts: n/a
Default Summing a column, result coming up 0

I'm trying to use a spreadsheet as a database for wedding invitations. In
column F, I have assigned each row (each individual guest) a value of 1, 2,
3, or 4 according to whether I judge they are definitely coming, probably,
possibly, or doubtful. In the next column (column G), I have successfully
managed to use the IF function to enter in each cell as a decimal number
between 0 and 1 the probability that that guest will come. Here is the
formula for the first cell in that column:
=IF(F2=1,".95",IF(F2=2,".75",IF(F2=3,".45",IF(F2=4 ,".2"))))

So far so good.

Here's the problem. When I try to sum column G, with the formula
=SUM(G2:G294), Excel insists that the answer is 0, even though I'm looking at
a column of 293 cells, all of which have one of four results in them (i.e.,
..95, .75, .45, or .2). When I sum column G by hand, I get a result of 222.6.

Please help me.
  #2   Report Post  
Dodo
 
Posts: n/a
Default

?B?dGhvbWFzamVmZmVyc29u?=
wrote in
:

I'm trying to use a spreadsheet as a database for wedding invitations.
In column F, I have assigned each row (each individual guest) a value
of 1, 2, 3, or 4 according to whether I judge they are definitely
coming, probably, possibly, or doubtful. In the next column (column
G), I have successfully managed to use the IF function to enter in
each cell as a decimal number between 0 and 1 the probability that
that guest will come. Here is the formula for the first cell in that
column: =IF(F2=1,".95",IF(F2=2,".75",IF(F2=3,".45",IF(F2=4 ,".2"))))

So far so good.

Here's the problem. When I try to sum column G, with the formula
=SUM(G2:G294), Excel insists that the answer is 0, even though I'm
looking at a column of 293 cells, all of which have one of four
results in them (i.e., .95, .75, .45, or .2). When I sum column G by
hand, I get a result of 222.6.

Please help me.


That is because you do not assign values but text! Drop the " and the
result will be better.


--

It is I, DeauDeau
(Free after monsieur Leclerc in 'Allo, 'allo)
  #3   Report Post  
KL
 
Posts: n/a
Default

Hi,

Just remove all quotation marks (") from your formulae. Currently they
return text (".45") instead of numeric values (.45).

Regards,
KL


"thomasjefferson" wrote in
message ...
I'm trying to use a spreadsheet as a database for wedding invitations. In
column F, I have assigned each row (each individual guest) a value of 1,
2,
3, or 4 according to whether I judge they are definitely coming, probably,
possibly, or doubtful. In the next column (column G), I have successfully
managed to use the IF function to enter in each cell as a decimal number
between 0 and 1 the probability that that guest will come. Here is the
formula for the first cell in that column:
=IF(F2=1,".95",IF(F2=2,".75",IF(F2=3,".45",IF(F2=4 ,".2"))))

So far so good.

Here's the problem. When I try to sum column G, with the formula
=SUM(G2:G294), Excel insists that the answer is 0, even though I'm looking
at
a column of 293 cells, all of which have one of four results in them
(i.e.,
.95, .75, .45, or .2). When I sum column G by hand, I get a result of
222.6.

Please help me.



  #4   Report Post  
bigwheel
 
Posts: n/a
Default

You get the answer 0 because you're summing text values. ".95" is text, but
if you change the formula to
=IF(F2=1,0.95,IF(F2=2,0.75,IF(F2=3,0.45,IF(F2=4,0. 2)))) you will get numbers
which will give you a total when you sum them.

"thomasjefferson" wrote:

I'm trying to use a spreadsheet as a database for wedding invitations. In
column F, I have assigned each row (each individual guest) a value of 1, 2,
3, or 4 according to whether I judge they are definitely coming, probably,
possibly, or doubtful. In the next column (column G), I have successfully
managed to use the IF function to enter in each cell as a decimal number
between 0 and 1 the probability that that guest will come. Here is the
formula for the first cell in that column:
=IF(F2=1,".95",IF(F2=2,".75",IF(F2=3,".45",IF(F2=4 ,".2"))))

So far so good.

Here's the problem. When I try to sum column G, with the formula
=SUM(G2:G294), Excel insists that the answer is 0, even though I'm looking at
a column of 293 cells, all of which have one of four results in them (i.e.,
.95, .75, .45, or .2). When I sum column G by hand, I get a result of 222.6.

Please help me.

  #5   Report Post  
thomasjefferson
 
Posts: n/a
Default

Wow. You guys rock. Thank you so much for the simple answer to my dilemma.
I tried Excel's help screen and Microsoft.com's database, but I just couldn't
figure it out.

"thomasjefferson" wrote:

I'm trying to use a spreadsheet as a database for wedding invitations. In
column F, I have assigned each row (each individual guest) a value of 1, 2,
3, or 4 according to whether I judge they are definitely coming, probably,
possibly, or doubtful. In the next column (column G), I have successfully
managed to use the IF function to enter in each cell as a decimal number
between 0 and 1 the probability that that guest will come. Here is the
formula for the first cell in that column:
=IF(F2=1,".95",IF(F2=2,".75",IF(F2=3,".45",IF(F2=4 ,".2"))))

So far so good.

Here's the problem. When I try to sum column G, with the formula
=SUM(G2:G294), Excel insists that the answer is 0, even though I'm looking at
a column of 293 cells, all of which have one of four results in them (i.e.,
.95, .75, .45, or .2). When I sum column G by hand, I get a result of 222.6.

Please help me.

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
How to .. sbgvp Excel Discussion (Misc queries) 8 October 4th 05 09:16 PM
How can i change this VBA project According to Indian Numeric Rao Ratan Singh Excel Discussion (Misc queries) 1 April 21st 05 07:53 PM
up to 7 functions? ALex Excel Worksheet Functions 10 April 12th 05 06:42 PM
Amount or Numbers in Words ron New Users to Excel 6 December 24th 04 07:32 PM
Is there a formula to spell out a number in excel? Sha-nay-nay Excel Worksheet Functions 2 December 18th 04 09:25 PM


All times are GMT +1. The time now is 11:25 PM.

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

About Us

"It's about Microsoft Excel"