+ Reply to Thread
Results 1 to 2 of 2

How to create a macro that compares a list to another list

  1. #1
    Rampa
    Guest

    How to create a macro that compares a list to another list

    How can i make this macro check for eksample one collum to another collum.
    This is a phone bill that is going to be checked agains a phone book, if some
    of the numbers is equal to one of the numbers in the phonebook, it is going
    to autofill the name for this nr in the phone bill.

  2. #2
    David Jessop
    Guest

    RE: How to create a macro that compares a list to another list

    Hi,

    You don't need to use a macro. You can either use =VLOOKUP or, if you are
    getting more than one bit of data from the phonebook, =MATCH and =INDEX.

    Suppose the column you have the numbers in the bill in is A and the phone
    book is in a range E1:G11, with the phone numbers in the first column, name
    in the second and (say) address in the third. Then

    =VLOOKUP(A1,$E$1:$G$11,2,FALSE)

    would give you the name (if the phone number exists).

    Regards,

    David Jessop

    "Rampa" wrote:

    > How can i make this macro check for eksample one collum to another collum.
    > This is a phone bill that is going to be checked agains a phone book, if some
    > of the numbers is equal to one of the numbers in the phonebook, it is going
    > to autofill the name for this nr in the phone bill.


+ 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