Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Rampa
 
Posts: n/a
Default 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   Report Post  
David Jessop
 
Posts: n/a
Default

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
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
How do I create a macro of editing keystrokes? scjanner Excel Discussion (Misc queries) 0 January 21st 05 11:07 PM
create a drop down list with the source from a different workbook Sampath Excel Discussion (Misc queries) 2 January 8th 05 07:57 PM
Is it possible to create a macro to group? Mike Piazza Excel Discussion (Misc queries) 1 January 8th 05 12:23 AM
How do you create a drop down list? Aviator Excel Discussion (Misc queries) 2 December 28th 04 03:07 PM
how do i create a list from a cell? AT New Users to Excel 2 December 15th 04 07:40 PM


All times are GMT +1. The time now is 03:01 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"