+ Reply to Thread
Results 1 to 4 of 4

How to set max value and have it subtract from that max value?

  1. #1
    Registered User
    Join Date
    08-24-2013
    Location
    USA
    MS-Off Ver
    Excel 2013
    Posts
    1

    How to set max value and have it subtract from that max value?

    So I have this formula =IF(SUM(C3:L3)>=100,100,SUM(C3:L3)) and it sets L3 to 100 but when I try to have a cell subtract from L3 its not subtracting from the max number. For example C3=40, D3=70, E3=-20, it makes L3=90. Which is not right it should be 80. I hope this makes sense and someone can help. Cheers!

  2. #2
    Forum Expert
    Join Date
    05-30-2012
    Location
    The Netherlands
    MS-Off Ver
    Office 365
    Posts
    14,987

    Re: How to set max value and have it subtract from that max value?

    You get better help if you add an excel file, without confidential information.

    Please also add the desired (expected) result in your sheet.
    Notice my main language is not English.

    I appreciate it, if you reply on my solution.

    If you are satisfied with the solution, please mark the question solved.

    You can add reputation by clicking on the star * add reputation.

  3. #3
    Forum Contributor
    Join Date
    08-02-2013
    Location
    Wageningen, The Netherlands
    MS-Off Ver
    365
    Posts
    495

    Re: How to set max value and have it subtract from that max value?

    It seems like you want to check for EVERY step of the sum (C3+D3, +E3, +F3 etc.) if the total reaches 100; this cannot be done with a simple formula... You'd need to make a formula for every step of your total sum...
    When I say semicolon, u say comma!

  4. #4
    Forum Expert newdoverman's Avatar
    Join Date
    02-07-2013
    Location
    Port Dover, Ontario, Canada
    MS-Off Ver
    2010
    Posts
    10,330

    Re: How to set max value and have it subtract from that max value?

    =IF(SUM(C3:L3)>=100,100,SUM(C3:L3)) means that IF THE SUM FROM C3:L3 is greater than or equal to 100, enter 100. If that is FALSE then sum C3:L3.

    The condition set with the IF statement "sum(C3:L3)>=100 is FALSE because with the values in C3, D3 and E3 being 40 70 -20 the sum is 90 therefore the 100 does not come into play as it is less than 100. The FALSE part of the statement takes over. SUM(C3:L3) and that is equal to 90.
    <---------If you like someone's answer, click the star to the left of one of their posts to give them a reputation point for that answer.
    Ron W

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. [SOLVED] Trying to subtract
    By mlg1976 in forum Excel - New Users/Basics
    Replies: 6
    Last Post: 08-24-2012, 05:27 PM
  2. If Sat subtract one day, if Sunday subtract tow days
    By Wskip49 in forum Excel General
    Replies: 3
    Last Post: 06-30-2012, 03:35 PM
  3. Replies: 1
    Last Post: 01-27-2012, 11:25 PM
  4. If ___, then add, if ___ then subtract. How?
    By cubswin716 in forum Excel General
    Replies: 1
    Last Post: 12-26-2011, 05:17 AM
  5. Subtract If
    By NFJim in forum Excel General
    Replies: 5
    Last Post: 04-21-2010, 12:17 PM

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