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

excel training program - if function range

Forum home » Delegate support and help forum » Microsoft Excel Training and help » excel training program - IF Function range

excel training program - IF Function range

ResolvedVersion Standard

Roger has attended:
No courses

IF Function range

I'm attempting to check five cells on another worksheet and return a blank response if any of the five cells are blank, otherwise, I want the SUM of those five cells returned.

I have successfuly been able to create an equation for FOUR or less cells, but when I attempt five, I am either told that I have made too many arguments or it simply will not work correctly.

Here is a sample of what I am trying to accomplish, but this returns the SUM of those fields with an entry, it should return a blank response if any of the cells are blank (which is the case):

=IF(OR('Out by Source'!F14,'Out by Source'!F27,'Out by Source'!F47:F49)="","",SUM('Out by Source'!F14,'Out by Source'!F27,'Out by Source'!F47:F49))

Here is a working example of only four cells, I had to use a different approach entirely and had to leave off one of the cells in the logical test:

=IF(OR('Out by Source'!F14="",'Out by Source'!F27="",'Out by Source'!F47="",'Out by Source'!F48=""),"",SUM('Out by Source'!F14,'Out by Source'!F27,'Out by Source'!F47:F49))

As you can see, I had to leave the F49 out of the Logical Test because when I do not use a range (ie F47:F49) it will work, but only allows four entries, when I try five entries it returns the too many arguments error box.

There has to be a more streamlined equation, please help! Sorry for rambling, I hope it makes sense. ;)

RE: IF Function range

Roger

A very interesting challenge. If you conact our sales team, they will be able to direct you on which course is better for you, or if it is more suitable for a consultant to come on site to help resolve this situation.

regards

david

Excel tip:

Adding Rows or Columns in an Excel 2010 Worksheet

If you want to add a row to an Excel spreadsheet, these are the simple steps you should take:

With your mouse, right click on the row header below where you want the new row to be added. Then, click Insert.

Follow exactly the same steps if you want to add a column to an Excel worksheet, right click on the column header, choose Insert and the new column will be inserted to the left of the selected column.

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.1 secs.