ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Discussion (Misc queries) (https://www.excelbanter.com/excel-discussion-misc-queries/)
-   -   Is there a way to get rid of "######" (https://www.excelbanter.com/excel-discussion-misc-queries/135330-there-way-get-rid.html)

lee

Is there a way to get rid of "######"
 
A6 contains this formula:
=SUMPRODUCT(--(A1:A58/24),A1:A5-8/24)*(SUM(A1:A5)*24<40)

This formula is doing what I want however if I enter a word into one of the
data cells instead of a time, the cell with the formula says ######. Is there
a way to have the formula only recognize a time entry and ignore a word entry
and still do the calculations I need.
--
Lee D.

Toppers

Is there a way to get rid of "######"
 
Try:

=SUMPRODUCT(--(ISNUMBER(A1:A58/24)),ISNUMBER((A1:A5-8/24))*(SUM(A1:A5)*24<40))

"Lee" wrote:

A6 contains this formula:
=SUMPRODUCT(--(A1:A58/24),A1:A5-8/24)*(SUM(A1:A5)*24<40)

This formula is doing what I want however if I enter a word into one of the
data cells instead of a time, the cell with the formula says ######. Is there
a way to have the formula only recognize a time entry and ignore a word entry
and still do the calculations I need.
--
Lee D.


Mike L

Is there a way to get rid of "######"
 
Test the cell for data type/and formatting if your version of Excel allows.
--
Sincerely,
Mike Leonard
GE Reaves Engineering, Inc.
San Antonio, Texas 78247


"Lee" wrote:

A6 contains this formula:
=SUMPRODUCT(--(A1:A58/24),A1:A5-8/24)*(SUM(A1:A5)*24<40)

This formula is doing what I want however if I enter a word into one of the
data cells instead of a time, the cell with the formula says ######. Is there
a way to have the formula only recognize a time entry and ignore a word entry
and still do the calculations I need.
--
Lee D.


lee

Is there a way to get rid of "######"
 
Toppers,
That formula is ignoring both words and time entry in the before mentioned
cells.
Any more suggestions?
--
Lee D.


"Toppers" wrote:

Try:

=SUMPRODUCT(--(ISNUMBER(A1:A58/24)),ISNUMBER((A1:A5-8/24))*(SUM(A1:A5)*24<40))

"Lee" wrote:

A6 contains this formula:
=SUMPRODUCT(--(A1:A58/24),A1:A5-8/24)*(SUM(A1:A5)*24<40)

This formula is doing what I want however if I enter a word into one of the
data cells instead of a time, the cell with the formula says ######. Is there
a way to have the formula only recognize a time entry and ignore a word entry
and still do the calculations I need.
--
Lee D.



All times are GMT +1. The time now is 07:15 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
ExcelBanter.com