View Single Post
  #13   Report Post  
Posted to microsoft.public.excel.programming
Earl Kiosterud Earl Kiosterud is offline
external usenet poster
 
Posts: 611
Default selecting rows of data

Alan,

If A1 contained "Depth" it would be discarded anyway, I think, because we'll
only be taking Depth rows that immediately follow a location row.
--
Earl Kiosterud
www.smokeylake.com

"Alan Beban" wrote in message
...
Tom Ogilvy wrote:
Your right, thanks for the heads up.

here is the correction

=if(OR(And(A1="location",A2="depth"),A1="Depth")," Keep",#N/A)

This assumes you will never have two sequential rows with depth.

And that A1 does not contain "depth"

Alan Beban