+ Reply to Thread
Results 1 to 5 of 5

vlookup? Match? Index? Macro? im not sure

  1. #1
    Registered User
    Join Date
    02-05-2013
    Location
    Birmingham, Uk
    MS-Off Ver
    Excel 2013
    Posts
    45

    vlookup? Match? Index? Macro? im not sure

    Hi Guys,

    I have a spread sheet containing multiple equipment specs, i want to be able to select different specs and have a drop down list with the names of the equipment that relates to that spec, it can be 1 or 50. There are 10 different spec types, i want to be able to pick just one spec or all 10 in order to generate the name of the equipment.

    Ive tried vlookup, index with a match, IFERROR with index, i cant seem to get it to work can anyone help?

    Thank you

    Craig
    Attached Files Attached Files

  2. #2
    Forum Guru
    Join Date
    08-05-2004
    Location
    NJ
    MS-Off Ver
    365
    Posts
    13,582

    Re: vlookup? Match? Index? Macro? im not sure

    Question 1: Are some or all of the "Specs" required to be filled in. In other words, Can any of the cells in B of Breakdown be left blank? and if left blank then they could apply to any piece of equipment?
    ChemistB
    My 2?

    substitute commas with semi-colons if your region settings requires
    Don't forget to mark threads as "Solved" (Edit First post>Advanced>Change Prefix)
    If I helped, Don't forget to add to my reputation (click on the little star at bottom of this post)

    Forum Rules: How to use code tags, mark a thread solved, and keep yourself out of trouble

  3. #3
    Forum Guru
    Join Date
    08-05-2004
    Location
    NJ
    MS-Off Ver
    365
    Posts
    13,582

    Re: vlookup? Match? Index? Macro? im not sure

    Okay, In Tools, in Column N starting at N3 copied down
    =IF(SUMPRODUCT((OR(ISBLANK(Breakdown!$B$3),Breakdown!$B$3=B3))*(OR(ISBLANK(Breakdown!$B$4),Breakdown!$B$4=C3))*(OR(ISBLANK(Breakdown!$B$5),Breakdown!$B$5=D3))*(OR(ISBLANK(Breakdown!$B$6),Breakdown!$B$6=E3))*(OR(ISBLANK(Breakdown!$B$7),Breakdown!$B$7=F3))*(OR(ISBLANK(Breakdown!$B$8),Breakdown!$B$8=G3))*(OR(ISBLANK(Breakdown!$B$9),Breakdown!$B$9=H3))*(OR(ISBLANK(Breakdown!$B$10),Breakdown!$B$10=I3))*(OR(ISBLANK(Breakdown!$B$11),Breakdown!$B$11=J3))*(OR(ISBLANK(Breakdown!$B$12),Breakdown!$B$12=K3))),MAX($N$2:$N2)+1,0)
    You can hide that column if you wish

    In Sheet2 K3 copied down to K50
    =IFERROR(INDEX(Tools!$A$3:$A$239, MATCH(ROWS($A$1:$A1),Tools!$N$3:$N$239,0)),"")

    Create a Dynamic Defined name
    EquipList = OFFSET(Sheet2!$K$3,,,SUMPRODUCT(--(LEN(Sheet2!$K$3:$K$50)>0)))

    In Breakdown D3, Data Validation>List
    =EquipList
    Attached Files Attached Files

  4. #4
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    43,986

    Re: vlookup? Match? Index? Macro? im not sure

    I just got back in, to find that ChemistB has already done this. I'd taken a slightly different approach, but haven't been able to post it until now. Anyhow... Here it is....

    I fixed a couple of errors in your Data Validation in "Breakdown".

    The selection takes place on sheet 2, column J and a dynamic DD, based on those results, list shows your options in "Breakdown".
    Attached Files Attached Files
    Glenn




    None of us get paid for helping you... we do this for fun. So DON'T FORGET to say "Thank You" to all who have freely given some of their time to help YOU.

    Temporary addition of accented to illustrate ongoing problem to the TT: L? fh?ile P?draig sona dhaoibh

  5. #5
    Registered User
    Join Date
    02-05-2013
    Location
    Birmingham, Uk
    MS-Off Ver
    Excel 2013
    Posts
    45

    Re: vlookup? Match? Index? Macro? im not sure

    Guys you are both legends! Both work perfectly, thank you so much!

+ 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. Replies: 3
    Last Post: 05-19-2014, 02:01 PM
  2. Replies: 4
    Last Post: 01-13-2014, 04:16 AM
  3. Use Index+Match function in Excel macro instead of Vlookup
    By monhw in forum Excel Programming / VBA / Macros
    Replies: 11
    Last Post: 03-07-2013, 01:32 AM
  4. Replies: 13
    Last Post: 12-13-2012, 11:44 AM
  5. Replies: 2
    Last Post: 03-16-2012, 12:03 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