+ Reply to Thread
Results 1 to 15 of 15

Finding a value based on a drop down list value obtained by an =INDIRECT formula

  1. #1
    Registered User
    Join Date
    02-24-2016
    Location
    Canton, Ohio
    MS-Off Ver
    2013
    Posts
    24

    Finding a value based on a drop down list value obtained by an =INDIRECT formula

    I have a spreadsheet called "Master File.xltx".
    In the workbook are the following sheets:
    Express
    Codes
    Lists


    In the Express sheet I have a place where I can look up codes , cell A20 (based on a named range on the lists sheet), the description B20 (using a VLOOKUP based on a table on the codes sheet), and a drop down list G20 (using =INDIRECT validation list). All of this works great. However, I now need to place a value in J20 based on the value in G20. In my LISTS worksheet I have numerous named ranges that is used for the G20 indirect. I then inserted a new column next to each list so that the value in each row of the list now has a secondary value in the column next to it.

    So to clarify K1-K5 is my named range that returns a value in G20 on the Express sheet. I inserted a new column (L), and placed a value next to each item in the list in column K. So back on the Express sheet I want to have J20 return the value in column L, next to the item in the list in column K.

    I tried INDEX and MATCH, but I am getting a #N/A error, which I attribute to the array in the Match function. The formula is looking for a single row, and a range that is in only one column, but I have several rows and several columns for my array to look into. I was hoping to use another =INDIRECT function, but I got an error too. Any ideas?

  2. #2
    Forum Contributor
    Join Date
    10-29-2014
    Location
    udaipur, rajasthan
    MS-Off Ver
    2007
    Posts
    352

    Re: Finding a value based on a drop down list value obtained by an =INDIRECT formula

    could you please upload a sample file with desired result.
    If answer helped you say Thanks by Add Reputation

  3. #3
    Registered User
    Join Date
    02-24-2016
    Location
    Canton, Ohio
    MS-Off Ver
    2013
    Posts
    24

    Re: Finding a value based on a drop down list value obtained by an =INDIRECT formula

    You will have to rename the file extension back to .xltx for it to open. The desired result should be a "3" where there is currently an #N/A error. Currently most of the ranges only have 1 item in the list, but eventually they will have more than just one. So if you look at the named ranges, they are longer than what data is there.

    Due to possible duplicate fixes, the criteria needs to be based on the Code plus the Fix to find the Fail on the Express worksheet.
    Attached Files Attached Files
    Last edited by Udaman; 03-01-2016 at 10:35 AM.

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

    Re: Finding a value based on a drop down list value obtained by an =INDIRECT formula

    Perhaps I don't understand, however it seems to me that the fail could be on the engine codes tab so that the fix and fail would both be based on the code. Given that it would be simple enough to expand the VLOOKUP to include both the fix and fail columns as in the attached copy of your file: Master File2.xlsx
    Let me know if you have any questions.
    Consider taking the time to add to the reputation of everybody that has taken the time to respond to your query.

  5. #5
    Registered User
    Join Date
    02-24-2016
    Location
    Canton, Ohio
    MS-Off Ver
    2013
    Posts
    24

    Re: Finding a value based on a drop down list value obtained by an =INDIRECT formula

    For each code, there is only one description, hence the VLOOKUP. The fixes listed in the table are only there for reference for me to fill out the lists on the Lists tab. But there will be multiple fixes per code (hence the drop down list), and for each fix there will be a fail number. So the Fail number needs to be a combo of the code number and the specific fix. As noted before, the lists I have now are only for place holders, but they will be expanding once I finish entering in all the data.

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

    Re: Finding a value based on a drop down list value obtained by an =INDIRECT formula

    OK, here is a formula that will give values in Express!J4 based on the original (post#1) set up:
    Please Login or Register  to view this content.
    The attached file has a working data validation drop down in Express!A4 and Express!G4.
    Here is a copy of the original file with the changes and formula applied: Master File2.xlsx
    Let me know if you have any questions.

  7. #7
    Registered User
    Join Date
    02-24-2016
    Location
    Canton, Ohio
    MS-Off Ver
    2013
    Posts
    24

    Re: Finding a value based on a drop down list value obtained by an =INDIRECT formula

    SaaaaweeeeT!!! There was no way I was gonna figure that one out on my own, LOL. It works great!

    Thank you so much for the quick help, I've been digging at this for hours!

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

    Re: Finding a value based on a drop down list value obtained by an =INDIRECT formula

    You're welcome and thank you for the feedback. If you haven't already please take a moment to mark the thread 'Solved' using the thread tools link above your first post. I hope that you have a good day.

  9. #9
    Registered User
    Join Date
    02-24-2016
    Location
    Canton, Ohio
    MS-Off Ver
    2013
    Posts
    24

    Re: Finding a value based on a drop down list value obtained by an =INDIRECT formula

    Turns out I ran into a problem once I entered in all my data. See the attached file and the active cell should be returning a value other than what it is there. I played with some of the numbers in the formula, but I wasn't able to get it to produce the correct result. Most of the other codes are working fine, but once I get a list that's too long, it starts to provide errors. Do you mind taking another look at this for me?
    Attached Files Attached Files

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

    Re: Finding a value based on a drop down list value obtained by an =INDIRECT formula

    I really can't say why the VLOOKUP based formula doesn't work, I ran it through the evaluate formula and it worked up to the last step. What I can say is that replacing 13+ 2500 Express!J3 with this Index/Match based formula does give the correct value (1):
    Please Login or Register  to view this content.
    Let me know if you have any questions.

  11. #11
    Registered User
    Join Date
    02-24-2016
    Location
    Canton, Ohio
    MS-Off Ver
    2013
    Posts
    24

    Re: Finding a value based on a drop down list value obtained by an =INDIRECT formula

    That is probably the longest formula I have ever seen, how you were able to wrap your brain around something that long is amazing! It does work now though, so thank you once again for your assistance!

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

    Re: Finding a value based on a drop down list value obtained by an =INDIRECT formula

    Glad that it works for you and thank you again for the feedback. I hope that you have a good day.

  13. #13
    Registered User
    Join Date
    02-24-2016
    Location
    Canton, Ohio
    MS-Off Ver
    2013
    Posts
    24

    Re: Finding a value based on a drop down list value obtained by an =INDIRECT formula

    I wasn't sure if I should reactivate this tread, or link it and start a new one, but what I am trying to do requires all of the above information as reference, although some of the information has been somewhat changed.

    Just to help summarize what I have that is working:

    File is 06-07 1500 Express.xltm

    Worksheet is 06-07 1500 Express

    A20 is a validation list based off information in table "Codes" (table header "Code") on sheet Enginecodes.
    B20 is a VLOOKUP function based on the same table used for A20 (table header "Desc")
    C20 is a validation list using the =INDIRECT(A20) function. The named range is located on sheet "Lists". I have several lists, and the overall range for all lists is L1:EG15

    Here is what I need:

    G20 I need a drop down list based on the selection in C20.

    I tried another indirect using a different list but I get an error. I am not entirely sure how to best format my data source (lists or a table) in order to best retrieve this information. The giant formula in the last few posts worked great for a cell value, but now I need a drop down list.

    What it all looks like is:

    A20 = Engine Code
    B20 = Description
    C20 = Tests
    G20 = Fixes based on selected tests

    The previous links to attached files should still be relevant to this post.

    Let me know if you require any further clarification.

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

    Re: Finding a value based on a drop down list value obtained by an =INDIRECT formula

    The most recent file that we have is 13+ 2500 Express1.xlsx (post #9), and there isn't anything on the tab 13+ 2500 Express, in cells A20, B20, or C20. I would suggest that you start a new thread that has the most updated version of the file that is available. Copy and paste the description of what you need done from post #13. In the file indicate/include your expected outcomes manually, as in what do you expect to see once one of the drop down values from G20 is chosen. Otherwise state if G20 supposed to be the final outcome, as in person goes through the list of fixes until one of them works.

  15. #15
    Registered User
    Join Date
    02-24-2016
    Location
    Canton, Ohio
    MS-Off Ver
    2013
    Posts
    24

    Re: Finding a value based on a drop down list value obtained by an =INDIRECT formula

    Sorry for the confusion, I forgot which file I was working on. I have created a new post here:

    http://www.excelforum.com/showthread...t=#post4335035

    I will set this post to being solved again.

+ 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] Help creating dependant drop-down list NOT using INDIRECT
    By Bleached Lizard in forum Excel General
    Replies: 3
    Last Post: 07-03-2014, 11:55 AM
  2. Formula based on value returned from drop down list
    By westhamm in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 01-21-2014, 01:41 PM
  3. Indirect drop down list not working
    By Narelles in forum Excel General
    Replies: 3
    Last Post: 12-18-2013, 09:16 PM
  4. [SOLVED] Indirect Drop down List hyperlink
    By Supra2JZ in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 10-23-2013, 06:04 AM
  5. Finding the highest number in a column that is obtained by a function
    By wallclock in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 05-16-2013, 06:00 PM
  6. Indirect Function - drop down starts at end of list
    By specialfx in forum Excel Formulas & Functions
    Replies: 16
    Last Post: 04-17-2013, 11:16 AM
  7. Replies: 2
    Last Post: 03-07-2012, 03:16 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