+ Reply to Thread
Results 1 to 3 of 3

Excel macro to search data between two sheets

  1. #1
    Registered User
    Join Date
    04-01-2008
    Posts
    54

    Excel macro to search data between two sheets

    Hi Everybody.

    I have an excel sheet which has two tabs one tab represents Database and other tab represents Search.

    In Search spreadsheet i have placed country and supplier in two cells and below are the heading.

    Could someone please help me out with a macro.

    For example if we input the country name in search spreadsheet it sshould show me all the details below in search sheet for that Country

    Second condition is if we input country name and supplier name in search spreadsheet it should populate the details for that supplier

    Condition is if country name is not found in database there should be prompt mentioning Country not Found and
    the second condition would be if country name is found and supplier is not found then it should prompt supplier not found.
    Attached Files Attached Files

  2. #2
    Forum Expert royUK's Avatar
    Join Date
    11-18-2003
    Location
    Derbyshire,UK
    MS-Off Ver
    Xp; 2007; 2010
    Posts
    26,200
    You can use AdvancedFilter to do this although the results will be saved to the same sheet.
    Hope that helps.

    RoyUK
    --------
    For Excel Tips & Solutions, free examples and tutorials why not check out my web site

    Free DataBaseForm example

  3. #3
    Registered User
    Join Date
    04-01-2008
    Posts
    54

    Excel macro to search data between two sheets

    Hi

    Thank you for the response but i want to create a database for which it becomes very tough job for me to use autofilter option everytime.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

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