+ Reply to Thread
Results 1 to 6 of 6

Looking for: return max value and neighboring cell

  1. #1
    Registered User
    Join Date
    03-04-2008
    Posts
    27

    Looking for: return max value and neighboring cell

    Hi all,

    I'm trying to set up a record sheet of sorts that would have various record categories automatically picking out the proper values from another sheet. I've found that the MAX function works great for this, but I need information from neighboring cells as well.

    For instance... on the sheet of data that the records are picking from, there will be three columns, one for team, one for name and one for number of points. I can use MAX to search through all the people listed and get the highest number of points, but I'd like to have the data accompanied with the person's name and team if possible.

    Hopefully that makes sense... any help is appreciated. I'm running Excel 07... Thanks!

  2. #2
    Forum Contributor Portuga's Avatar
    Join Date
    02-20-2004
    Location
    Portugal
    MS-Off Ver
    365
    Posts
    852
    Have you considered doing a pivot table from your data?
    If you found the solution to your question. Mark the thread as "Solved"
    Thank everyone that helped you with a valid solution by clicking on their

    There is no such thing as a problem, only a temporary lack of a solution

  3. #3
    Registered User
    Join Date
    03-04-2008
    Posts
    27
    Pivot Tables are always an option, but it's not quite as flexible in format as I'd like them. So I was just hoping there might be a way to do it a different way. Possibly use the MAX function to locate the stat, then a function that locates the other cell based on the one MAX finds? I'm just thinking out loud and really don't have an idea -- so any ideas would be helpful.

    Thanks a bunch

  4. #4
    Registered User
    Join Date
    03-04-2008
    Posts
    27
    Any ideas?

    Thanks

  5. #5
    Forum Contributor Portuga's Avatar
    Join Date
    02-20-2004
    Location
    Portugal
    MS-Off Ver
    365
    Posts
    852
    You can use a Vlookup formula, but it will only work if its searching in columns to the right of the "Max" value. Vlookups wont work from right to left (at least in 2003, not sure on 2007)

    What you can do is to insert a new column (As columnA) called "Points duplicate" where you would have =D1 and drag dow (I´m considering D1 and your "Points" column).

    You could then use the Vlookup to look for the max value (you already have) and return its adjacent cell values.
    Last edited by Portuga; 04-04-2008 at 11:09 AM.

  6. #6
    Forum Contributor Portuga's Avatar
    Join Date
    02-20-2004
    Location
    Portugal
    MS-Off Ver
    365
    Posts
    852
    I just learned about this formula combination today. Have a look.

    (attached)
    Attached Files Attached Files
    Last edited by Portuga; 04-04-2008 at 11:47 AM.

+ 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