+ Reply to Thread
Results 1 to 5 of 5

sum formula

  1. #1
    Registered User
    Join Date
    11-17-2011
    Location
    Shropshire
    MS-Off Ver
    Excel version 2102
    Posts
    85

    sum formula

    Column A Column B Column C
    100 100 =Sum(A1+B1)/2
    100 =Sum(A1+B1)/2
    100 100 =Sum(A1+B1)/2


    As above i've two columns both with numbers in - i need to add them together and then divide by 2 - however column a and column b may not have a number in so results for above with my formula would be:

    C1 100
    C2 50
    C3 100

    and I want them to show:

    C1 100
    C2 100
    C3 100


    Thanks.

  2. #2
    Forum Contributor
    Join Date
    06-23-2010
    Location
    Iowa, United States
    MS-Off Ver
    Excel 2007
    Posts
    145

    Re: sum formula

    Hello littlefoot,

    Try this:

    =IF(COUNT(A1:B1)=2,SUM(A1:B1)/2,SUM(A1:B1))

    Let me know if this works!

    Steve
    A VBA novice, excited to learn!

  3. #3
    Forum Expert Ace_XL's Avatar
    Join Date
    06-04-2012
    Location
    UAE
    MS-Off Ver
    2016
    Posts
    6,074

    Re: sum formula

    Instead of using SUM, use the AVERAGE formula. Hence...

    Please Login or Register  to view this content.
    and so on!

    Show your appreciation - Press the star icon if this post has been helpful
    Mark the thread solved if your problem has been resolved

  4. #4
    Forum Contributor
    Join Date
    06-23-2010
    Location
    Iowa, United States
    MS-Off Ver
    Excel 2007
    Posts
    145

    Re: sum formula

    A much simpler answer than mine Ace!

  5. #5
    Registered User
    Join Date
    11-17-2011
    Location
    Shropshire
    MS-Off Ver
    Excel version 2102
    Posts
    85

    Re: sum formula

    Great thanks very much never thought of using Average

    Cheers. x

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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