+ Reply to Thread
Results 1 to 4 of 4

Sum of A1+A2+A3, but use A1 in sum only if it is greater than A2, if not use A2 - how to?

  1. #1
    Registered User
    Join Date
    09-18-2014
    Location
    Melbourne
    MS-Off Ver
    Windows 8
    Posts
    4

    Sum of A1+A2+A3, but use A1 in sum only if it is greater than A2, if not use A2 - how to?

    Hi there,

    I need some help writing a formula for this:

    The sum of A1+A2+A3, but use A1 in the sum only if it is greater than A2 (and if so then don't use A2), if not use A2 only...

    Basically A1 cell represents the calculated brokerage on shares eg. $10, A2 represents the minimum brokerage eg. $15, and A3 represents the purchase value of shares eg. $100.

    So the answer I want in this case is $15+$100=$115, as the $10 is less than the minimum amount it is not included in the sum.

    Thanks for your help!

  2. #2
    Forum Expert Tony Valko's Avatar
    Join Date
    12-31-2011
    Location
    Pittsburgh
    MS-Off Ver
    2002, 2007:2013
    Posts
    18,890

    Re: Sum of A1+A2+A3, but use A1 in sum only if it is greater than A2, if not use A2 - how

    Maybe this...

    =MAX(A1,A2)+A3
    Biff
    Microsoft MVP Excel
    Keep It Simple Stupid

    Let's Go Pens. We Want The Cup.

  3. #3
    Registered User
    Join Date
    09-18-2014
    Location
    Melbourne
    MS-Off Ver
    Windows 8
    Posts
    4

    Re: Sum of A1+A2+A3, but use A1 in sum only if it is greater than A2, if not use A2 - how

    Wow, awesome reply, it works, and so simple!
    Thank you so much Tony, you have just saved me 5hrs!!!
    Kudos.

  4. #4
    Forum Expert Tony Valko's Avatar
    Join Date
    12-31-2011
    Location
    Pittsburgh
    MS-Off Ver
    2002, 2007:2013
    Posts
    18,890

    Re: Sum of A1+A2+A3, but use A1 in sum only if it is greater than A2, if not use A2 - how

    You're welcome. Thanks for the feedback!


    If your question has been solved please mark the thread as being solved.

    In the menu bar above the very first post select Thread Tools, then select Mark this thread as solved.

+ 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] count values greater 2 or greater in a column.
    By ammartino44 in forum Excel General
    Replies: 3
    Last Post: 09-16-2014, 07:05 PM
  2. Replies: 5
    Last Post: 05-04-2012, 06:39 PM
  3. Greater than or Less than.. If Greater Need Difference
    By lemondrplvr in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 07-01-2010, 02:39 AM
  4. Replies: 4
    Last Post: 08-25-2009, 06:39 AM
  5. Greater than if ??
    By parisoe in forum Excel Programming / VBA / Macros
    Replies: 23
    Last Post: 05-18-2009, 12:14 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