#1   Report Post  
Junior Member
 
Posts: 23
Default Search criterias?

Hi

I need to perform a sort of look-up into a grid of information. I need to find how many times two adjoining cells met a criteria. For example, the grid has random numbers in a 10x10 grid, I need to now how many times "5" AND "9" (for example) appear adjacent to each other in a row. If they are not next to each other the result should come back as zero or false.

I have tried the countif and Hlookup function, but does not account for them being adjacent.

Please help....THANKS
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 15,768
Default Search criterias?

Try this:

Assume the grid is in the range A1:J10

=SUMPRODUCT(--(A1:I10=5),--(B1:J10=9))

Biff

"shnim1" wrote in message
...

Hi

I need to perform a sort of look-up into a grid of information. I need
to find how many times two adjoining cells met a criteria. For example,
the grid has random numbers in a 10x10 grid, I need to now how many
times "5" AND "9" (for example) appear adjacent to each other in a row.
If they are not next to each other the result should come back as zero
or false.

I have tried the countif and Hlookup function, but does not account for
them being adjacent.

Please help....THANKS




--
shnim1



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
Search /Filter vertical Numeric pattern (down single column) Sam via OfficeKB.com Excel Worksheet Functions 0 July 7th 06 06:25 PM
How do i build a search table in excel Obi-Wan Kenobi Excel Worksheet Functions 2 March 20th 06 03:20 PM
build a search tool in excel Obi-Wan Kenobi Excel Discussion (Misc queries) 1 March 18th 06 03:21 PM
Search open sheets in workbook and insert into open sheet punx77 Excel Discussion (Misc queries) 0 March 6th 06 05:07 PM
FAQ Spreadsheet with search function murphyz Excel Discussion (Misc queries) 0 March 19th 05 09:24 PM


All times are GMT +1. The time now is 07:03 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"