Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Array Formula not working

Status
Not open for further replies.

edwardpestian

Technical User
Apr 28, 2006
47
US
I have the following array formula that will not work for some reason.

{=SUM(IF(C4:C18="TRUE",IF(D4:D18="19:00",1,0)))}

I have a checkbox over each cell in the range C4:C18. Each box is associated with the respected cell. So when a box is checked it returns TRUE, and of course, when its not checked it returns FALSE. It then looks in the range D4:D18 for the time 19:00. And then sums each cell that meets the criteria. For some reason the formula does not like the TRUE value or the time value. If I change each value to a text string it works.

Any ideas?

ep
 
TRUE is not a string, in fact as it is a logical item you don't even have to test it that way. And times are not strings ...

Code:
=SUM(IF(C4:C18,IF(D4:D18=TIMEVALUE("19:00"),1,0)))

Cheers, Glenn.

Did you hear about the literalist show-jumper? He broke his nose jumping against the clock.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top