+ Reply to Thread
Results 1 to 10 of 10

Index Match / Vlookup / Other formula needed

  1. #1
    Registered User
    Join Date
    03-06-2013
    Location
    Doncaster
    MS-Off Ver
    Excel 2003
    Posts
    5

    Index Match / Vlookup / Other formula needed

    Hello all

    I have been trawling this forum and google to try and get an answer to my problem but so far had little luck for the way I would ideally like it to work.

    Untitled-2.jpg

    Above is the spreadsheet I am trying to sort, I would like the desired results to show as per J3:J10. The result depends on the yellow box (J1) to correspond to row 2 and also only display the colors in column B if there is a "O" in the column that matches J1.

    I also don't want any empty cells when colors aren't available.

    This might be something very simple but i'm not sure of the terminology to find the right answer.

    Thank you in advance for taking the time to look.
    Attached Files Attached Files
    Last edited by rustywrightone; 08-18-2017 at 09:50 AM.

  2. #2
    Forum Expert
    Join Date
    10-10-2016
    Location
    Sheffield
    MS-Off Ver
    365 and rarely 2016
    Posts
    3,212

    Re: Index Match / Vlookup / Other formula needed

    Its not entirely clear what you want
    A sorted or filtered list by typing in J1?
    a formula listing the paint types that safisfy the criteria in J1?

  3. #3
    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,916

    Re: Index Match / Vlookup / Other formula needed

    Welcome to the forum!

    Will you please attach a sample Excel workbook? We are not able to work with or manipulate a picture of one and nobody wants to have to recreate your data from scratch.

    1. Make sure that your sample data are REPRESENTATIVE of your real data. The use of unrepresentative data is very frustrating and can lead to long delays in reaching a solution.

    2. Make sure that your desired solution is also shown (mock up the results manually).

    3. Make sure that all confidential data is removed or replaced with dummy data first (e.g. names, addresses, E-mails, etc.).

    4. Try to avoid using merged cells as they cause lots of problems.

    Unfortunately the attachment icon doesn't work at the moment, so to attach an Excel file you have to do the following: just before posting, scroll down to Go Advanced and then scroll down to Manage Attachments. Now follow the instructions at the top of that screen.

    Please pay particular attention to point 2 (above): without an idea of your intended outcomes, it is often very difficult to offer appropriate advice.
    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.

  4. #4
    Registered User
    Join Date
    03-06-2013
    Location
    Doncaster
    MS-Off Ver
    Excel 2003
    Posts
    5

    Re: Index Match / Vlookup / Other formula needed

    Hi davsth

    Thank you for taking a look.

    This is what I am after.

    Column B
    This is all the available colors for that model but not all colors are available on each trim level (IE Business Edition in D1)

    Columns D: I
    These are all the trim levels available and only the cells under these columns with "O" are available

    I need the formula to find which column (D to I) it needs depending on the value in J1 and if it has a "O" then return the color name from column B.

    But to make things more difficult when there is no "O" in the cell I don't want a blank cell in the results.

    I hope that makes sense.

  5. #5
    Registered User
    Join Date
    03-06-2013
    Location
    Doncaster
    MS-Off Ver
    Excel 2003
    Posts
    5

    Re: Index Match / Vlookup / Other formula needed

    Ahhhh, I wondered why I couldn't upload an attachment. Hopefully that shows now.
    Attached Files Attached Files

  6. #6
    Forum Expert
    Join Date
    10-10-2016
    Location
    Sheffield
    MS-Off Ver
    365 and rarely 2016
    Posts
    3,212

    Re: Index Match / Vlookup / Other formula needed

    Perhaps something like the attached
    Attached Files Attached Files

  7. #7
    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,916

    Re: Index Match / Vlookup / Other formula needed

    Sorry for off-topic interjection:

    Although there is no official rule regarding this behaviour, we request that wherever possible both the question AND the answer be provided in substantive detail here within the thread. An attached workbook is an excellent aid for posing a question and offering a solution, but solely doing that with no in thread explanation makes it difficult for researchers to understand or consider the Q & A of this thread without downloading what may be a pointless doc to them, if they can do that at all. Doing that also hides the content from search engines so others may never benefit from this.

    I'm sure you understand, and we look forward to seeing you post your formulas/macros in your posts for the searching benefit of all.

    Thanks again for all your hard work here!

  8. #8
    Registered User
    Join Date
    03-06-2013
    Location
    Doncaster
    MS-Off Ver
    Excel 2003
    Posts
    5

    Re: Index Match / Vlookup / Other formula needed

    Hi davsth

    That does get the correct results thank you. Is there a way to condense it all down so it is a singular formula so no additional cells are required.

    Thank you so much for your help though, i'm just being picky

  9. #9
    Forum Expert
    Join Date
    10-10-2016
    Location
    Sheffield
    MS-Off Ver
    365 and rarely 2016
    Posts
    3,212

    Re: Index Match / Vlookup / Other formula needed

    Well if you want a list to choose from for j1, it is much better to have a dropdown to choose from rather than being hard coded or allowing free text. It also makes it much harder to edit and amend in the future. If you dont understand the formula, it is better being small pieces that you can combine together

    firstly you need the column based on match j1 against the values in row 2
    this column needs evaluating to see if a "O" is in it and if so return the row number, but to avoid errors, calculate how many rows meet the criteria

    However whilst I wouldn't recommend it as it is harder to edit the following in cell l3 entered as an array (shift ctrl enter) should work

    =IF(A3>COUNTIF(OFFSET($C$3,0,MATCH($J$1,$D$2:$I$2,0),13,1),"o"),"",INDEX($B$3:$B$15,SMALL(IF(OFFSET($C$3,0,MATCH($J$1,$D$2:$I$2,0),13,1)<>"",$A$3:$A$15,""),A3)))

    you just copy the formulas from l2 and m2 into the formula you have been given and make sure they are absolute references

  10. #10
    Registered User
    Join Date
    03-06-2013
    Location
    Doncaster
    MS-Off Ver
    Excel 2003
    Posts
    5

    Re: Index Match / Vlookup / Other formula needed

    Hi davsth

    That formula works thank you. I don't need the drop downs as the result will come from other sheets so this formula is exactly what I was after. Thank you so much.
    Last edited by AliGW; 08-18-2017 at 12:31 PM. Reason: Unnecessary quotation removed.

+ 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. IF INDEX MATCH formula help needed
    By keith_parks in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 05-02-2017, 04:33 AM
  2. Multi Tier - Match & Vlookup or INDEX or INDIRECT function help needed
    By yogananda.muthaiah in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 03-26-2016, 12:32 AM
  3. [SOLVED] Vlookup or Index Match Formula Needed
    By artiststevens in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 01-07-2015, 01:09 AM
  4. Replies: 2
    Last Post: 09-27-2014, 04:34 PM
  5. Index match formula help needed
    By mrteater in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 04-29-2014, 09:41 AM
  6. [SOLVED] INDEX & MATCH formula help needed please
    By Twaddy006 in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 01-31-2014, 12:30 PM
  7. [SOLVED] Index, Match, Vlookup, Hlookup help needed
    By Gemma_10 in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 11-20-2013, 01:05 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