+ Reply to Thread
Results 1 to 6 of 6

Using LEFT & FIND inside INDEX & SMALL function

  1. #1
    Registered User
    Join Date
    05-02-2024
    Location
    London
    MS-Off Ver
    Office 365
    Posts
    2

    Using LEFT & FIND inside INDEX & SMALL function

    Hi, I am using an INDEX and SMALL formula that is working, but due to the data having 2 different formats to be summarised as 1, I am having to use a seperate column to over come the 2 formats and I am wondering if I can do this inside the INDEX and SMALL formula.

    The data is in column B and C. Note that in column C, Joe Bloggs has 2 variations.
    data.PNG

    In column A, I have a simple LEFT & FIND formula to create a list that is entirely recognised as "JOE"
    data formula.PNG


    The INDEX and SMALL forumla that is working in column B on the Summary tab is:
    =IFERROR(INDEX(Data!$B:$B,SMALL(IF(Data!$A:$A=B$2,ROW(Data!$A:$A)),ROW(1:1)),1),"")

    and my attempt to not need the LEFT & FIND formula on the data tab in column D is:
    =IFERROR(INDEX(Data!$B:$B,SMALL(IF(LEFT(Data!C:C,FIND(" ",Data!C:C)-1)*1=D$2,ROW(Data!$C:$C)),ROW(1:1)),1),"")

    summary.PNG

    How can I amend the INDEX and SMALL formula to essentially search for the first name and then use that to drive the INDEX and SMALL list that is created?

    I have uploaded the excel file for reference

    Any help greatly appreciated
    Attached Images Attached Images
    Attached Files Attached Files

  2. #2
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (both in England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2505 (Windows 11 Home 24H2 64-bit)
    Posts
    91,209

    Re: Using LEFT & FIND inside INDEX & SMALL function

    Welcome to the forum.

    Clear ALL results from column D, then this in D5:

    =FILTER(AllBranches[Enquiry],ISNUMBER(FIND(D2,AllBranches[Person])))

    or:

    =FILTER(AllBranches[Enquiry],LEFT(AllBranches[Person],LEN(D2))=D2)
    Attached Files Attached Files
    Ali


    Enthusiastic self-taught user of MS Excel who's always learning!
    Don't forget to say "thank you" in your thread to anyone who has offered you help. It's a universal courtesy.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    NB:
    as a Moderator, I never accept friendship requests.
    Forum Rules (updated August 2023): please read them here.

  3. #3
    Registered User
    Join Date
    05-02-2024
    Location
    London
    MS-Off Ver
    Office 365
    Posts
    2

    Re: Using LEFT & FIND inside INDEX & SMALL function

    Ahh thank you so much AliGW! There is me over-complicating it (as always!)

    Thats done the job perfectly, and is quicker! Thank you

  4. #4
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (both in England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2505 (Windows 11 Home 24H2 64-bit)
    Posts
    91,209

    Re: Using LEFT & FIND inside INDEX & SMALL function

    365 has a lot of Easter eggs ...

    Glad to have helped.

    If you have not already done so, remember that you can reward anyone who offered you help towards a solution for your issue by clicking the small star icon (* Add Reputation) located in the lower left corner of the post in which the help was given. By doing so you can add to the reputation(s) of each of those who offered help.

  5. #5
    Forum Expert
    Join Date
    07-20-2011
    Location
    Mysore, India.
    MS-Off Ver
    Excel 2019
    Posts
    8,710

    Re: Using LEFT & FIND inside INDEX & SMALL function

    post deleted
    Pl note
    Array formula should be confirmed with Ctrl+Shift+Enter keys together.
    If answere is satisfactory press * to add reputation.

  6. #6
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (both in England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2505 (Windows 11 Home 24H2 64-bit)
    Posts
    91,209

    Re: Using LEFT & FIND inside INDEX & SMALL function

    Please reinstate the post, as it showed another way to do this.

+ 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. [SOLVED] INDEX MATCH SMALL likely function to find nth occurrences in a column
    By ollyhughes1982 in forum Excel General
    Replies: 2
    Last Post: 04-11-2020, 10:25 AM
  2. [SOLVED] Use Left Function Inside Vlookup()
    By jo15765 in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 04-21-2017, 09:11 PM
  3. Replies: 5
    Last Post: 02-26-2017, 04:46 PM
  4. [SOLVED] Help Requested with Nested Small Function Inside Index/Match Formula
    By trandle in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 05-26-2015, 10:07 AM
  5. [SOLVED] Putting OR inside a INDEX SMALL formula for multiple criteria, can it be done?
    By whetu in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 10-22-2014, 06:56 AM
  6. How to show results of index small if from left to right
    By suton in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 08-17-2013, 06:39 AM
  7. Using a LEFT Function inside of an IF Statement
    By Squirt03 in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 02-14-2013, 01:04 AM

Tags for this Thread

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