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

I am needing to compare all values in an array to see if they are within 8 of
one another. The following is a sample of the data. I need this to also
return the locations within the array by some method (Coloring the cells,
list with row and column locations, or maybe a pause for the user to write
down the locations).

Any help with this would be great.

a b c d e f g h i j
1 0 25 50 75 100 125 150 175 200 225
2 42 67 92 117 142 167 192 217 242 267
3 84 109 134 159 184 209 234 259 284 309
4 126 151 176 201 226 251 276 301 326 351
5 168 193 218 243 268 293 318 343 368 393
6 210 235 260 285 310 335 360 385 410 435
6 252 277 302 327 352 377 402 427 452 477

  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 6,953
Default Compare Values

Use a formula like this with conditional formatting:

=SUMPRODUCT((ABS($A$1:$J$7-A1)<8)*1)1

If you just want an indicator of which cells have at least one corresponding
cell with an absolute difference of less than 8. You could apply this as a
conditional formatting formula.

--
Regards,
Tom Ogilvy


"Judsen Jones" wrote:

Look at f1 and a4. The difference between these cells is 1.

"Tom Ogilvy" wrote:

Looks like none of your numbers are within 8 of any other number. Perhaps a
revised explanation.

Look at Conditional Formatting under the Format menu.

--
Regards,
Tom Ogilvy

"Judsen Jones" <Judsen wrote in message
...
I am needing to compare all values in an array to see if they are within 8

of
one another. The following is a sample of the data. I need this to also
return the locations within the array by some method (Coloring the cells,
list with row and column locations, or maybe a pause for the user to write
down the locations).

Any help with this would be great.

a b c d e f g h i j
1 0 25 50 75 100 125 150 175 200 225
2 42 67 92 117 142 167 192 217 242 267
3 84 109 134 159 184 209 234 259 284 309
4 126 151 176 201 226 251 276 301 326 351
5 168 193 218 243 268 293 318 343 368 393
6 210 235 260 285 310 335 360 385 410 435
6 252 277 302 327 352 377 402 427 452 477




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 values on sheet 1 to values on sheet2 Colin Excel Worksheet Functions 2 August 2nd 06 07:19 PM
Excel Compare values in columns & display missing values in a new cpetta Excel Discussion (Misc queries) 1 April 2nd 05 05:51 AM
How do i compare values from two sheet and copy & paste if values match? rozb Excel Programming 0 March 5th 04 12:06 AM
compare values between workbooks and copy values bgardiner Excel Programming 0 September 9th 03 03:54 PM


All times are GMT +1. The time now is 10:12 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"