Public Schedule Face-to-Face & Online Instructor-Led Training - View dates & book

if function

ResolvedVersion 2010

Ross has attended:
Excel Introduction course
Excel Intermediate course

IF function

I want to sum the numbers in column B (say) according to the values in Column A

I've put
=IF(A:A)=1,Sum(B:B)
This get #NAME
Not sure what I'm doing wrong.
Thanks

RE: IF function

Hi Ross

Thank you for your question.

You need to use SUMIF

It consists of 3 areas.

Range: the area you're using to check the criteria (A1:A21)
Criteria: What you're looking for i.e. 1
Sum range: the area that will be calculated (B1:B21)

I wouldn't recommend using the entire column as this will increase your file size and potentially slow down your sheet

Hope this helps

Kind regards
Wendy Canelas
Microsoft Trainer

 

Training courses

Training information:

See also:

Welcome. Please choose your application (eg. Excel) and then post your question.

Our Microsoft Qualified trainers will then respond within 24 hours (working days).

Frequently Asked Questions
What does 'Resolved' mean?

Any suggestions, questions or comments? Please post in the Improve the forum thread.

Excel tip:

Creating Quick Column Charts

Select the information you want to appear in the chart and press F11. This creates a new chart on a seperate worksheet.

View all Excel hints and tips

Connect with us:

0207 987 3777

Call for assistance

Request Callback

We will call you back

Server loaded in 0.16 secs.