Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
C C is offline
external usenet poster
 
Posts: 61
Default Why does blank cell assume value = 1?

I have created a simple =product formula that calculates the value of one
cell multiplie by a certain value. i.e. =product(h10,.5) The formula works
fine, but when h10 refers to a blank cell, it assumes the value is 1. I want
it to assume nothing really, but in reality I want it to assume 0, rather
than 1.

Help?
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 905
Default Why does blank cell assume value = 1?

"C" wrote:
I have created a simple =product formula that
calculates the value of one cell multiplie by a
certain value. i.e. =product(h10,.5)


Why not simply write:

=H10*0.5

And in case H10 might be text (notably the null string):

=N(H10)*0.5

if you want text to be treated as zero. (Sounds like you would.)


The formula works fine, but when h10 refers to a
blank cell, it assumes the value is 1. I want it to
assume nothing really, but in reality I want it to
assume 0, rather than 1.


PRODUCT does not work that way. Read the Help page. It states that PRODUCT
__ignores__ empty cells and cells containing text (notably the null string,
which makes the cell appear empty), among others. "Ignores" means that
PRODUCT does not include the cell in its evaluation. It does not mean that
it treats the cell as 1 (or 0, for that matter).

There is a contorted way to fix this. But I don't know why you would
bother. Okay:

=PRODUCT(if(H1="",0,H1),0.5)

Please don't do that.
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
I would assume this is possible Cerberus Excel Discussion (Misc queries) 0 July 10th 08 01:40 PM
Am I to assume... Cerberus Excel Discussion (Misc queries) 2 April 1st 08 06:52 PM
What would Excel Assume if DATE left blank Neon520 Excel Worksheet Functions 5 January 15th 08 07:50 PM
Number of days between 2 dates, if end date is blank assume todays JulesM New Users to Excel 1 March 1st 06 12:41 PM
Can I assume the program has crashed? Catt Excel Discussion (Misc queries) 2 July 2nd 05 05:11 PM


All times are GMT +1. The time now is 03:53 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"