+ Reply to Thread
Results 1 to 11 of 11

two formulas in one cell

  1. #1
    Registered User
    Join Date
    04-28-2004
    Posts
    35

    two formulas in one cell

    hello this is an easy one for someone. sorry in advance but I tried searching but I think my IT Dept blocked something because it just gives me a blank screen when I try.

    I need a cell to 1st add 2 cells together, then if the sum of that is greater than 18.50 it changes it to 18.50. (18.50 is the salery cap).

    thank you!

  2. #2
    Registered User
    Join Date
    06-10-2009
    Location
    AC
    MS-Off Ver
    Excel 2003
    Posts
    9

    Re: two formulas in one cell

    =IF(SUM(C20:D20)>18.5,18.5,SUM(C20:D20))

    if the sum if greater than 18.5, value is 18.5, otherwise, the sum of the two values

  3. #3
    Registered User
    Join Date
    04-28-2004
    Posts
    35

    Re: two formulas in one cell

    this is only resulting in 18.50 no matter what

  4. #4
    Registered User
    Join Date
    04-28-2004
    Posts
    35

    Re: two formulas in one cell

    here is the spreadsheet
    Attached Files Attached Files

  5. #5
    Forum Expert
    Join Date
    11-27-2007
    Location
    New Jersey, USA
    MS-Off Ver
    2013
    Posts
    1,669

    Re: two formulas in one cell

    formula needs to be

    HTML Code: 
    change ":" to ",".
    You don't want to add the range, only the two cells J15 and Q15.

    see the attached file.
    modytrane
    Attached Files Attached Files

  6. #6
    Registered User
    Join Date
    04-28-2004
    Posts
    35

    Re: two formulas in one cell

    thank you!!!

  7. #7
    Valued Forum Contributor
    Join Date
    11-11-2008
    Location
    Euro
    MS-Off Ver
    2007, 2010
    Posts
    470

    Re: two formulas in one cell

    or An alternative - it may be more simple:

    =MIN(18.5,SUM(J15,Q15))

  8. #8
    Registered User
    Join Date
    04-28-2004
    Posts
    35

    Re: two formulas in one cell

    i just ran into another issue. If the sum = zero it needs to stay @ zero.

  9. #9
    Registered User
    Join Date
    06-10-2009
    Location
    AC
    MS-Off Ver
    Excel 2003
    Posts
    9

    Re: two formulas in one cell

    change the format to currency

  10. #10
    Forum Expert
    Join Date
    11-27-2007
    Location
    New Jersey, USA
    MS-Off Ver
    2013
    Posts
    1,669

    Re: two formulas in one cell

    see attached.
    I modified the formula.
    it works
    modytrane
    Attached Files Attached Files

  11. #11
    Valued Forum Contributor
    Join Date
    11-11-2008
    Location
    Euro
    MS-Off Ver
    2007, 2010
    Posts
    470

    Re: two formulas in one cell

    Quote Originally Posted by modytrane View Post
    see attached.
    I think the fomula
    =IF(SUM(J15,Q15)>18.5,18.5,IF(SUM(J15,Q15)=0,0,SUM(J15,Q15)))
    is the same as
    =IF(SUM(J15,Q15)>18.5,18.5,SUM(J15,Q15))

    and the result also like as the another formula
    =MIN(18.5,SUM(J15,Q15))

+ 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