Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 184
Default Filter with an IF, AND, NOT formula

I want to filter my Chess database for all 4th Black moves only, prior
to the 5th move,
and copy the whole row result in sheet2

1. d4 Nf6 2. c4 g6
1. d4 Nf6 2. c4 g6 3.Nc3
1. d4 Nf6 2. c4 g6 3.Nc3 d5
1. d4 Nf6 2. c4 g6 3.Nc3 d5 4. cxd5
1. d4 Nf6 2. c4 g6 3.Nc3 d5 4. cxd5 Nxd5
1. d4 Nf6 2. c4 g6 3.Nc3 d5 4. cxd5 Nxd5 5. e4
1. e4 c5
1. e4 c5 2. Nf3
1. e4 c5 2. Nf3 d6
1. e4 c5 2. Nf3 d6 3. d4
1. e4 c5 2. Nf3 d6 3. d4 cxd4
1. e4 c5 2. Nf3 d6 3. d4 cxd4 4. Nxd4
1. e4 c5 2. Nf3 d6 3. d4 cxd4 4. Nxd4
Nf6
1. e4 c5 2. Nf3 d6 3. d4 cxd4 4. Nxd4 Nf6 5. Nc3
from the above example, the following rows would be returned :
1. d4 Nf6 2. c4 g6 3.Nc3 d5 4. cxd5 Nxd5
1. e4 c5 2. Nf3 d6 3. d4 cxd4 4. Nxd4 Nf6
All the above are in Column "A"
..
So far, I have only the beginning of the solution with an Excel
formula,
that is if found "4." and not found "5." copy row to sheet2
I need to go beyond this formula with IF, AND,
NOT
=IF(ISERROR(FIND("4.",A1)),0,"4")
Help appreciated
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 168
Default Filter with an IF, AND, NOT formula

On Nov 21, 12:34*pm, u473 wrote:
I want to filter my Chess database for all 4th Black moves only, prior
to the 5th move,
and copy the whole row result in sheet2

1. d4 *Nf6 * 2. c4 g6
1. d4 *Nf6 * 2. c4 g6 *3.Nc3
1. d4 *Nf6 * 2. c4 g6 *3.Nc3 *d5
1. d4 *Nf6 * 2. c4 g6 *3.Nc3 *d5 * 4. cxd5
1. d4 *Nf6 * 2. c4 g6 *3.Nc3 *d5 * 4. cxd5 *Nxd5
1. d4 *Nf6 * 2. c4 g6 *3.Nc3 *d5 * 4. cxd5 *Nxd5 * 5. e4
1. e4 *c5
1. e4 *c5 *2. Nf3
1. e4 *c5 *2. Nf3 *d6
1. e4 *c5 *2. Nf3 *d6 * 3. d4
1. e4 *c5 *2. Nf3 *d6 * 3. d4 *cxd4
1. e4 *c5 *2. Nf3 *d6 * 3. d4 *cxd4 * 4. Nxd4
1. e4 *c5 *2. Nf3 *d6 * 3. d4 *cxd4 * 4. Nxd4
Nf6
1. e4 *c5 *2. Nf3 *d6 * 3. d4 *cxd4 * 4. Nxd4 *Nf6 * 5. Nc3
from the above example, the following rows would be returned :
1. d4 *Nf6 * 2. c4 g6 *3.Nc3 *d5 * 4. cxd5 *Nxd5
1. e4 *c5 *2. Nf3 *d6 * 3. d4 *cxd4 * 4. Nxd4 *Nf6
All the above are in Column "A"
.
So far, I have only the beginning of the solution with an Excel
formula,
that is if found "4." and not found "5." copy row to sheet2
I need to go beyond this formula *with IF, AND,
NOT
=IF(ISERROR(FIND("4.",A1)),0,"4")
Help appreciated


"If desired, send your file to dguillett @gmail.com I will only look
if:
1. You send a copy of this message on an inserted sheet
2. You give me the newsgroup and the subject line
3. You send a clear explanation of what you want
4. You send before/after examples and expected results."
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
Filter formula Michel Excel Worksheet Functions 1 May 20th 10 12:25 AM
Filter formula LiAD Excel Worksheet Functions 8 March 27th 10 01:58 AM
Filter, Cell Reference formula and copy formula on filter data umpire_43 Excel Programming 0 July 9th 09 03:38 PM
Filter formula PO Excel Worksheet Functions 4 June 15th 06 11:59 PM
Formula for Filter manjukhan Excel Programming 1 July 15th 05 07:04 PM


All times are GMT +1. The time now is 02:31 AM.

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"