Solved

Sum in Excel to ignore a text field

Posted on 2011-09-13
6
318 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
3 Use Cases for Connected Systems

Our Dev teams are like yours. They’re continually cranking out code for new features/bugs fixes, testing, deploying, testing some more, responding to production monitoring events and more. It’s complex. So, we thought you’d like to see what’s working for us.

 
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

Are your AD admin tools letting you down?

Managing Active Directory can get complicated.  Often, the native tools for managing AD are just not up to the task.  The largest Active Directory installations in the world have relied on one tool to manage their day-to-day administration tasks: Hyena. Start your trial today.

Question has a verified solution.

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

A little background as to how I came to I design this code: Around 5 years ago I designed an add-in that formatted Excel files to a corporate standard, applying different cell colours and font type depending on whether the cells contained inputs,…
Workbook link problems after copying tabs to a new workbook? David Miller (dlmille) Intro Have you either copied sheets to a new workbook, and after having saved and opened that workbook, you find that there are links back to the original sou…
This Micro Tutorial demonstrates how to create Excel charts: column, area, line, bar, and scatter charts. Formatting tips are provided as well.
Although Jacob Bernoulli (1654-1705) has been credited as the creator of "Binomial Distribution Table", Gottfried Leibniz (1646-1716) did his dissertation on the subject in 1666; Leibniz you may recall is the co-inventor of "Calculus" and beat Isaac…

810 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