Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
Solved

# Why does the SUM formula not work?

Posted on 2014-09-24
Medium Priority
149 Views
I trust someone can figure out what is causing a simple SUM statement to fail.  My suspicion is that it has something to do with the values being generated in cells DI11 through DX65.
First, I am trying to use the following formula to test for multiple conditions.
=IF(OR(ISTEXT(B11)=TRUE, ISTEXT(C11)=TRUE, ISTEXT(D11)=TRUE, ISTEXT(E11)=TRUE, ISTEXT(F11)=TRUE), "1", "0")
If any of the cells referenced in the formula are true, I want a one (1) in the cell.  If any of the cells referenced in the formula are false, I want a zero (0) in the cell.
While the formula seems to work the way I want it, the SUM formula does not total.
What suggestions are there for fixing this anomaly?
Bill aka CowboyWM
Test.xlsm
0
Question by:cowboywm
[X]
###### Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

• Help others & share knowledge
• Earn cash & points
• 2

LVL 26

Expert Comment

ID: 40343582
see it works now.

the problem was when you put the "1" in double qoutes and SUM does not work in text. anything input which is between double qoutes excel considers it as text not a number.

so i fixed it, now your SUM works.  check the attached file.
0

LVL 26

Accepted Solution

ProfessorJimJam earned 2000 total points
ID: 40343583
attachment
Test.xlsm
0

LVL 27

Expert Comment

ID: 40344421
The above formula works, but this could be greatly simplified by using this formula instead (copied down):
DI11: =IF(COUNTA(B11:F11)>0,1,0)
DJ11: =IF(COUNTA(I11:M11)>0,1,0)
..and so on for the remaining columns.

I've attached a modified version of your workbook with all these formulas updated.

Regards,
-Glenn
EE-Test-mod.xlsm
0

Author Closing Comment

ID: 40344669
Long hours causes errors not easily seen.  A second pair of eyes is just what I was looking for.  Thank you for pointing out my oversight.

Bill aka CowboyWM
0

## Featured Post

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

As with any other System Center product, the installation for the Authoring Tool can be quite a pain sometimes. This article serves to help you avoid making these mistakes and hopefully save you a ton of time on troubleshooting :)  Step 1: Make sur…
: Microsoft Office Collaborate for free and online versions of Microsoft  Word, Excel, Powerpoint, OneNote, Onedrive , Email, Calendar etc. In short we can say that Microsoft office is a suite of servers, applications and services developed by  Micr…
This video walks the viewer through the process of creating a watermark for their document, customizing it, and saving it for viewing/printing needs.
An overview on how to enroll an hourly employee into the employee database and how to give them access into the clock in terminal.
###### Suggested Courses
Course of the Month9 days, 18 hours left to enroll