+ Reply to Thread
Results 1 to 13 of 13

Sum funtion

  1. #1
    Registered User
    Join Date
    01-01-2010
    Location
    london, england
    MS-Off Ver
    Excel 2007
    Posts
    26

    Sum funtion

    Hi,

    Hoping someone can kindly help. Columns V and Y in the attached file show results of cells based on a VLOOK function. Please can someone advise how I may use the results from columns V and Y to find the maximum or minimum values between a range. For example, for row 2 (row numbers not shown but row 1 is the first one in the attachment) this would be:

    =MAX(C2,C157)

    I don't want to change the VLOOKUP function - I want to put an equation (similar to the one above) in a new cell.

    Grateful for any solution as to how I can do this.

    Thanks,

    Nick
    Attached Images Attached Images

  2. #2
    Forum Contributor
    Join Date
    02-14-2011
    Location
    West Valley City, Utah
    MS-Off Ver
    Excel 2010
    Posts
    108

    Re: Sum funtion

    Good afternoon Nick,

    I'm not 100% sure I understand what it is you're looking to return from a Max function, as it looks like Row 2 in your picture has multiple inconsistent values.

    Hopefully a general description will set you on the right track.
    The Max function usually uses a range (such as :=MAX(V2:Y2) rather than a set of points (such as =MAX(V2,Y2). The difference is a range, which uses a semi colon ( : ) takes all cells between the two numbers into account, whereas a set of points only takes into consideration the points listed (in the above case, V2 and Y2).

    If that doesn't help at all, let me know, as I believe this is an easily solvable problem.

  3. #3
    Registered User
    Join Date
    01-01-2010
    Location
    london, england
    MS-Off Ver
    Excel 2007
    Posts
    26

    Re: Sum funtion

    Quote Originally Posted by Sky188 View Post
    Good afternoon Nick,

    I'm not 100% sure I understand what it is you're looking to return from a Max function, as it looks like Row 2 in your picture has multiple inconsistent values.

    Hopefully a general description will set you on the right track.
    The Max function usually uses a range (such as :=MAX(V2:Y2) rather than a set of points (such as =MAX(V2,Y2). The difference is a range, which uses a semi colon ( : ) takes all cells between the two numbers into account, whereas a set of points only takes into consideration the points listed (in the above case, V2 and Y2).

    If that doesn't help at all, let me know, as I believe this is an easily solvable problem.
    Thank you very much for your prompt reply. In the example above, I need it to be:

    =MAX(C2,C157)

    For example, I want to pick the cell values up from the V and Y rows. Hopefully, this makes sense when looking at the attachment.

    Sorry I am not good at all at explaining online.

    Thanks,

    Nick

  4. #4
    Valued Forum Contributor
    Join Date
    03-16-2012
    Location
    Aarhus, Denmark
    MS-Off Ver
    Excel 2007
    Posts
    992

    Re: Sum funtion

    Something like this:

    =MAX(INDIRECT(V2),INDIRECT(Y2)) ?
    Sincerely
    S?ren Larsen

    "Give a man a fish, and you'll feed him for a day. Give a man a fishing rod, and he'll steal your yacht!"

  5. #5
    Registered User
    Join Date
    06-14-2012
    Location
    Richmond, Virginia
    MS-Off Ver
    Excel 2007
    Posts
    5

    Re: Sum funtion

    I think I understand what you're trying to say. The simplest way to do that is using the if function. Try:

    =if(max(range1)>max(range2),max(range1),max(range2))

  6. #6
    Registered User
    Join Date
    01-01-2010
    Location
    london, england
    MS-Off Ver
    Excel 2007
    Posts
    26

    Re: Sum funtion

    Quote Originally Posted by Søren Larsen View Post
    Something like this:

    =MAX(INDIRECT(V2),INDIRECT(Y2)) ?
    Thanks for the reply. It is something like this I need but your example did not

  7. #7
    Valued Forum Contributor
    Join Date
    03-16-2012
    Location
    Aarhus, Denmark
    MS-Off Ver
    Excel 2007
    Posts
    992

    Re: Sum funtion

    Which values do you want to find the maximum of? Only the 2 or more?

  8. #8
    Registered User
    Join Date
    01-01-2010
    Location
    london, england
    MS-Off Ver
    Excel 2007
    Posts
    26

    Re: Sum funtion

    It would be the range from cell c2 to c157. Hope this helps

  9. #9
    Valued Forum Contributor
    Join Date
    03-16-2012
    Location
    Aarhus, Denmark
    MS-Off Ver
    Excel 2007
    Posts
    992

    Re: Sum funtion

    Then this should work:

    =MAX(INDIRECT(V2):INDIRECT(Y2))

    Assuming that the given range is on the same worksheet. Is this the case?

  10. #10
    Registered User
    Join Date
    01-01-2010
    Location
    london, england
    MS-Off Ver
    Excel 2007
    Posts
    26

    Re: Sum funtion

    Quote Originally Posted by Søren Larsen View Post
    Then this should work:

    =MAX(INDIRECT(V2):INDIRECT(Y2))

    Assuming that the given range is on the same worksheet. Is this the case?
    Thank you so much. Unfortunately no - the cells are in sheet 1 where as this formula will be in sheet 2. Is this possible?

  11. #11
    Valued Forum Contributor
    Join Date
    03-16-2012
    Location
    Aarhus, Denmark
    MS-Off Ver
    Excel 2007
    Posts
    992

    Re: Sum funtion

    Yes, just use this instead:

    =MAX(INDIRECT("'Sheet 1'!"&V2):INDIRECT("'Sheet 1'!"&Y2))

  12. #12
    Registered User
    Join Date
    01-01-2010
    Location
    london, england
    MS-Off Ver
    Excel 2007
    Posts
    26

    Re: Sum funtion

    Quote Originally Posted by Søren Larsen View Post
    Yes, just use this instead:

    =MAX(INDIRECT("'Sheet 1'!"&V2):INDIRECT("'Sheet 1'!"&Y2))
    Thank you so much for your kind help and to all those that also replied.

    Best wishes,

    Nick

  13. #13
    Valued Forum Contributor
    Join Date
    03-16-2012
    Location
    Aarhus, Denmark
    MS-Off Ver
    Excel 2007
    Posts
    992

    Re: Sum funtion

    You are very welcome! Remember to mark your 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)

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