+ Reply to Thread
Results 1 to 7 of 7

Creating a search function. Stuck on formula.

  1. #1
    Forum Contributor
    Join Date
    10-10-2014
    Location
    New Jersey
    MS-Off Ver
    2010 & 2013
    Posts
    276

    Creating a search function. Stuck on formula.

    Hey Everyone. I am stuck on this formula I created. I want to type an item number into B4 and if it matches, I want the info from column E and G to show in B2 and C2. I have come up with a formula that will show the info from column F, but I cannot figure out how to get the info from column G to show in column C. Any help is appreciated.

    Thanks all.


    Item Search.xlsx

  2. #2
    Valued Forum Contributor
    Join Date
    01-19-2012
    Location
    Barrington, IL
    MS-Off Ver
    Excel 2007/2010
    Posts
    1,211

    Re: Creating a search function. Stuck on formula.

    Like this, in column C?

    =IFERROR(VLOOKUP(A6,$D$6:G$602,4,FALSE),"")
    You should hit F5, because chances are I've edited this post at least 5 times.
    Example of Array Formulas
    Quote Originally Posted by Jacc View Post
    Sorry, your description makes no sense. I just made some formula that looks interesting cause I had nothing else to do.
    Click the * below on any post that helped you.

  3. #3
    Forum Contributor
    Join Date
    10-10-2014
    Location
    New Jersey
    MS-Off Ver
    2010 & 2013
    Posts
    276

    Re: Creating a search function. Stuck on formula.

    Geese, I could have sworn I tried that. Thanks for your help!

    I am just curious. Is there a way to do this type of search where the results only show if it is an exact match?

    Thanks.

  4. #4
    Valued Forum Contributor
    Join Date
    01-19-2012
    Location
    Barrington, IL
    MS-Off Ver
    Excel 2007/2010
    Posts
    1,211

    Re: Creating a search function. Stuck on formula.

    You mean like;
    in B
    =IFERROR(VLOOKUP(B4,F6:G602,1,0),"")


    in C
    =IFERROR(VLOOKUP(B4,F6:G602,2,0),"")

    ?

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

    Re: Creating a search function. Stuck on formula.

    When you use the "FALSE" argument in the VLOOKUP, it only looks for exact matches.
    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

  6. #6
    Valued Forum Contributor
    Join Date
    01-19-2012
    Location
    Barrington, IL
    MS-Off Ver
    Excel 2007/2010
    Posts
    1,211

    Re: Creating a search function. Stuck on formula.

    Quote Originally Posted by ChemistB View Post
    When you use the "FALSE" argument in the VLOOKUP, it only looks for exact matches.
    His original Vlookup formulas have a lookup_value which references a unique index number, the false in this case doesn't return an exact match because the lookup tables indexes are based on a Rank formula, which looks at another cell with a Search function. The search function is what is generating non-exact results, as it will return values containing any part of the value typed into B4, the Seach input.

  7. #7
    Forum Contributor
    Join Date
    10-10-2014
    Location
    New Jersey
    MS-Off Ver
    2010 & 2013
    Posts
    276

    Re: Creating a search function. Stuck on formula.

    Thanks for your help Speshul. I have learned a lot from it.

+ 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] Creating a search function in excel 2007
    By lauraexcels in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 08-26-2013, 02:09 PM
  2. Need help creating search function of list
    By romeogbs19 in forum Excel General
    Replies: 15
    Last Post: 11-01-2012, 03:49 PM
  3. Stuck at work and stuck on a count function
    By gregfetzer in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 10-24-2012, 12:47 AM
  4. Stuck with search funktion
    By zekethewolf in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 11-11-2011, 05:01 AM
  5. Creating an advanced search/find function
    By maacmaac in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 02-03-2008, 03:46 AM

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