+ Reply to Thread
Results 1 to 5 of 5

Cell displays value unless sum of a range exceeds cell value.

  1. #1
    Registered User
    Join Date
    11-03-2012
    Location
    California
    MS-Off Ver
    Excel 2007
    Posts
    17

    Question Cell displays value unless sum of a range exceeds cell value.

    I'm looking for a formula that will display a certain value in a cell, unless the sum of a range exceeds the value in that original cell. Example: I want B3 to display a value of 120 unless the sum of B6 through B10 is greater than 120. Then I want it to display the sum of that range.

    I'm still kind of new to excel, so I hope that makes sense. I tried to Google it, but I can't find exactly what I'm looking for. Thanks!

  2. #2
    Forum Guru
    Join Date
    05-24-2011
    Location
    India
    MS-Off Ver
    Office 2021
    Posts
    2,237

    Re: Cell displays value unless sum of a range exceeds cell value.

    May be this,

    =MAX(120,SUM(B6:B10))
    Regards,
    Haseeb Avarakkan

    __________________________________
    "Feedback is the breakfast of champions"

  3. #3
    Administrator 6StringJazzer's Avatar
    Join Date
    01-27-2010
    Location
    Tysons Corner, VA, USA
    MS-Off Ver
    MS 365 Family 64-bit 2404
    Posts
    24,801

    Re: Cell displays value unless sum of a range exceeds cell value.

    In your example, where does the 120 come from?

    Let's assume it comes from some other formula, like adding together two other cells such as A1+A2. And suppose the range you are talking about is C2:D6. Then your formula is:

    Formula: copy to clipboard
    Please Login or Register  to view this content.


    Now replace "A1+A2" with whatever is giving you 120, and replace "C2:D6" with your actual range.

    A more detailed description of your problem will get a more specific answer.
    Jeff
    | | |會 |會 |會 |會 | |:| | |會 |會
    Read the rules
    Use code tags to [code]enclose your code![/code]

  4. #4
    Registered User
    Join Date
    11-03-2012
    Location
    California
    MS-Off Ver
    Excel 2007
    Posts
    17

    Re: Cell displays value unless sum of a range exceeds cell value.

    Looks like that works Haseeb. Thank you!

  5. #5
    Administrator 6StringJazzer's Avatar
    Join Date
    01-27-2010
    Location
    Tysons Corner, VA, USA
    MS-Off Ver
    MS 365 Family 64-bit 2404
    Posts
    24,801

    Re: Cell displays value unless sum of a range exceeds cell value.

    Haseeb A's formula is cleaner. If you are using the literal number 120, then that formula is your solution. If instead it comes from some other calculation, simply replace "120" with whatever the calculation is.

+ 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] When one cell equals value of another cell, then third cell displays text of fourth cell?
    By spookymyo in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 01-12-2021, 02:12 PM
  2. Change cell value that exceeds other cell value
    By azgal in forum Excel Formulas & Functions
    Replies: 13
    Last Post: 06-07-2014, 04:38 PM
  3. [SOLVED] Colour the first cell in a row/range cell where a value exceeds $x
    By DaveBre in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 05-06-2014, 01:45 AM
  4. Edit Cell Colour if other cell displays specific text
    By macky18 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 11-08-2013, 07:46 AM
  5. Automated Popup When Cell exceeds certain Value
    By shaunzio in forum Excel General
    Replies: 1
    Last Post: 12-18-2008, 06:30 AM

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