Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 1,670
Default How to validate the overlap zone?

There is a pair of numbers
(x,y) x is always larger than y
I would like to determine two pair of numbers in order to find out whether
they are matched or not, the matched condition is shown below

The spacing level is 8 in cell F1
Example 1
Location: 29 in cell A1, 25 in cell B1, 27 in cell C1, 23 in cell D1
(29,25) and (27,23) : they are overlap each other between 25-27, then
return yes in cell E1

(28,26) and (18,14) : they are not overlap each other, so I look for the
next spacing level (18+8,14+8) = (26,22), so mathcing (28,26) and (26,22) we
find out that they are overlap each other in 26, then return yes in cell E1

(28,26) and (22,17) : they are not overlap each other, so I look for the
next spacing level (22+8,17+8) = (30,25), so mathcing (28,26) and (30,25)
they are overlap each other between 26-28, then return yes in cell E1

Does anyone have any suggestions on how to do it in excel?
Thank everyone very much for any suggestions
Eric

  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 15,768
Default How to validate the overlap zone?

Try this...

=IF(OR(MAX(0,MIN(A1,C1)-MAX(B1,D1)+1),MAX(0,MIN(A1,C1+F1)-MAX(B1,D1+F1)+1)),"Yes","No")

--
Biff
Microsoft Excel MVP


"Eric" wrote in message
...
There is a pair of numbers
(x,y) x is always larger than y
I would like to determine two pair of numbers in order to find out whether
they are matched or not, the matched condition is shown below

The spacing level is 8 in cell F1
Example 1
Location: 29 in cell A1, 25 in cell B1, 27 in cell C1, 23 in cell D1
(29,25) and (27,23) : they are overlap each other between 25-27, then
return yes in cell E1

(28,26) and (18,14) : they are not overlap each other, so I look for the
next spacing level (18+8,14+8) = (26,22), so mathcing (28,26) and (26,22)
we
find out that they are overlap each other in 26, then return yes in cell
E1

(28,26) and (22,17) : they are not overlap each other, so I look for the
next spacing level (22+8,17+8) = (30,25), so mathcing (28,26) and (30,25)
they are overlap each other between 26-28, then return yes in cell E1

Does anyone have any suggestions on how to do it in excel?
Thank everyone very much for any suggestions
Eric



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
Tracking Time Zone Akash Maheshwari Excel Discussion (Misc queries) 2 July 19th 07 09:20 AM
convert time from one zone to other zone in excel ram Excel Worksheet Functions 1 April 25th 07 01:24 PM
Time Zone.. Trevor M Excel Discussion (Misc queries) 1 April 10th 06 08:49 AM
Time Zone Adjustments lsmft Excel Discussion (Misc queries) 4 March 11th 06 04:46 PM
time zone chart R.VENKATARAMAN Excel Worksheet Functions 1 December 11th 04 12:43 PM


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