Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 162
Default IF AND Statement Needed

Hello,

I have 10 columns, AK to AT, that have codes in them. Each column contains
the following codes: A0, A1, A2, A3, A5, A6, A7, A8, 49, 51, 52, 53, 54, 58,
60, 61, 70, 87, 88. I only want to keep the records (rows) when they have
any of those codes in any of the ten columns. I think I need an IF AND
statement. How should I write it?

Thanks.
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 3,718
Default IF AND Statement Needed

=SUMPRODUCT(COUNTIF(codes,AK2:AS2))

Auto Filter the "0s" and delete them

"Daren" wrote:

Hello,

I have 10 columns, AK to AT, that have codes in them. Each column contains
the following codes: A0, A1, A2, A3, A5, A6, A7, A8, 49, 51, 52, 53, 54, 58,
60, 61, 70, 87, 88. I only want to keep the records (rows) when they have
any of those codes in any of the ten columns. I think I need an IF AND
statement. How should I write it?

Thanks.

  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 162
Default IF AND Statement Needed

Thank you! That worked.

"Teethless mama" wrote:

=SUMPRODUCT(COUNTIF(codes,AK2:AS2))

Auto Filter the "0s" and delete them

"Daren" wrote:

Hello,

I have 10 columns, AK to AT, that have codes in them. Each column contains
the following codes: A0, A1, A2, A3, A5, A6, A7, A8, 49, 51, 52, 53, 54, 58,
60, 61, 70, 87, 88. I only want to keep the records (rows) when they have
any of those codes in any of the ten columns. I think I need an IF AND
statement. How should I write it?

Thanks.

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
Help with IF statement needed Paul B. Excel Worksheet Functions 5 August 28th 06 05:19 PM
If Then statement help needed jmcclain Excel Worksheet Functions 2 January 10th 05 08:52 PM
If Statement help needed please Ian Harris Excel Worksheet Functions 3 December 3rd 04 02:04 PM
If statement help needed Ian Harris Excel Worksheet Functions 2 December 3rd 04 11:36 AM
If statement needed Patsy Excel Worksheet Functions 1 November 4th 04 03:48 PM


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