Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 703
Default IF formula question

I need to write a formual for the following:
IF J1=R and L1= 3221 OR 3223 then N1 should be FALSE

J1 could be either R or C and L1 could be any numer of codes, but I need to
know which rows have an R and 3221 or an R and 3223. What's the easiest way
to write this?
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 8,651
Default IF formula question

=IF(AND(J1="R",OR(L1=3221,L1=3223)),FALSE,"Whateve r you want N1 to be if
your condition isn't met").
--
David Biddulph


"charlie" wrote in message
...
I need to write a formual for the following:
IF J1=R and L1= 3221 OR 3223 then N1 should be FALSE

J1 could be either R or C and L1 could be any numer of codes, but I need
to
know which rows have an R and 3221 or an R and 3223. What's the easiest
way
to write this?



  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Max Max is offline
external usenet poster
 
Posts: 9,221
Default IF formula question

One way to flag it
In N1: =IF(AND(J1="R",OR(L1={3221,3223})),"x","")
Copy down. Insert a new 1st row, apply autofilter, filter out the "x".
--
Max
Singapore
---
"charlie" wrote:
I need to write a formual for the following:
IF J1=R and L1= 3221 OR 3223 then N1 should be FALSE

J1 could be either R or C and L1 could be any numer of codes, but I need to
know which rows have an R and 3221 or an R and 3223. What's the easiest way
to write this?

  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 83
Default IF formula question

On Tue, 1 Jun 2010 12:24:01 -0700, charlie
wrote:

I need to write a formual for the following:
IF J1=R and L1= 3221 OR 3223 then N1 should be FALSE

J1 could be either R or C and L1 could be any numer of codes, but I need to
know which rows have an R and 3221 or an R and 3223. What's the easiest way
to write this?



Try this formula in cell N1:

=IF(AND(J1="R",OR(L1=3221,L1=3223)),FALSE,"somethi ng else")

Replace "something else" with what you would to have if the condition
for FALSE is not met.

Hope this helps / Lars-Åke
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
Newbie Formula Question - how to get formula to repeat in each subsequent row? [email protected] New Users to Excel 2 January 10th 10 05:02 PM
Formula Question 57Caddy Excel Discussion (Misc queries) 2 September 6th 07 12:14 AM
What IF - formula question Gene Excel Worksheet Functions 0 October 13th 06 02:06 PM
Newbie Question - Subtraction Formula Question [email protected] Excel Discussion (Misc queries) 3 May 5th 06 05:50 PM
Formula Question Bruce D. Excel Discussion (Misc queries) 2 January 5th 06 06:09 PM


All times are GMT +1. The time now is 10:14 AM.

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

About Us

"It's about Microsoft Excel"