+ Reply to Thread
Results 1 to 8 of 8

Sum Function

  1. #1
    Registered User
    Join Date
    05-24-2012
    Location
    Camrose, AB
    MS-Off Ver
    Excel 2008
    Posts
    3

    Sum Function

    I am using Excel 2008. In cell c7, I have an if statement that gives me a value of 2. In cell c15, I have another if statement that gives me a value of 3. I would now like excel to choose the biggest number from these two if statement values.

  2. #2
    Forum Expert dilipandey's Avatar
    Join Date
    12-05-2011
    Location
    Dubai, UAE
    MS-Off Ver
    1997 - 2016
    Posts
    8,191

    Re: Sum Function

    Hi Helge2,

    Welcome to the forum.

    You can use the below formula:-

    =max(C7,C15)

    Regards,
    DILIPandey

    <click on below 'star' if this helps>
    DILIPandey, Excel rMVP
    +919810929744 (India), +971528225509 (Dubai), [email protected]

  3. #3
    Registered User
    Join Date
    05-24-2012
    Location
    Camrose, AB
    MS-Off Ver
    Excel 2008
    Posts
    3

    Re: Sum Function

    OK, I tried =max(C7,C15) in cell c17 but it gives me a value of 0.

  4. #4
    Forum Expert dilipandey's Avatar
    Join Date
    12-05-2011
    Location
    Dubai, UAE
    MS-Off Ver
    1997 - 2016
    Posts
    8,191

    Re: Sum Function

    What values you have in C7 and C15?
    Max function picks the maximum values in reference... I would suggest you to do little exploring on Max function .. upload the sample workbook in case of any issues. thanks.


    Regards,
    DILIPandey

    <click on below 'star' if this helps>

  5. #5
    Forum Expert Cutter's Avatar
    Join Date
    05-24-2004
    Location
    Ontario,Canada
    MS-Off Ver
    Excel 2010
    Posts
    6,451

    Re: Sum Function

    Do you by chance have your IF()s, saying something like =IF(something,"2","") and =IF(something,"3","").
    If so, then the MAX() will return 0 because you have made your 2 and 3 text values by enclosing them in quotes.
    Remove the quotes from the numbers to make them numeric.

  6. #6
    Registered User
    Join Date
    05-24-2012
    Location
    Camrose, AB
    MS-Off Ver
    Excel 2008
    Posts
    3

    Smile Re: Sum Function

    Nice! Getting rid of the quotation marks made it work! Thanks Guys!

  7. #7
    Forum Expert dilipandey's Avatar
    Join Date
    12-05-2011
    Location
    Dubai, UAE
    MS-Off Ver
    1997 - 2016
    Posts
    8,191

    Re: Sum Function

    Great...!!

    Special thanks to Cutter

    Helge2, suggest you to mark this thread as [SOLVED]. thanks.

    Regards,
    DILIPandey

    <click on below 'star' if this helps>

  8. #8
    Forum Expert Cutter's Avatar
    Join Date
    05-24-2004
    Location
    Ontario,Canada
    MS-Off Ver
    Excel 2010
    Posts
    6,451

    Re: Sum Function

    @helge2
    You're welcome, and thanks for the 'star tap'. Don't forget to mark your thread as SOLVED (for instructions see rule #9 by clicking Forum Rules @ top of page)

    @dilipandey
    Thanks for the 'star tap'. The crystal ball I got for my birthday is paying off.

+ 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