+ Reply to Thread
Results 1 to 1 of 1

Search function, that also returns near values

  1. #1
    Registered User
    Join Date
    10-29-2012
    Location
    Notts, England
    MS-Off Ver
    365 PRO
    Posts
    63

    Search function, that also returns near values

    Hi,

    I have a table of data that consists of company names and there address, phone number and few other details.

    I have a worksheet that searches through this data to pull in this data for a user that is searching for a particular company - the formula I use for this is;

    =IF($D$8>"",IF(ISERROR(INDEX('\\srukfp02\users\aaron.burchett\Redirected\[Search1.xlsm]CREDITOR ADDRESSES'!$A$2:$K$1028,SMALL(IF('\\srukfp02\users\aaron.burchett\Redirected\[Search1.xlsm]CREDITOR ADDRESSES'!$A$2:$A$1028=$D$8,ROW($A$2:$A$1028)),ROW(1:1))-1,2)),"",INDEX('\\srukfp02\users\aaron.burchett\Redirected\[Search1.xlsm]CREDITOR ADDRESSES'!$A$2:$K$1028,SMALL(IF('\\srukfp02\users\aaron.burchett\Redirected\[Search1.xlsm]CREDITOR ADDRESSES'!$A$2:$K$1028=$D$8,ROW('\\srukfp02\users\aaron.burchett\Redirected\[Search1.xlsm]CREDITOR ADDRESSES'!$A$2:$K$1028)),ROW(1:1))-1,2)),"")

    This works perfectly, but will only return the creditor that exactly matches the search criteria i.e. Microsoft. In reality i might have a few entries in my table for Microsoft; Microsoft, Microsoft corporation, Microsoft head office, etc.

    I want to adapt this function so that we can search Microsft and any 'Company names' from the table with 'Micorsoft' will be pulled.

    I posted this as a formula thread but not 1 reply, im no VBA expert but I think its to advanced for a formula and needs to be written in VBA.
    Attached Files Attached Files

+ 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. Excel search function - That alo returns near value
    By aaron_burr in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 11-18-2014, 04:42 AM
  2. [SOLVED] function that returns interest with different values depending previous cell's results
    By managingcrap in forum Excel Formulas & Functions
    Replies: 9
    Last Post: 11-09-2013, 03:15 AM
  3. Round function returns different values for same calculated input.
    By Kris Kohuth in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 06-23-2011, 11:05 PM
  4. Arrays elements is not returns the values to Calling function
    By amarendra19 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 04-21-2011, 12:44 AM
  5. Function that returns multiple values?
    By ahartman in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 10-14-2009, 10:43 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