#1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 142
Default Sequential match

Thought I could handle this but it's kicking me good.

If "ALL" of the last 4 entries in colA are in sequential order (ascending or
descending) AND are "ALL" either <=, or, = A1, then display B1 in A12
otherwise nothing.
A B
70 325

33
4
501
88
76
78
100
130

325 <<<A12 Results

Thank you now, and into the future
Luke

  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 5,441
Default Sequential match

Luke,

For your example, witht he last four numbers in A7:A10:

=IF(AND(OR(SUMPRODUCT((A8:A10A7:A9)*1)=3,
SUMPRODUCT((A8:A10<A7:A9)*1)=3),OR(MIN(A7:A10)A1, MAX(A7:A10)<A1)),B1,"")

though it wasn't clear to me if the descending needed to all be less than A1, or....

HTH,
Bernie
MS Excel MVP


"Luke" wrote in message
...
Thought I could handle this but it's kicking me good.

If "ALL" of the last 4 entries in colA are in sequential order (ascending or
descending) AND are "ALL" either <=, or, = A1, then display B1 in A12
otherwise nothing.
A B
70 325

33
4
501
88
76
78
100
130

325 <<<A12 Results

Thank you now, and into the future
Luke



  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 5,441
Default Sequential match

Oops: forgot about the <= / =

=IF(AND(OR(SUMPRODUCT((A8:A10A7:A9)*1)=3,
SUMPRODUCT((A8:A10<A7:A9)*1)=3),OR(MIN(A7:A10)=A1 ,MAX(A7:A10)<=A1)),B1,"")


--
HTH,
Bernie
MS Excel MVP


"Bernie Deitrick" <deitbe @ consumer dot org wrote in message
...
Luke,

For your example, witht he last four numbers in A7:A10:

=IF(AND(OR(SUMPRODUCT((A8:A10A7:A9)*1)=3,
SUMPRODUCT((A8:A10<A7:A9)*1)=3),OR(MIN(A7:A10)A1, MAX(A7:A10)<A1)),B1,"")

though it wasn't clear to me if the descending needed to all be less than A1, or....

HTH,
Bernie
MS Excel MVP


"Luke" wrote in message
...
Thought I could handle this but it's kicking me good.

If "ALL" of the last 4 entries in colA are in sequential order (ascending or
descending) AND are "ALL" either <=, or, = A1, then display B1 in A12
otherwise nothing.
A B
70 325

33
4
501
88
76
78
100
130

325 <<<A12 Results

Thank you now, and into the future
Luke





  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 142
Default Sequential match

I works so far! I have a lot of entries s I will new post if I find any
problems.

Yeah, I was woundering if you would get the meaning.. Essentially I need B1
to show weather the sequence is ascending or descending as well as being
Higher or lower that A1.
Thanks, you're one of the best!
Luke

"Bernie Deitrick" wrote:

Luke,

For your example, witht he last four numbers in A7:A10:

=IF(AND(OR(SUMPRODUCT((A8:A10A7:A9)*1)=3,
SUMPRODUCT((A8:A10<A7:A9)*1)=3),OR(MIN(A7:A10)A1, MAX(A7:A10)<A1)),B1,"")

though it wasn't clear to me if the descending needed to all be less than A1, or....

HTH,
Bernie
MS Excel MVP


"Luke" wrote in message
...
Thought I could handle this but it's kicking me good.

If "ALL" of the last 4 entries in colA are in sequential order (ascending or
descending) AND are "ALL" either <=, or, = A1, then display B1 in A12
otherwise nothing.
A B
70 325

33
4
501
88
76
78
100
130

325 <<<A12 Results

Thank you now, and into the future
Luke




  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 142
Default Sequential match

Thanks a bunch Bernie! I didn't even catch that.
Luke

"Bernie Deitrick" wrote:

Oops: forgot about the <= / =

=IF(AND(OR(SUMPRODUCT((A8:A10A7:A9)*1)=3,
SUMPRODUCT((A8:A10<A7:A9)*1)=3),OR(MIN(A7:A10)=A1 ,MAX(A7:A10)<=A1)),B1,"")


--
HTH,
Bernie
MS Excel MVP


"Bernie Deitrick" <deitbe @ consumer dot org wrote in message
...
Luke,

For your example, witht he last four numbers in A7:A10:

=IF(AND(OR(SUMPRODUCT((A8:A10A7:A9)*1)=3,
SUMPRODUCT((A8:A10<A7:A9)*1)=3),OR(MIN(A7:A10)A1, MAX(A7:A10)<A1)),B1,"")

though it wasn't clear to me if the descending needed to all be less than A1, or....

HTH,
Bernie
MS Excel MVP


"Luke" wrote in message
...
Thought I could handle this but it's kicking me good.

If "ALL" of the last 4 entries in colA are in sequential order (ascending or
descending) AND are "ALL" either <=, or, = A1, then display B1 in A12
otherwise nothing.
A B
70 325

33
4
501
88
76
78
100
130

325 <<<A12 Results

Thank you now, and into the future
Luke






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
Match Criteria & Return Sequential Count Sam via OfficeKB.com Excel Worksheet Functions 8 February 11th 08 03:39 AM
sequential numbers Harley Excel Worksheet Functions 1 January 12th 06 09:57 PM
sequential numbers AndrewRichardWood Excel Discussion (Misc queries) 2 July 20th 05 05:00 PM
Non-sequential VLOOKUP function -OR- sequential sort of web query Eric S Excel Worksheet Functions 1 February 28th 05 07:50 PM
Sequential names on Sequential pages Salt4 Excel Worksheet Functions 2 November 12th 04 04:24 PM


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