+ Reply to Thread
Results 1 to 7 of 7

Search function with Vlookup

Hybrid View

  1. #1
    Registered User
    Join Date
    07-07-2012
    Location
    India
    MS-Off Ver
    Excel 2013
    Posts
    16

    Search function with Vlookup

    I need help to find number. I have used Vlookup function but it search only single number not repeated number.
    help appreciated.find attached file
    Attached Files Attached Files

  2. #2
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    53,048

    Re: Search function with Vlookup

    How many returns are you expecting? vlookup will only ever return the vvery 1st match it fionds.

    In your sample WB, put this ARRAY formula in C4, then copy down and across as needed...
    =IFERROR(INDEX(GaugeRack!C:C,SMALL(IF(GaugeRack!$C$3:$C$405=FindGauge!$B$4,ROW(GaugeRack!$C$3:$C$405)),ROWS($A$1:A1))),"")
    ...confirmed by pressing CTRL+SHIFT+ENTER to activate the array, not just ENTER. You will know the array is active when you see curly braces { } appear around your formula. If you do not CTRL+SHIFT+ENTER you will get an error or a clearly incorrect answer. Press F2 on that cell and try again.
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools
    3. Click on the star if you think someone helped you

    Regards
    Ford

  3. #3
    Valued Forum Contributor
    Join Date
    12-28-2014
    Location
    NSW, Australia
    MS-Off Ver
    MS365
    Posts
    606

    Re: Search function with Vlookup

    Is this what you were looking for?



    Edit: I really need to remember to refresh b4 posting. FDibbins beat me again
    Attached Files Attached Files

  4. #4
    Registered User
    Join Date
    07-07-2012
    Location
    India
    MS-Off Ver
    Excel 2013
    Posts
    16

    Re: Search function with Vlookup

    Yes, Sir, this is it I was looking for , Perfect.

    Thanks to all contributor and Admin.
    I like this forum I got solution within few minutes.

  5. #5
    Valued Forum Contributor
    Join Date
    03-20-2011
    Location
    UK
    MS-Off Ver
    Excel 2007/10/16
    Posts
    840

    Re: Search function with Vlookup

    You on Excel 2013

    You can use Aggregate without using CTRL+SHIFT+ENTER!
    C4
    Formula: copy to clipboard
    =IFERROR(INDEX(GaugeRack!C:C,AGGREGATE(15,6,ROW(GaugeRack!$C$3:$C$405)/(GaugeRack!$C$3:$C$405=$B$4),ROW($A1))),"")
    Copy down and cross
    or
    Formula: copy to clipboard
    =IFERROR(INDEX(GaugeRack!C:C,SMALL(INDEX((GaugeRack!$C$3:$C$405=$B$4)*ROW(GaugeRack!C$3:C$405),0),COUNTIF(GaugeRack!$C$3:$C$405,"<>"&$B$4)+ROWS($4:4))),"")
    Copy down and cross.
    Last edited by micope21; 12-13-2015 at 12:18 PM.
    To help you by my post? it would be nice to click on to say "Thank you".
    If you are happy with a solution to your problem?
    Click Thread Tools above your first post,
    select "Mark your thread as Solved".

  6. #6
    Registered User
    Join Date
    07-07-2012
    Location
    India
    MS-Off Ver
    Excel 2013
    Posts
    16

    Re: Search function with Vlookup

    Aggregate also working .

    Thanks Sir.

  7. #7
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    53,048

    Re: Search function with Vlookup

    Happy to help

+ 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] Vlookup with Search function in list
    By newbie4 in forum Excel Formulas & Functions
    Replies: 14
    Last Post: 01-13-2015, 11:40 PM
  2. SEARCH function for multiple variables - VLOOKUP?
    By Texastom123 in forum Excel Formulas & Functions
    Replies: 46
    Last Post: 02-11-2014, 02:09 PM
  3. Vlookup Search Function
    By overwilhelmed in forum Excel General
    Replies: 2
    Last Post: 09-19-2011, 06:04 PM
  4. Vlookup and Search function in one
    By triplescoop in forum Excel Programming / VBA / Macros
    Replies: 9
    Last Post: 05-26-2011, 08:21 AM
  5. Condensing vlookup and search function
    By pvo2 in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 04-06-2008, 11:49 PM
  6. Vlookup & search function help
    By VBA Noob in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 06-23-2006, 07:37 PM
  7. VLookup function to search an entire workbook
    By liseladele in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 11-09-2005, 08:40 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