LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #4   Report Post  
Posted to microsoft.public.excel.programming,microsoft.public.excel
external usenet poster
 
Posts: 8
Default Macro or Formula needed to search data in cells

Hello

No responses so far, so I will simplify my requirements.

The range A1:J30000 is my randomly generated number sequence. And
L1:U5000 is my database of archived sequences.

My worksheet setup:

A1:J30000 L1:U5000
01 02 03 04 05 06 07 08 09 10 01 04 05 06 08 09 12 22 23 27
02 03 04 05 06 07 08 09 10 11 01 03 05 06 07 08 09 14 22 32
03 04 05 06 07 08 09 10 11 12
04 05 06 07 08 09 10 11 12 13
etc

If I wish to check if A1:J*1 contains 7 or more of the numbers in
L1:U1. I use the formula:

=IF(OR((SUM(COUNTIF(L1:U1,A1:J*1))=7)),"bad sequence","useful
sequence")

Ideally if the formula fails the 'logical test', I would like it to
continue testing the next row in the range ie L2:U2, L3:U3. If any row
causes A1:J1 to pass the 'logical test' the formula stops and returns
the result "bad sequence". If all rows in the range L1:U5000 are tested
and A1:J1 fails the test, then the formula returns the result "useful
sequence".

Is it possible that someone could provide a macro or UDF solution to
achieve the above so that after it's tested L1:U1 it automatically
loops through the other rows until it reaches L5000:U5000?

Please note I need to be able to adapt the range and 'logical test'.

Regards

James.

 
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
Sorting and coloring cells, formula or macro help needed domyrat Excel Discussion (Misc queries) 5 April 4th 10 03:18 PM
Search/Sort Formula Help Needed Scott Excel Discussion (Misc queries) 4 February 10th 10 08:20 PM
Search/Sort Formula Help Needed JB Excel Discussion (Misc queries) 0 February 10th 10 06:16 PM
Macro Search and Copy between Cells with unique data david@damprodu Excel Discussion (Misc queries) 2 March 6th 09 12:40 PM
Formula or macro needed for sorting complex data issue. malycom Excel Discussion (Misc queries) 4 November 27th 08 07:24 AM


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