+ Reply to Thread
Results 1 to 8 of 8

Calling on string associated with value from small function

  1. #1
    Registered User
    Join Date
    10-06-2016
    Location
    Perth, Australia
    MS-Off Ver
    Excel 2010
    Posts
    24

    Calling on string associated with value from small function

    Hi All,
    Have 2 sheets of athletics records from 2 years and want to get best of both into 1 for the school records.
    Ok with the results using the "small function":
    =SMALL(Sheet1:Sheet2!L2:L5,1)
    But need to bring across the name associated with this value and can't figure out how.
    Love some help.
    Kind regards
    Attached Files Attached Files

  2. #2
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,917

    Re: Calling on string associated with value from small function

    using the same ranges as you did, the SMALL could be...
    =SMALL(Sheet1:Sheet2!$L$2:$L$5,ROW(A1))
    (I know you said you wanted 1, but the sheet name is Top 4. The ROW() will eliminate having to change 1 to 2 to 3 etc if you need to copy down)

    To fine the name...
    =IFERROR(INDEX(Sheet1!$K$2:$K$5,MATCH(L2,Sheet1!$L$2:$L$5,0)),INDEX(Sheet2!$K$2:$K$5,MATCH(L2,Sheet2!$L$2:$L$5,0)))
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools
    3. Click on the star if you think someone helped you

    Regards
    Ford

  3. #3
    Forum Guru Bo_Ry's Avatar
    Join Date
    09-10-2018
    Location
    Thailand
    MS-Off Ver
    MS 365
    Posts
    7,211

    Re: Calling on string associated with value from small function

    Please try at K2
    =IFERROR(INDEX(Sheet1!$K$2:$K$5,MATCH(L2,Sheet1!$L$2:$L$5,0)),INDEX(Sheet2!$K$2:$K$5,MATCH(L2,Sheet2!$L$2:$L$5,0)))

  4. #4
    Registered User
    Join Date
    10-06-2016
    Location
    Perth, Australia
    MS-Off Ver
    Excel 2010
    Posts
    24

    Re: Calling on string associated with value from small function

    Really grateful to you both.
    Much appreciated.

  5. #5
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,917

    Re: Calling on string associated with value from small function

    Happy to help, thanks for the feedback

  6. #6
    Registered User
    Join Date
    10-06-2016
    Location
    Perth, Australia
    MS-Off Ver
    Excel 2010
    Posts
    24

    Re: Calling on string associated with value from small function

    We have a snag with the formula guys.
    If there is a duplicate from the SMALL function it only returns the first name not the name associated with each of the duplicates.
    Is there an easy fix?
    Regards

  7. #7
    Forum Guru Bo_Ry's Avatar
    Join Date
    09-10-2018
    Location
    Thailand
    MS-Off Ver
    MS 365
    Posts
    7,211

    Re: Calling on string associated with value from small function

    The easy one would be

    K3 =IFERROR(INDEX(Sheet1!$K$2:$K$5,MATCH(L3,Sheet1!$L$2:$L$5)),INDEX(Sheet2!$K$2:$K$5,MATCH(L3,Sheet2!$L$2:$L$5)))

    Remove 0 in match that will look for last duplicate record. if you have 4 duplicate it will go to the last one.

  8. #8
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,917

    Re: Calling on string associated with value from small function

    If you will have duplicates (I thought you might), then it would probably be better to include a helper column to deal with the tie breaks. Let me know if this is something you would consider?

+ 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 Small Function works when small(array,1),small(array,2) are same ?
    By bkvenkat in forum Excel Formulas & Functions
    Replies: 9
    Last Post: 06-02-2015, 02:00 AM
  2. [SOLVED] help with calling a function (B) and return control of program flow to the calling functio
    By john/nyc in forum Excel Programming / VBA / Macros
    Replies: 13
    Last Post: 10-26-2012, 11:06 AM
  3. [SOLVED] Matching a small # string against a larger # string
    By Newbie1973 in forum Excel Programming / VBA / Macros
    Replies: 20
    Last Post: 04-01-2012, 07:28 PM
  4. Calling routine with name stored in string variable
    By Helge in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 05-16-2011, 12:07 PM
  5. Extract small string of text from larger string
    By mark_jam3s in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 09-23-2010, 05:36 AM
  6. calling string as a matrix
    By airman000616 in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 03-07-2009, 02:06 PM
  7. calling variable within string
    By [email protected] in forum Excel Formulas & Functions
    Replies: 8
    Last Post: 05-04-2006, 10:10 AM

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