Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Jez Jez is offline
external usenet poster
 
Posts: 38
Default blank cells are treated as zeros how do I stop that

When performing calculations blank cells are assumed to be zero values how do
I stop that i.e. blank cells should not be used in the calculation at all?
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 11,058
Default blank cells are treated as zeros how do I stop that

post an example
--
Gary''s Student - gsnu200718
  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Jez Jez is offline
external usenet poster
 
Posts: 38
Default blank cells are treated as zeros how do I stop that

E.g Row 1 contains results for samples taken in the morning Row 2 results for
samples taken in the afternoon. I want Row 3 to be the average of the 2
samples so set up for a3 = (a1/a2) and copy the formula across the row,
however some samples are missing therefore say e.g. column z has no afternoon
sample (z2 is blank) and the morning sample gives a value of 1 (z1=1), z3 =
0.5 when is should be 1.

"Gary''s Student" wrote:

post an example
--
Gary''s Student - gsnu200718

  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 11,058
Default blank cells are treated as zeros how do I stop that

instead of

=(A1+A2)/2

use:

=AVERAGE(A1:A2)

AVERAGE will ignore blanks
--
Gary''s Student - gsnu200718


"Jez" wrote:

E.g Row 1 contains results for samples taken in the morning Row 2 results for
samples taken in the afternoon. I want Row 3 to be the average of the 2
samples so set up for a3 = (a1/a2) and copy the formula across the row,
however some samples are missing therefore say e.g. column z has no afternoon
sample (z2 is blank) and the morning sample gives a value of 1 (z1=1), z3 =
0.5 when is should be 1.

"Gary''s Student" wrote:

post an example
--
Gary''s Student - gsnu200718

  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Jez Jez is offline
external usenet poster
 
Posts: 38
Default blank cells are treated as zeros how do I stop that

Great, Thanks

"Gary''s Student" wrote:

instead of

=(A1+A2)/2

use:

=AVERAGE(A1:A2)

AVERAGE will ignore blanks
--
Gary''s Student - gsnu200718


"Jez" wrote:

E.g Row 1 contains results for samples taken in the morning Row 2 results for
samples taken in the afternoon. I want Row 3 to be the average of the 2
samples so set up for a3 = (a1/a2) and copy the formula across the row,
however some samples are missing therefore say e.g. column z has no afternoon
sample (z2 is blank) and the morning sample gives a value of 1 (z1=1), z3 =
0.5 when is should be 1.

"Gary''s Student" wrote:

post an example
--
Gary''s Student - gsnu200718

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 can I use €ścountif€ť to count BOTH zeros AND blank cells as zer Danielle Excel Worksheet Functions 1 December 9th 06 12:12 AM
sum of blank cells returns zeros Mar_W Excel Worksheet Functions 7 November 28th 06 05:53 PM
References to Blank Cells turn into Zeros statusquo Excel Worksheet Functions 3 December 13th 05 02:44 AM
I want blank cells, but they're all zeros now that I have formatted them hays4 Excel Discussion (Misc queries) 1 October 13th 05 02:39 PM
how eliminate zeros in blank cells using paste link sea kayaker Excel Worksheet Functions 2 April 16th 05 10:19 PM


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