+ Reply to Thread
Results 1 to 10 of 10

Formula which detects either exact name or partial name

  1. #1
    Forum Contributor
    Join Date
    09-19-2017
    Location
    London
    MS-Off Ver
    2015
    Posts
    169

    Question Formula which detects either exact name or partial name

    Hi, all

    I have a table in Loss sheet which comprises of Parameter, Unit, Budget, Actual & the Deviation. Another sheet called Query is a raw data table which comprises of data of budget & actual with different parameters for different shops.

    I would like to construct a formula in which it detects the exact shop name from column B in Query or just its partial from column A (could not change the raw data table, it must be in this form, sorry), the month, the parameter and also whether it's actual or budget. And the formula will be located in column Budget & Actual in Loss sheet.

    I believe a construction of Index & Match formula would help. Anyone may enlighten me?

    Thank you in advance for your help. I really appreciate it.
    Attached Files Attached Files
    Last edited by ell_; 04-16-2019 at 03:32 AM.

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

    Re: Complex INDEX & MATCH

    Administrative Note:

    We would very much like to help you with your query, however the thread title does not really convey what your request is about.

    Please take a moment to amend your thread title. Make sure that the title properly explains your request. Your title should be explicit and not be generic (this includes function names used without an indication of what you are trying to achieve).

    Please see Forum Rule #1 about proper thread titles and adjust accordingly. To edit the thread title, open the original post to edit and then click on Go Advanced (bottom right) to access the area where you can edit your title.

    (Note: this change is not optional. No help to be offered until this moderation request has been fulfilled.)
    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.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    Forum Rules (updated August 2023): please read them here.

  3. #3
    Forum Contributor
    Join Date
    09-19-2017
    Location
    London
    MS-Off Ver
    2015
    Posts
    169

    Re: Filter data based on Shop Name and Month

    hi, AliGW

    I've tried several. This is the best I can. Good enough?

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

    Re: Filter data based on Shop Name and Month

    It'll do - it is better. Now, you need to put together a workbook in which you manually enter at least a few lines of expected results (properly calculated). At the moment there are yellow sections with no indication of what you expect to see there. Remember: you know what you want, but we can't read your mind.

    Which version of Excel do you have? There is no 2015 edition.

  5. #5
    Forum Contributor
    Join Date
    09-19-2017
    Location
    London
    MS-Off Ver
    2015
    Posts
    169

    Re: Filter data based on Shop Name and Month

    hi, AliGW

    Also done.

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

    Re: Formula which detects either exact name or partial name

    Which version of Excel are you using? Mac or PC? There is no 2015 for PC.

    Why can't the query produce a table with the shop name filled down? How exactly has that table been produced? PowerQuery?

  7. #7
    Forum Contributor
    Join Date
    09-19-2017
    Location
    London
    MS-Off Ver
    2015
    Posts
    169

    Re: Formula which detects either exact name or partial name

    I'm using Excel PC.

    The table is produced by someone else and the content (not the headers) may be adding from time to time.

  8. #8
    Forum Guru
    Join Date
    08-28-2014
    Location
    USA
    MS-Off Ver
    Excel 2019
    Posts
    17,563

    Re: Formula which detects either exact name or partial name

    Somehow I imagine that there is more to this than I am considering, however perhaps this will be of some help.
    On the Loss sheet cell K5 is populated using: =IF(ISNUMBER(MATCH(K4,Query!T2:T201,0)),K4,LEFT(K4,1))
    Note that the formula references a helper column (T) that has been placed on the Query sheet and which may be moved and/or hidden for aesthetic purposes.
    Note that the value of cell K5 is hidden, for aesthetics, by using white font.
    The formula that populates the Loss table is:
    Formula: copy to clipboard
    Please Login or Register  to view this content.

    Let us know if you have any questions.
    Attached Files Attached Files
    Consider taking the time to add to the reputation of everybody that has taken the time to respond to your query.

  9. #9
    Forum Contributor
    Join Date
    09-19-2017
    Location
    London
    MS-Off Ver
    2015
    Posts
    169

    Re: Formula which detects either exact name or partial name

    Hi, JeteMc

    This works like a charm. Thank you for helping an old post!

  10. #10
    Forum Guru
    Join Date
    08-28-2014
    Location
    USA
    MS-Off Ver
    Excel 2019
    Posts
    17,563

    Re: Formula which detects either exact name or partial name

    You're Welcome. Thank You for the feedback and for marking the thread as 'Solved'. I hope that you have a blessed day.

+ 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. Complex Index Match trouble
    By Aquarock in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 02-19-2019, 10:15 AM
  2. Complex index match lookup
    By vitt4300 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 07-01-2017, 03:37 PM
  3. Complex Offset, Index, Match
    By Gblack686 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 07-19-2016, 12:03 AM
  4. [SOLVED] Complex Match Index formula
    By SamNewey in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 09-16-2015, 05:15 AM
  5. complex index match
    By baker74 in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 06-12-2013, 10:07 AM
  6. Excel 2007 : Complex IF, MATCH & INDEX functions
    By chaosreign in forum Excel General
    Replies: 5
    Last Post: 08-21-2011, 03:52 AM
  7. [SOLVED] Complex Index Match Help (or at least complex to me)
    By Jennifer Reitman in forum Excel General
    Replies: 3
    Last Post: 08-10-2006, 03:55 PM

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