+ Reply to Thread
Results 1 to 2 of 2

Formula to return text that corresponds to a MAX formula done in a different column

  1. #1
    Registered User
    Join Date
    04-05-2012
    Location
    Southfield, Michigan
    MS-Off Ver
    Excel 2003
    Posts
    63

    Formula to return text that corresponds to a MAX formula done in a different column

    Hello,

    I am trying to do the following:

    I am doing some string comparison work.

    So, in columns A-E I am comparing strings to a value in Col F.

    The rows go to about 1000.

    Each row in Column F has a piece of text that I am trying to compare to its corresponding columns in that particular row.

    Example:

    A1: Appleby,
    B1: Oranges,
    C1: Grapes,
    D1: Bananas,
    E1: Apricots,

    F1: Apples

    A2: Up
    B2: Downy
    C2: Right
    D2: Left
    E2: Over

    F2: Down

    I have a comparison formula that I've written as a UDF in Columns K through O that gives the % similarity between the strings in Columns A-E to the value in Column F, by row.

    Example: (Keep in mind, these are going ACROSS in the actual spreadsheet, not down as I have to write it below.)

    K1 = CompareString($F1,A1) = 60%
    L1 = CompareString($F1,B1) = 0%
    M1 = CompareString($F1,C1) = 0%
    N1 = CompareString($F1,D1) = 0%
    O1 = CompareString($F1,E1) = 0%

    K2 = CompareString($F2,A2) = 0%
    L2 = CompareString($F2,A2) = 67%
    M2 = CompareString($F2,A2) = 0%
    N2 = CompareString($F2,A2) = 0%
    O2 = CompareString($F2,A2) = 0%

    (as I mentioned, this goes on to row 1000)

    If I do a MAX formula in Column P, I get 60% in P1, and 67% in P2.

    If I use a =cell("address",(Index(...,Match(Max...)))) formula, I get K1 and L2.


    WHAT I NEED:

    What I need is a formula that Returns the TEXT that corresponds to the 60% and 67%.

    So, I need formula to put in Column Q or Column R that returns the following:

    R1 = Appleby
    R2 = Downy

    Does that make sense?

    Also, I cannot use "ctrl+shift+enter" for these.

    Thanks,

    rjw524

  2. #2
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    44,446

    Re: Formula to return text that corresponds to a MAX formula done in a different column

    Untested, but try:

    Formula: copy to clipboard
    Please Login or Register  to view this content.



    Regards, TMS
    Trevor Shuttleworth - Retired Excel/VBA Consultant

    I dream of a better world where chickens can cross the road without having their motives questioned

    'Being unapologetic means never having to say you're sorry' John Cooper Clarke


+ 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. How to return a that corresponds to min/max value in another row.
    By curt138 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 11-07-2014, 11:05 AM
  2. Return most common text from column cells with formula while ignoring blanks
    By rosco01995 in forum Excel Formulas & Functions
    Replies: 9
    Last Post: 10-29-2014, 03:55 AM
  3. Formula to find and return text string within a cell full of text strings
    By LightingPop in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 12-03-2013, 11:45 PM
  4. formula to return value of column has text
    By n1kk1 in forum Excel General
    Replies: 3
    Last Post: 12-10-2012, 05:18 PM
  5. [SOLVED] Simple formula to match column A, sheet1, with column A, sheet2, return text answer
    By Connie5761 in forum Excel Formulas & Functions
    Replies: 11
    Last Post: 11-14-2012, 02:56 PM
  6. Replies: 5
    Last Post: 11-07-2012, 02:15 PM
  7. Replies: 7
    Last Post: 09-18-2012, 04:17 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