A Microsoft Office (Excel, Word) forum. OfficeFrustration

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » OfficeFrustration forum » Microsoft Excel » Worksheet Functions
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

IF formula question



 
 
Thread Tools Display Modes
  #1  
Old June 1st, 2010, 08:24 PM posted to microsoft.public.excel.worksheet.functions
charlie
external usenet poster
 
Posts: 278
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  
Old June 1st, 2010, 08:37 PM posted to microsoft.public.excel.worksheet.functions
David Biddulph
external usenet poster
 
Posts: 8,714
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  
Old June 1st, 2010, 08:46 PM posted to microsoft.public.excel.worksheet.functions
Max
external usenet poster
 
Posts: 8,574
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  
Old June 1st, 2010, 08:53 PM posted to microsoft.public.excel.worksheet.functions
Lars-Åke Aspelin[_4_]
external usenet poster
 
Posts: 74
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
 




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump


All times are GMT +1. The time now is 09:37 AM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 OfficeFrustration.
The comments are property of their posters.