+ Reply to Thread
Results 1 to 3 of 3

Check input for existence then pull corresponding data

  1. #1
    Registered User
    Join Date
    03-04-2008
    Posts
    27

    Check input for existence then pull corresponding data

    Hi all,

    Here's what I'm looking to do:

    The workbook will consist of at least two pages:
    1. A user input page
    2. A records page

    On the user input page, there will be two fields to enter information in... one for an exact address (ex: 600 n. nowhere) and one for a casual address (ex: On Nowhere street south of Anywhere Blvd).

    On the records page, I'm going to keep all the addresses and their corresponding casual addresses so that in the future, I don't have to keep inputting both.

    What I'm looking to do is have a formula/function/vba code check the exact address against my records for it already existing -- and if so, pulls the corresponding casual address.

    For example, if last week I entered 600 n. nowhere and then transferred it into my records and then this week, I again entered 600 n. nowhere, the workbook would find the record and place the casual address for me.

    Is this feasible?

    Thanks.
    Last edited by msaz87; 10-07-2008 at 05:44 AM.

  2. #2
    Valued Forum Contributor Richard Schollar's Avatar
    Join Date
    05-23-2006
    Location
    Hampshire UK
    MS-Off Ver
    Excel 2002
    Posts
    1,264
    Hi

    Assuming the address is within a single cell (in col A), and the causal address is within an adjacent cell (in col B) and all your addresses are in A & B columns (say) of sheet Record then you can use a VLOOKUP in the Input sheet:

    =VLOOKUP(A1,Record!A:B,2,0)

    which will match the accurate address entered in A1 against the accurate address in col A of sheet Record and return the corresponding casual address in col B.

    Note that a #N/A will result if the address is not found. if you would prefer an alternative warning of your own making, you can wrap it in an IF:

    =IF(ISNA(VLOOKUP(A1,Record!A:B,2,0)),"Your own warning here",VLOOKUP(A1,Record!A:B,2,0))

    Richard
    Richard Schollar
    Microsoft MVP - Excel

  3. #3
    Forum Expert royUK's Avatar
    Join Date
    11-18-2003
    Location
    Derbyshire,UK
    MS-Off Ver
    Xp; 2007; 2010
    Posts
    26,200
    VLOOKUP should do that, see

    http://www.excel-it.com/excel_functions.htm
    Hope that helps.

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

    Free DataBaseForm example

+ 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. automatically move left one cell after data input by scanner.
    By dgbillings in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 04-24-2010, 10:58 PM
  2. DDE Macros and data formatting
    By JMann in forum Excel Programming / VBA / Macros
    Replies: 12
    Last Post: 03-28-2008, 05:33 AM
  3. Copy Paste Macro
    By xiao85yu in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 03-26-2008, 02:42 PM
  4. copy data of check box is clicked true
    By pichai in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 01-20-2008, 02:13 AM
  5. Push Button With Input Box For Specific Data
    By tacnola in forum Excel Formulas & Functions
    Replies: 13
    Last Post: 11-07-2007, 03: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