Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
LD LD is offline
external usenet poster
 
Posts: 10
Default Replacing an empty cell

How can I replace an empty cell with a zero value or get a formula to
recognise a blank cell as a zero value in a claculation? For example I have 6
marks for each of my students. I need to be able to sum their best 5 marks. I
can do this for those students who have completed all 6 tasks but for those
with marks missing the formula wont work. I am using office 2003.
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 2,389
Default Replacing an empty cell

What formula are you using?

Regards,
Fred.

"LD" wrote in message
...
How can I replace an empty cell with a zero value or get a formula to
recognise a blank cell as a zero value in a claculation? For example I
have 6
marks for each of my students. I need to be able to sum their best 5
marks. I
can do this for those students who have completed all 6 tasks but for
those
with marks missing the formula wont work. I am using office 2003.


  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 15,768
Default Replacing an empty cell

How can I replace an empty cell with a zero value
I need to be able to sum their best 5 marks.


Try one of these:

This is an array formula** :

=SUM(LARGE(A1:F1+0,{1,2,3,4,5}))

Or, this normally entered version:

=SUM(LARGE(INDEX(A1:F1+0,0),{1,2,3,4,5}))

** array formulas need to be entered using the key combination of
CTRL,SHIFT,ENTER (not just ENTER)

--
Biff
Microsoft Excel MVP


"LD" wrote in message
...
How can I replace an empty cell with a zero value or get a formula to
recognise a blank cell as a zero value in a claculation? For example I
have 6
marks for each of my students. I need to be able to sum their best 5
marks. I
can do this for those students who have completed all 6 tasks but for
those
with marks missing the formula wont work. I am using office 2003.



  #4   Report Post  
Posted to microsoft.public.excel.misc
LD LD is offline
external usenet poster
 
Posts: 10
Default Replacing an empty cell

The formula I am using is
=(SUM(A1:F1)-LARGE(A1:F1,6)). This works fine when there are six entries but
for a row with less than 6 I get #VALUE! in the cell. There are too many
entries to change each one by hand.

"Fred Smith" wrote:

What formula are you using?

Regards,
Fred.

"LD" wrote in message
...
How can I replace an empty cell with a zero value or get a formula to
recognise a blank cell as a zero value in a claculation? For example I
have 6
marks for each of my students. I need to be able to sum their best 5
marks. I
can do this for those students who have completed all 6 tasks but for
those
with marks missing the formula wont work. I am using office 2003.



  #5   Report Post  
Posted to microsoft.public.excel.misc
LD LD is offline
external usenet poster
 
Posts: 10
Default Replacing an empty cell

Thanks
I tried the normally entered version but still get #VALUE! in the cell when
there are less than 6 entries. The formula I have been using is
=(SUM(A1:F1)-LARGE(A1:F1,6))

"T. Valko" wrote:

How can I replace an empty cell with a zero value
I need to be able to sum their best 5 marks.


Try one of these:

This is an array formula** :

=SUM(LARGE(A1:F1+0,{1,2,3,4,5}))

Or, this normally entered version:

=SUM(LARGE(INDEX(A1:F1+0,0),{1,2,3,4,5}))

** array formulas need to be entered using the key combination of
CTRL,SHIFT,ENTER (not just ENTER)

--
Biff
Microsoft Excel MVP


"LD" wrote in message
...
How can I replace an empty cell with a zero value or get a formula to
recognise a blank cell as a zero value in a claculation? For example I
have 6
marks for each of my students. I need to be able to sum their best 5
marks. I
can do this for those students who have completed all 6 tasks but for
those
with marks missing the formula wont work. I am using office 2003.






  #6   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 15,768
Default Replacing an empty cell

I tried the normally entered version but still get #VALUE!

Are there any TEXT entries in the range?

Try this:

=SUM(A1:F1)-IF(COUNT(A1:F1)=6,MIN(A1:F1))


--
Biff
Microsoft Excel MVP


"LD" wrote in message
...
Thanks
I tried the normally entered version but still get #VALUE! in the cell
when
there are less than 6 entries. The formula I have been using is
=(SUM(A1:F1)-LARGE(A1:F1,6))

"T. Valko" wrote:

How can I replace an empty cell with a zero value
I need to be able to sum their best 5 marks.


Try one of these:

This is an array formula** :

=SUM(LARGE(A1:F1+0,{1,2,3,4,5}))

Or, this normally entered version:

=SUM(LARGE(INDEX(A1:F1+0,0),{1,2,3,4,5}))

** array formulas need to be entered using the key combination of
CTRL,SHIFT,ENTER (not just ENTER)

--
Biff
Microsoft Excel MVP


"LD" wrote in message
...
How can I replace an empty cell with a zero value or get a formula to
recognise a blank cell as a zero value in a claculation? For example I
have 6
marks for each of my students. I need to be able to sum their best 5
marks. I
can do this for those students who have completed all 6 tasks but for
those
with marks missing the formula wont work. I am using office 2003.






  #7   Report Post  
Posted to microsoft.public.excel.misc
LD LD is offline
external usenet poster
 
Posts: 10
Default Replacing an empty cell

Thanks heaps
This worked. I have been trying all day to get this right.

"T. Valko" wrote:

I tried the normally entered version but still get #VALUE!


Are there any TEXT entries in the range?

Try this:

=SUM(A1:F1)-IF(COUNT(A1:F1)=6,MIN(A1:F1))


--
Biff
Microsoft Excel MVP


"LD" wrote in message
...
Thanks
I tried the normally entered version but still get #VALUE! in the cell
when
there are less than 6 entries. The formula I have been using is
=(SUM(A1:F1)-LARGE(A1:F1,6))

"T. Valko" wrote:

How can I replace an empty cell with a zero value
I need to be able to sum their best 5 marks.

Try one of these:

This is an array formula** :

=SUM(LARGE(A1:F1+0,{1,2,3,4,5}))

Or, this normally entered version:

=SUM(LARGE(INDEX(A1:F1+0,0),{1,2,3,4,5}))

** array formulas need to be entered using the key combination of
CTRL,SHIFT,ENTER (not just ENTER)

--
Biff
Microsoft Excel MVP


"LD" wrote in message
...
How can I replace an empty cell with a zero value or get a formula to
recognise a blank cell as a zero value in a claculation? For example I
have 6
marks for each of my students. I need to be able to sum their best 5
marks. I
can do this for those students who have completed all 6 tasks but for
those
with marks missing the formula wont work. I am using office 2003.






  #8   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 15,768
Default Replacing an empty cell

You're welcome. Thanks for the feedback!

--
Biff
Microsoft Excel MVP


"LD" wrote in message
...
Thanks heaps
This worked. I have been trying all day to get this right.

"T. Valko" wrote:

I tried the normally entered version but still get #VALUE!


Are there any TEXT entries in the range?

Try this:

=SUM(A1:F1)-IF(COUNT(A1:F1)=6,MIN(A1:F1))


--
Biff
Microsoft Excel MVP


"LD" wrote in message
...
Thanks
I tried the normally entered version but still get #VALUE! in the cell
when
there are less than 6 entries. The formula I have been using is
=(SUM(A1:F1)-LARGE(A1:F1,6))

"T. Valko" wrote:

How can I replace an empty cell with a zero value
I need to be able to sum their best 5 marks.

Try one of these:

This is an array formula** :

=SUM(LARGE(A1:F1+0,{1,2,3,4,5}))

Or, this normally entered version:

=SUM(LARGE(INDEX(A1:F1+0,0),{1,2,3,4,5}))

** array formulas need to be entered using the key combination of
CTRL,SHIFT,ENTER (not just ENTER)

--
Biff
Microsoft Excel MVP


"LD" wrote in message
...
How can I replace an empty cell with a zero value or get a formula
to
recognise a blank cell as a zero value in a claculation? For example
I
have 6
marks for each of my students. I need to be able to sum their best 5
marks. I
can do this for those students who have completed all 6 tasks but
for
those
with marks missing the formula wont work. I am using office 2003.








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
Replacing certain characters in a cell Mary Lou[_2_] Excel Worksheet Functions 3 March 5th 08 09:40 PM
Replacing empty cells with '-' Kazuki Excel Worksheet Functions 7 May 26th 06 11:17 AM
Leaving an empty cell empty GRL Excel Discussion (Misc queries) 4 April 22nd 06 05:47 PM
why a reference to an empty cell is not considered empty Nicoscot Excel Discussion (Misc queries) 10 March 10th 06 05:36 AM
Replacing Contents of 1 Cell to Another. John1950 Excel Discussion (Misc queries) 3 September 23rd 05 06:26 PM


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