+ Reply to Thread
Results 1 to 5 of 5

Finding Max # in a list of similar models

Hybrid View

  1. #1
    Registered User
    Join Date
    06-01-2012
    Location
    New Orleans, US
    MS-Off Ver
    Excel 2007
    Posts
    33

    Finding Max # in a list of similar models

    I have a list of full model #'s and a list of truncated model #'s. What I need a formula to be able to do, is look at the prices for all of the full model #'s and return the highest value as the price in the cell adjacent to the truncated model #. An example file of what I need is attached.

    example.xlsx

    Thanks in advance for your help.

  2. #2
    Forum Expert tigeravatar's Avatar
    Join Date
    03-25-2011
    Location
    Colorado, USA
    MS-Off Ver
    Excel 2003 - 2013
    Posts
    5,361

    Re: Finding Max # in a list of similar models

    elcarp,

    Attached is a modified version of your posted workbook.
    In cell B2 and copied down is this formula:
    =MAX(INDEX(ISNUMBER(SEARCH(A2,$G$2:$G$11))*$H$2:$H$11,))
    Attached Files Attached Files
    Hope that helps,
    ~tigeravatar

    Forum Rules: How to use code tags, mark a thread solved, and keep yourself out of trouble

  3. #3
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    25,412

    Re: Finding Max # in a list of similar models

    Put this array* formula in B2:

    =MAX(IF(LEFT($G$2:$G$11,LEN(A2))=A2,$H$2:$H$11))

    then copy down.

    *An array formula needs to be committed using the key combination of Ctrl-Shift-Enter (CSE) instead of the usual Enter.

    Hope this helps.

    Pete

  4. #4
    Forum Expert JBeaucaire's Avatar
    Join Date
    03-21-2004
    Location
    Bakersfield, CA
    MS-Off Ver
    2010, 2016, Office 365
    Posts
    33,492

    Re: Finding Max # in a list of similar models

    Put this array formula in B2:

    =MAX(IF(LEFT($G$2:$G$11,LEN(A2))=A2, $H$2:$H$11))

    ...confirmed by pressing CTRL-SHIFT-ENTER to activate the array, not just ENTER. Once the first formula is inserted and working, copy that cell downward.
    _________________
    Microsoft MVP 2010 - Excel
    Visit: Jerry Beaucaire's Excel Files & Macros

    If you've been given good help, use the icon below to give reputation feedback, it is appreciated.
    Always put your code between code tags. [CODE] your code here [/CODE]

    ?None of us is as good as all of us? - Ray Kroc
    ?Actually, I *am* a rocket scientist.? - JB (little ones count!)

  5. #5
    Registered User
    Join Date
    06-01-2012
    Location
    New Orleans, US
    MS-Off Ver
    Excel 2007
    Posts
    33

    Re: Finding Max # in a list of similar models

    Tigeravatar, Pete_UK, and JBeaucaire...

    Thank you for your prompt responses. Both solutions work to the job. I will probably use the second suggestion simply because I understand it better, not because it worked better. Thanks all, you just saved me a heap of time.

+ 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