Solved

Why does the SUM formula not work?

Posted on 2014-09-24
4
141 Views
Last Modified: 2014-09-25
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
Comment
Question by:cowboywm
  • 2
4 Comments
 
LVL 25

Expert Comment

by:ProfessorJimJam
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 25

Accepted Solution

by:
ProfessorJimJam earned 500 total points
ID: 40343583
attachment
Test.xlsm
0
 
LVL 27

Expert Comment

by:Glenn Ray
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

by:cowboywm
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

Do You Know the 4 Main Threat Actor Types?

Do you know the main threat actor types? Most attackers fall into one of four categories, each with their own favored tactics, techniques, and procedures.

Join & Write a Comment

Many companies are making the switch from Microsoft to Google Apps (https://www.google.com/work/apps/business/). Use this article to learn more about what Google Apps has to offer and to help if you’re planning on migrating to Google Apps. It is …
Companies keep a much closer eye on costs today, so changing to new Technology – Microsoft Office 365 is the smartest move to take.
The viewer will learn how to edit text. This includes Font, Spacing, Resizing, Color, and other special text options.
This video shows where to find templates, what they are used for, and how to create and save a custom template using Microsoft Word.

757 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

22 Experts available now in Live!

Get 1:1 Help Now