Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 9
Default Compare ranges for exactness

Is there a simple way to compare ranges for exactness? Let's say there are two
ranges of an identical number of cells. One would like to see if each cell is
of one range is identical to the corresponding range of the other cell. One
does not care what the difference. One only cares as to whether the ranges in
total are exact. One could write some code to compare each cell, cell by cell,
but I was wonder if there were some function that could be called.

Thanks,
Jeff

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 38
Default Compare ranges for exactness

Simply use an equality function. Let's say you want to
compare range A1:D10 against range E1:H10 on the same
sheet. In I1 enter =A1=E1 then fill down and across to
match the size of the range. If you are working on two
different worksheets you can use the same idea, using
something like =Sheet1!A1=Sheet2!A1.

-----Original Message-----
Is there a simple way to compare ranges for exactness?

Let's say there are two
ranges of an identical number of cells. One would like to

see if each cell is
of one range is identical to the corresponding range of

the other cell. One
does not care what the difference. One only cares as to

whether the ranges in
total are exact. One could write some code to compare

each cell, cell by cell,
but I was wonder if there were some function that could

be called.

Thanks,
Jeff

.

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 9
Default Compare ranges for exactness

Mike,

Thanks,
Jeff

Simply use an equality function. Let's say you want to
compare range A1:D10 against range E1:H10 on the same
sheet. In I1 enter =A1=E1 then fill down and across to
match the size of the range. If you are working on two
different worksheets you can use the same idea, using
something like =Sheet1!A1=Sheet2!A1.

-----Original Message-----
Is there a simple way to compare ranges for exactness?

Let's say there are two
ranges of an identical number of cells. One would like to

see if each cell is
of one range is identical to the corresponding range of

the other cell. One
does not care what the difference. One only cares as to

whether the ranges in
total are exact. One could write some code to compare

each cell, cell by cell,
but I was wonder if there were some function that could

be called.

Thanks,
Jeff

.









  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default Compare ranges for exactness

There is no built in VBA function to do it.

You could use an array formula


? Evaluate("=NOT(OR(A1:B10<C1:D10))")
False


Range("C1:D10").Value = Range("A1:B10").Value
? Evaluate("=NOT(OR(A1:B10<C1:D10))")
True


--
Regards,
Tom Ogilvy

"JeffFinnan" wrote in message
...
Is there a simple way to compare ranges for exactness? Let's say there are

two
ranges of an identical number of cells. One would like to see if each cell

is
of one range is identical to the corresponding range of the other cell.

One
does not care what the difference. One only cares as to whether the ranges

in
total are exact. One could write some code to compare each cell, cell by

cell,
but I was wonder if there were some function that could be called.

Thanks,
Jeff



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
Compare dates in two different ranges Emece Excel Discussion (Misc queries) 1 May 24th 10 05:48 PM
compare two or more ranges tywlam Excel Worksheet Functions 3 April 23rd 09 10:18 AM
Compare ranges tywlam Excel Worksheet Functions 0 April 23rd 09 04:07 AM
Using IF to compare ranges [email protected] Excel Worksheet Functions 5 April 8th 09 06:47 PM
Compare named ranges [email protected] Excel Worksheet Functions 6 May 10th 06 08:39 AM


All times are GMT +1. The time now is 12:41 AM.

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"