#1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 7
Default ignoring blank cells

Hi,

I am doing calcuations mainly multiplications of multiple cells, for
e.g =a1*a2*a3...a10. Cells a1-a5 has some number in it however a6-a10
does not. However it gives me result of 0 if blank cells are also
included in the calculation.

How do I go about calculating so that the blank cells are ignored
unless it has any number in it.

thanks in advance..
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 846
Default ignoring blank cells

=product(a1:a10). this will ignore blanks
--
Wag more, bark less


"K-Man" wrote:

Hi,

I am doing calcuations mainly multiplications of multiple cells, for
e.g =a1*a2*a3...a10. Cells a1-a5 has some number in it however a6-a10
does not. However it gives me result of 0 if blank cells are also
included in the calculation.

How do I go about calculating so that the blank cells are ignored
unless it has any number in it.

thanks in advance..

  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 7
Default ignoring blank cells

Hello Brad,

This formula also gives me 0 if blanks are included.

thanks

On Jul 29, 10:56*am, Brad wrote:
=product(a1:a10). *this will ignore blanks
--
Wag more, bark less



"K-Man" wrote:
Hi,


I am doing calcuations mainly multiplications of multiple cells, for
e.g =a1*a2*a3...a10. *Cells a1-a5 has some number in it however a6-a10
does not. *However it gives me result of 0 if blank cells are also
included in the calculation.


How do I go about calculating so that the blank cells are ignored
unless it *has any number in it.


thanks in advance..- Hide quoted text -


- Show quoted text -


  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 846
Default ignoring blank cells

I tested the formula (=product(a1:a10) with blanks, text and numbers and got
the right result. This agrees to the help of the function. Do you happen to
have a cell that has a zero? If that is the case, I can see why you get the
zero- otherwise there shouldn't be a reason why this isn't working for you.

Is your recalculation set to automatic or manual?

--
Wag more, bark less


"K-Man" wrote:

Hello Brad,

This formula also gives me 0 if blanks are included.

thanks

On Jul 29, 10:56 am, Brad wrote:
=product(a1:a10). this will ignore blanks
--
Wag more, bark less



"K-Man" wrote:
Hi,


I am doing calcuations mainly multiplications of multiple cells, for
e.g =a1*a2*a3...a10. Cells a1-a5 has some number in it however a6-a10
does not. However it gives me result of 0 if blank cells are also
included in the calculation.


How do I go about calculating so that the blank cells are ignored
unless it has any number in it.


thanks in advance..- Hide quoted text -


- Show quoted text -



  #5   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 7
Default ignoring blank cells

On Jul 29, 11:19*am, Brad wrote:
I tested the formula (=product(a1:a10) with blanks, text and numbers and got
the right result. *This agrees to the help of the function. *Do you happen to
have a cell that has a zero? * If that is the case, I can see why you get the
zero- otherwise there shouldn't be a reason why this isn't working for you.

Is your recalculation set to automatic or manual?

--
Wag more, bark less



"K-Man" wrote:
Hello Brad,


This formula also gives me 0 if blanks are included.


thanks


On Jul 29, 10:56 am, Brad wrote:
=product(a1:a10). *this will ignore blanks
--
Wag more, bark less


"K-Man" wrote:
Hi,

Acutally I forgot to mention I am multiplying cells that are %age to
calculate cumulative yield for each week. say 94% 100%, 93% etc..so
blank cells are formatted in % format. If you do that you will get 0
even if the cells is blank

thanks


I am doing calcuations mainly multiplications of multiple cells, for
e.g =a1*a2*a3...a10. *Cells a1-a5 has some number in it however a6-a10
does not. *However it gives me result of 0 if blank cells are also
included in the calculation.


How do I go about calculating so that the blank cells are ignored
unless it *has any number in it.


thanks in advance..- Hide quoted text -


- Show quoted text -- Hide quoted text -


- Show quoted text -




  #6   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 846
Default ignoring blank cells

I changed the format for all to percentage and it still worked for me

What do you have the cell that has the product formula formatted as? Since
these are all percentages less than one multiplying several small numbers
together could produce a number small enough to yield a zero (depending on
how it is formatted

--
Wag more, bark less


"K-Man" wrote:

On Jul 29, 11:19 am, Brad wrote:
I tested the formula (=product(a1:a10) with blanks, text and numbers and got
the right result. This agrees to the help of the function. Do you happen to
have a cell that has a zero? If that is the case, I can see why you get the
zero- otherwise there shouldn't be a reason why this isn't working for you.

Is your recalculation set to automatic or manual?

--
Wag more, bark less



"K-Man" wrote:
Hello Brad,


This formula also gives me 0 if blanks are included.


thanks


On Jul 29, 10:56 am, Brad wrote:
=product(a1:a10). this will ignore blanks
--
Wag more, bark less


"K-Man" wrote:
Hi,

Acutally I forgot to mention I am multiplying cells that are %age to
calculate cumulative yield for each week. say 94% 100%, 93% etc..so
blank cells are formatted in % format. If you do that you will get 0
even if the cells is blank

thanks


I am doing calcuations mainly multiplications of multiple cells, for
e.g =a1*a2*a3...a10. Cells a1-a5 has some number in it however a6-a10
does not. However it gives me result of 0 if blank cells are also
included in the calculation.


How do I go about calculating so that the blank cells are ignored
unless it has any number in it.


thanks in advance..- Hide quoted text -


- Show quoted text -- Hide quoted text -


- Show quoted text -



  #7   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 846
Default ignoring blank cells

Taken directly from microsoft help

=PRODUCT(number1, [number2], ...)
Show All
Hide All
This article describes the formula syntax and usage of the PRODUCT function
(function: A prewritten formula that takes a value or values, performs an
operation, and returns a value or values. Use functions to simplify and
shorten formulas on a worksheet, especially those that perform lengthy or
complex calculations.) in Microsoft Office Excel.

Description
The PRODUCT function multiplies all the numbers given as arguments and
returns the product. For example, if cells A1 and A2 contain numbers, you can
use the formula =PRODUCT(A1, A2) to multiply those two numbers together. You
can also perform the same operation by using the multiply (*) mathematical
operator; for example, =A1 * A2.

The PRODUCT function is useful when you need to multiply many cells
together. For example, the formula =PRODUCT(A1:A3, C1:C3) is equivalent to
=A1 * A2 * A3 * C1 * C2 * C3.

Syntax
PRODUCT(number1, [number2], ...)The PRODUCT function syntax has the
following arguments (argument: A value that provides information to an
action, an event, a method, a property, a function, or a procedure.):

number1 Required. The first number or range (range: Two or more cells on a
sheet. The cells in a range can be adjacent or nonadjacent.) that you want to
multiply.
number2, ... Optional. Additional numbers or ranges that you want to
multiply, up to a maximum of 255 arguments.

Note If an argument is an array or reference, only numbers in the array
or reference are multiplied. Empty cells, logical values, and text in the
array or reference are ignored

--
Wag more, bark less


"K-Man" wrote:

Hello Brad,

This formula also gives me 0 if blanks are included.

thanks

On Jul 29, 10:56 am, Brad wrote:
=product(a1:a10). this will ignore blanks
--
Wag more, bark less



"K-Man" wrote:
Hi,


I am doing calcuations mainly multiplications of multiple cells, for
e.g =a1*a2*a3...a10. Cells a1-a5 has some number in it however a6-a10
does not. However it gives me result of 0 if blank cells are also
included in the calculation.


How do I go about calculating so that the blank cells are ignored
unless it has any number in it.


thanks in advance..- Hide quoted text -


- Show quoted text -



  #8   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 7
Default ignoring blank cells

On Jul 29, 11:26*am, Brad wrote:
Taken directly from microsoft help

=PRODUCT(number1, [number2], ...)
Show All
Hide All
This article describes the formula syntax and usage of the PRODUCT function
(function: A prewritten formula that takes a value or values, performs an
operation, and returns a value or values. Use functions to simplify and
shorten formulas on a worksheet, especially those that perform lengthy or
complex calculations.) in Microsoft Office Excel.

Description
The PRODUCT function multiplies all the numbers given as arguments and
returns the product. For example, if cells A1 and A2 contain numbers, you can
use the formula =PRODUCT(A1, A2) to multiply those two numbers together.. You
can also perform the same operation by using the multiply (*) mathematical
operator; for example, =A1 * A2.

The PRODUCT function is useful when you need to multiply many cells
together. For example, the formula =PRODUCT(A1:A3, C1:C3) is equivalent to
=A1 * A2 * A3 * C1 * C2 * C3.

Syntax
PRODUCT(number1, [number2], ...)The PRODUCT function syntax has the
following arguments (argument: A value that provides information to an
action, an event, a method, a property, a function, or a procedure.):

number1 *Required. The first number or range (range: Two or more cells on a
sheet. The cells in a range can be adjacent or nonadjacent.) that you want to
multiply.
number2, ... *Optional. Additional numbers or ranges that you want to
multiply, up to a maximum of 255 arguments.

*Note * If an argument is an array or reference, only numbers in the array
or reference are multiplied. Empty cells, logical values, and text in the
array or reference are ignored

--
Wag more, bark less



"K-Man" wrote:
Hello Brad,


This formula also gives me 0 if blanks are included.


thanks


On Jul 29, 10:56 am, Brad wrote:
=product(a1:a10). *this will ignore blanks
--
Wag more, bark less


"K-Man" wrote:
Hi,


Thanks for the info...I know all this..

my worksheet formula is giving me zero for all the calcuated cells
which I have not data for, so that's why I am getting zero when I try
to multiply all the blank cells.


I am doing calcuations mainly multiplications of multiple cells, for
e.g =a1*a2*a3...a10. *Cells a1-a5 has some number in it however a6-a10
does not. *However it gives me result of 0 if blank cells are also
included in the calculation.


How do I go about calculating so that the blank cells are ignored
unless it *has any number in it.


thanks in advance..- Hide quoted text -


- Show quoted text -- Hide quoted text -


- Show quoted text -


  #9   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 846
Default ignoring blank cells

Change the format on the cell that has the product formula to "General" with
10 decimal places - do you still get a zero?

--
Wag more, bark less


"K-Man" wrote:

On Jul 29, 11:26 am, Brad wrote:
Taken directly from microsoft help

=PRODUCT(number1, [number2], ...)
Show All
Hide All
This article describes the formula syntax and usage of the PRODUCT function
(function: A prewritten formula that takes a value or values, performs an
operation, and returns a value or values. Use functions to simplify and
shorten formulas on a worksheet, especially those that perform lengthy or
complex calculations.) in Microsoft Office Excel.

Description
The PRODUCT function multiplies all the numbers given as arguments and
returns the product. For example, if cells A1 and A2 contain numbers, you can
use the formula =PRODUCT(A1, A2) to multiply those two numbers together.. You
can also perform the same operation by using the multiply (*) mathematical
operator; for example, =A1 * A2.

The PRODUCT function is useful when you need to multiply many cells
together. For example, the formula =PRODUCT(A1:A3, C1:C3) is equivalent to
=A1 * A2 * A3 * C1 * C2 * C3.

Syntax
PRODUCT(number1, [number2], ...)The PRODUCT function syntax has the
following arguments (argument: A value that provides information to an
action, an event, a method, a property, a function, or a procedure.):

number1 Required. The first number or range (range: Two or more cells on a
sheet. The cells in a range can be adjacent or nonadjacent.) that you want to
multiply.
number2, ... Optional. Additional numbers or ranges that you want to
multiply, up to a maximum of 255 arguments.

Note If an argument is an array or reference, only numbers in the array
or reference are multiplied. Empty cells, logical values, and text in the
array or reference are ignored

--
Wag more, bark less



"K-Man" wrote:
Hello Brad,


This formula also gives me 0 if blanks are included.


thanks


On Jul 29, 10:56 am, Brad wrote:
=product(a1:a10). this will ignore blanks
--
Wag more, bark less


"K-Man" wrote:
Hi,


Thanks for the info...I know all this..

my worksheet formula is giving me zero for all the calcuated cells
which I have not data for, so that's why I am getting zero when I try
to multiply all the blank cells.


I am doing calcuations mainly multiplications of multiple cells, for
e.g =a1*a2*a3...a10. Cells a1-a5 has some number in it however a6-a10
does not. However it gives me result of 0 if blank cells are also
included in the calculation.


How do I go about calculating so that the blank cells are ignored
unless it has any number in it.


thanks in advance..- Hide quoted text -


- Show quoted text -- Hide quoted text -


- Show quoted text -



  #10   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 8,651
Default ignoring blank cells

So change your worksheet formula so that it doesn't give zero from blank
cells.
You've had a number of suggestions as to how to do it.
PRODUCT does not give a zero from blank cells., so it isn't obvious what you
are doing to give zero. Tell us what formula you are using, and what data
values are in the cells feeding into that formula.
--
David Biddulph

"K-Man" wrote in message
...
....
Thanks for the info...I know all this..

my worksheet formula is giving me zero for all the calcuated cells
which I have not data for, so that's why I am getting zero when I try
to multiply all the blank cells.





  #11   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 8,651
Default ignoring blank cells

=IF(COUNT(A1:A10)=10,PRODUCT(A1:A10),"") if you want the result to be blank
until all cells are completed.
=PRODUCT(A1:A10) if you want to multiply the cells which are completed, and
ignore the others.
--
David Biddulph

"K-Man" wrote in message
...
Hi,

I am doing calcuations mainly multiplications of multiple cells, for
e.g =a1*a2*a3...a10. Cells a1-a5 has some number in it however a6-a10
does not. However it gives me result of 0 if blank cells are also
included in the calculation.

How do I go about calculating so that the blank cells are ignored
unless it has any number in it.

thanks in advance..



  #12   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 913
Default ignoring blank cells

On Wed, 29 Jul 2009 07:35:57 -0700 (PDT), K-Man
wrote:

Hi,

I am doing calcuations mainly multiplications of multiple cells, for
e.g =a1*a2*a3...a10. Cells a1-a5 has some number in it however a6-a10
does not. However it gives me result of 0 if blank cells are also
included in the calculation.

How do I go about calculating so that the blank cells are ignored
unless it has any number in it.

thanks in advance..



If you want to exclude not only cells that are "really" blank, but
also cells that are interpreted as 0 as they are blank "by a formula",
you may try this:

=PRODUCT(IF(A1:A10<0,A1:A10))

Note: This is an array formula that should be confirmed with
CTRL+SHIFT+ENTER rather than just ENTER.

This formula will also ignore cells that really has a value of 0, but
if that is no problem it might work for you.

Hope this helps / Lars-Åke
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
Ignoring blank cells Neil Excel Discussion (Misc queries) 3 September 14th 07 04:07 PM
Ignoring blank cells on getting an average Neil Excel Discussion (Misc queries) 6 July 18th 07 08:14 AM
Ignoring Blank Cells Reefaman Excel Worksheet Functions 2 June 11th 06 05:43 PM
Help with ignoring blank cells Darren Excel Discussion (Misc queries) 1 November 19th 05 07:48 PM
geomean ignoring blank cells and chars Stan Altshuller Excel Worksheet Functions 1 January 12th 05 09:21 PM


All times are GMT +1. The time now is 06:29 AM.

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"