How do I get rid of "#######"

G

Guest

A6 contains this formula:
=SUMPRODUCT(--(A1:A5>8/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.
=SUMPRODUCT(--(ISNUMBER(A1:A5>8/24)),ISNUMBER((A1:A5-8/24))*(SUM(A1:A5)*24<40))
did not work. This formula ignores both word and time entries when I applied
it.
 
S

Sandy Mann

Perhaps not a good way of doing it but:

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

Array entered with Ctrl + Shift + Enter

seems to return a time.

--
HTH

Sandy
In Perth, the ancient capital of Scotland
and the crowning place of kings

(e-mail address removed)
(e-mail address removed) with @tiscali.co.uk
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads

Is there a way to get rid of "######" 3
Copy a formula using Vlookup 2
issue with "left" 5
Help With Formula For Date Comparison 6
Is there a formula........... 4
Sum Function 6
if statement 2
Real-time sorting 11

Top