if function

Forum home » Delegate support and help forum » Microsoft Excel Training and help » IF function

IF function

resolvedResolved · Low Priority · Version 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


 

Excel tip:

Display developer tab - Excel 2010

a. In Excel, click on the File tab
b. Select Options from left hand side
c. Choose the Customize Ribbon section
d. Click the box next to Developer in the list of tabs on the right hand side of the dialog box. When ticked the Developer tab will be visible.
e. Click OK to apply your changes

View all Excel hints and tips


Server loaded in 0.07 secs.