Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
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
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
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
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
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 |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
Help with IF statement needed | Excel Worksheet Functions | |||
If Then statement help needed | Excel Worksheet Functions | |||
If Statement help needed please | Excel Worksheet Functions | |||
If statement help needed | Excel Worksheet Functions | |||
If statement needed | Excel Worksheet Functions |