+ Reply to Thread
Results 1 to 3 of 3

IF Function when adding values

  1. #1
    Registered User
    Join Date
    06-04-2010
    Location
    Leeds, England
    MS-Off Ver
    Excel 2007
    Posts
    9

    IF Function when adding values

    Hi,

    When i try to include a sum as part of a logical test I get a VALUE! error. Please can you help?

    The code I have been using is:

    Please Login or Register  to view this content.
    If i add a "+" sign between every value in column "B" it works fine, but when I use ":" to add the range it returns the error.

    Thanks

    Mike

  2. #2
    Forum Guru DonkeyOte's Avatar
    Join Date
    10-22-2008
    Location
    Northumberland, UK
    MS-Off Ver
    O365
    Posts
    21,531

    Re: IF Function when adding values

    You must encase the range within the SUM function

    =IF(SUM(B2:B4)=3,"yes","no")

  3. #3
    Registered User
    Join Date
    06-04-2010
    Location
    Leeds, England
    MS-Off Ver
    Excel 2007
    Posts
    9

    Re: IF Function when adding values

    That's great, thanks

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1