Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 16
Default Worksheet function?

Hello,
I would like to write a worksheet function which compare the contents in two
cell from a database1 with the contents in two columne in database2.
Whenever there is a match I would like it to return a a prespecified text
(i.e Yes or No)and a value from database2 associated with the found match in
cells of database1.

Empty cells in database1 (in one or both the cells where comparasions values
are found) also needs to be considered as no comparasion should be made (i.e.
do not return the text Yes/No for the first match with any empty cell in
database2).

Anyone that has suggestions?

Kind regards
Jonas
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 336
Default Worksheet function?

This looks like a Vlookup function but with two lookup cells. A way to do
that is to concatenate the pairs of cells in a new column and use that in
your lookup, i.e. if the first cells in database1 are in A2 and B2, insert a
column at C and type in it the formula =A2&B2 and copy it all the way down.
Do the same in datbase2 and then you can use an ordinary Vlookup because
you've now only got one cell to compare.

"Jonas" wrote:

Hello,
I would like to write a worksheet function which compare the contents in two
cell from a database1 with the contents in two columne in database2.
Whenever there is a match I would like it to return a a prespecified text
(i.e Yes or No)and a value from database2 associated with the found match in
cells of database1.

Empty cells in database1 (in one or both the cells where comparasions values
are found) also needs to be considered as no comparasion should be made (i.e.
do not return the text Yes/No for the first match with any empty cell in
database2).

Anyone that has suggestions?

Kind regards
Jonas

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
example using DSUM worksheet function in a VBA function excelman Excel Programming 3 February 9th 06 05:28 PM
Reference the worksheet from a multiple worksheet range function ( DBickel Excel Worksheet Functions 1 May 28th 05 03:49 AM
Can the offset worksheet function reference another worksheet AlistairJ Excel Worksheet Functions 2 May 9th 05 06:18 PM
formula/function to copy from worksheet to worksheet Jen Excel Programming 5 January 11th 05 08:22 PM
worksheet function? KiriumF1 Excel Programming 7 December 7th 04 06:20 PM


All times are GMT +1. The time now is 08:03 PM.

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"