Share via

Vlookup returning largest value

Anonymous
2018-07-16T13:31:39+00:00

I need help writing a formula that will do a vlookup and return the largest value - Example:

A table of data has account numbers - and the clients payment abouts are listed for each month.  I want to return the largest payment the client made:

Account         Month         Payment

1234               Jan               100.00

1234               Feb               5500.00

1234               March          14144.

In my new spreadsheet for 1234 I would want the vlookup to return the 14144 value since that was the largest payment.

Microsoft 365 and Office | Excel | For home | Windows

Locked Question. This question was migrated from the Microsoft Support Community. You can vote on whether it's helpful, but you can't add comments or replies or follow the question.

0 comments No comments

6 answers

Sort by: Most helpful
  1. Ashish Mathur 102K Reputation points Volunteer Moderator
    2018-07-16T23:28:01+00:00

    Hi,

    Create a Pivot Table.  Drag Account to the Row labels and Payment to the value area section.  Right click on any number in the value area section and select Max.

    Hope this helps.

    Was this answer helpful?

    1 person found this answer helpful.
    0 comments No comments
  2. Andreas Killer 144.1K Reputation points Volunteer Moderator
    2018-07-16T13:39:21+00:00

    F2: {=MAX((F1=A2:A7)*C2:C7)}

    Note:

    The {} means this is an array formula.

    Copy the formula without the {} into the formula bar and press CTRL-SHIFT-ENTER

    After that the {} appears around the formula.

    Andreas.

    Was this answer helpful?

    1 person found this answer helpful.
    0 comments No comments
  3. Vijay A. Verma 104.9K Reputation points Volunteer Moderator
    2018-07-16T17:39:06+00:00

    Let's assume that your account number is in sheet2. You can use following formula in this case

    =MAX(INDEX((SHEET2!F1=A2:A100)*(C2:C100),,))

    Was this answer helpful?

    0 comments No comments
  4. Anonymous
    2018-07-16T14:35:49+00:00

    I was doing the vlookup as my list of acct numbers is on another tab - so this doesn't seem to be working for me)?

    Was this answer helpful?

    0 comments No comments
  5. Vijay A. Verma 104.9K Reputation points Volunteer Moderator
    2018-07-16T14:23:25+00:00

    Building upon the formula suggested by Andreas where F1 has the account number, you can use following formula which doesn't require to be entered as Array

    =MAX(INDEX((F1=A2:A100)*(C2:C100),,))

    Was this answer helpful?

    0 comments No comments