Solved

Sum in Excel to ignore a text field

Posted on 2011-09-13
6
311 Views
Last Modified: 2012-05-12
I need to sum 5 columns, in each of the columns if the header is blank then the formula inputs "" (here is a copy of one of the columns formulas - =IF($AY$1="","",SUM(AZ5:AZ51)) )

When I try to add up all 5 columns I get a #Value! error.

can you help?
0
Comment
Question by:bryanscott53
6 Comments
 
LVL 4

Expert Comment

by:SafetyFish
ID: 36529172
Try Sumif([range], <> "", [range])

<> means does not equal (if you didn't know)
0
 
LVL 32

Expert Comment

by:Rob Henson
ID: 36529196
Your formula:

=IF($AY$1="","",SUM(AZ5:AZ51)))

Though summing column AZ it is looking at the header for column AY, is this correct?

Where are you putting the formula? I am assuming below AZ51 eg in AZ52.

I have tried replicating the formula and it seems to work.

Thanks
Rob H
0
 
LVL 50

Expert Comment

by:Ingeborg Hawighorst
ID: 36529210
Hello,

which 5 columns do you need to sum?

The first part of your IF statement references column AY. The Sum() function in the IF statement references AZ. Is that your intention?

What is the formula that produces the #Value! error?

Sum() works fine on a mix of text and numbers.

Can you post a sample file that presents the problem?

cheers, teylyn
0
Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

 
LVL 4

Accepted Solution

by:
SafetyFish earned 500 total points
ID: 36529215
My bad, you need quotes around the criteria:

=SUMIF([sum range], "<> "" ",[sum range])
0
 
LVL 32

Expert Comment

by:Rob Henson
ID: 36529266
Just re-read the problem and interpreted slightly different.

I assume you have the formula in say columns AV to AZ and then adding these up but resulting in an error. If one the formulas is generating the blank, this could cause the error although the sum would normally ignore blank or text values.

Try changing the formula to return 0 or sum rather than "".

Thanks
Rob H
0
 

Author Closing Comment

by:bryanscott53
ID: 36529907
Thanks safetyfish this worked great
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Unable to open excel in 2016 is slow 4 21
Search for a value in Column? 5 22
VBA to Find/Replace within a specified range in a Workbook 9 13
Excel 17 16
Drop Down List with Unique/Distinct Values (Part II - ComboBox or ListBox and Data Validation List Bonus!) David Miller (dlmille) Intro This article focuses on delivering unique, sorted lists to list objects (e.g., ComboBox, ListBox) and Dat…
This tutorial explains how to create a series of drop-down lists that are dependent upon prior selections to guide (“force”) the user to make the correct selection and reduce data errors within Microsoft Excel. Excel 2010 was used for this tutorial;…
The viewer will learn how to use a discrete random variable to simulate the return on an investment over a period of years, create a Monte Carlo simulation using the discrete random variable, and create a graph to represent the possible returns over…
Excel styles will make formatting consistent and let you apply and change formatting faster. In this tutorial, you'll learn how to use Excel's built-in styles, how to modify styles, and how to create your own. You'll also learn how to use your custo…

863 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

20 Experts available now in Live!

Get 1:1 Help Now