LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 553
Default Repost (Comparing two ranges)

Apologies for the re-post. Need to clarify this to avoid confusion. Is is
possible to compare two ranges and return a list of booleans illustrating
where the values in one range reside in the other.

Assume Range 1 is as follows (A1:A10):
Dog
Cat
Man
Women
Car
Rain
Black
In
Peter
Acid

Assume Range 2 is as follows (A12:A16):
Rain
Blue
Mary
Stick
Dog

In cell A17, I want to insert a SUMPRODUCT function. For the first range
variable of the SUMPRODUCT, I want to illustrate where the items in Range 2
reside in Range 1 as follows. {1,0,0,0,0,1,0,0,0,0} showing that both "Rain"
and "Dog" reside in Range 1 in positions 1 and 6. The the first range in the
SUMPRODUCT function would look like this if you highlighted in and hit F9:

SUMPRODUCT({1,0,0,0,0,1,0,0,0,0}, Range2)

Any ideas on what type of logic I would use within this SUMPRODUCT function
to create the boolean data above?

Thanks

EM


 
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
Comparing two ranges and the positions of duplicates ExcelMonkey Excel Worksheet Functions 3 January 7th 07 06:41 PM
Comparing ranges: ben simpson Excel Discussion (Misc queries) 1 March 8th 06 04:35 AM
Comparing Named ranges apologies for the dodgey post below Sam Crump Excel Worksheet Functions 5 March 7th 06 12:52 PM
Comparing two data ranges for differences. jason.r.swinehart Excel Discussion (Misc queries) 0 January 12th 06 07:50 PM
Comparing ranges and deleting sktnggtr Excel Worksheet Functions 0 September 13th 05 04:01 PM


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

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

About Us

"It's about Microsoft Excel"