+ Reply to Thread
Results 1 to 3 of 3

Create Formula to sum range, subtract from each only when value is in cell

  1. #1
    Registered User
    Join Date
    07-17-2008
    Location
    Ohio
    Posts
    2

    Create Formula to sum range, subtract from each only when value is in cell

    I need a special sum formula. I need the sum of a range of cells, but before taking the sum I need the formula to subtract 60 from each cell in the range. But... I only need the formula to subtract when a value is entered into the cell, not to subtract from every cell in the range and give me a negative or wrong answer.?????? help with this
    Last edited by ash556; 07-17-2008 at 12:16 PM. Reason: Moderator request

  2. #2
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898
    Please read our forum rules and amend your title according to Rule 1
    Where there is a will there are many ways.

    If you are happy with the results, please add to the contributor's reputation by clicking the reputation icon (star icon) below left corner

    Please also mark the thread as Solved once it is solved. Check the FAQ's to see how.

  3. #3
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898
    Try something like:

    =SUMPRODUCT(--(A1:A10<>""),--(A1:A10-60))

    adjust ranges to suit

    P.S. Thanks for updating the title.

+ 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