#1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1
Default Excel

How to combine IF and OR formula.

for example A1=0 B1=1 C1 should show present or "P"
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 506
Default Excel

This will get the result Present if A1=0 and B1=1. Otherwise it will return
blank result.
=IF(AND(A1=0,B1=1),"PRESENT","")

This will get the result Present if A1=0 OR B1=1. Otherwise it will return
blank result.
=IF(OR(A1=0,B1=1),"PRESENT","")

Remember to Click Yes, if this post helps!

--------------------
(Ms-Exl-Learner)
--------------------


"Excle" wrote:

How to combine IF and OR formula.

for example A1=0 B1=1 C1 should show present or "P"

  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 11,501
Default Excel

Hi,

It isn't entirely clear what the OP wants hence your 2 options but note when
testing for zero you will also have to test for a blank cell. Try you formula
with A1 blank

=IF(OR(AND(A1<"",A1=0),B1=1),"Present","")

Mike

"Ms-Exl-Learner" wrote:

This will get the result Present if A1=0 and B1=1. Otherwise it will return
blank result.
=IF(AND(A1=0,B1=1),"PRESENT","")

This will get the result Present if A1=0 OR B1=1. Otherwise it will return
blank result.
=IF(OR(A1=0,B1=1),"PRESENT","")

Remember to Click Yes, if this post helps!

--------------------
(Ms-Exl-Learner)
--------------------


"Excle" wrote:

How to combine IF and OR formula.

for example A1=0 B1=1 C1 should show present or "P"

  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 506
Default Excel

Thank you Mike Sir, today i have learned another most basic level concept
about structuring of formula by way of you. Thank you once again for
intimating my mistake and directing me in the right path...

--------------------
(Ms-Exl-Learner)
--------------------


"Mike H" wrote:

Hi,

It isn't entirely clear what the OP wants hence your 2 options but note when
testing for zero you will also have to test for a blank cell. Try you formula
with A1 blank

=IF(OR(AND(A1<"",A1=0),B1=1),"Present","")

Mike

"Ms-Exl-Learner" wrote:

This will get the result Present if A1=0 and B1=1. Otherwise it will return
blank result.
=IF(AND(A1=0,B1=1),"PRESENT","")

This will get the result Present if A1=0 OR B1=1. Otherwise it will return
blank result.
=IF(OR(A1=0,B1=1),"PRESENT","")

Remember to Click Yes, if this post helps!

--------------------
(Ms-Exl-Learner)
--------------------


"Excle" wrote:

How to combine IF and OR formula.

for example A1=0 B1=1 C1 should show present or "P"

  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 3,718
Default Excel

OR formula:
=IF(OR(EXACT(A1,0),B1=1),"P","")

AND formula:
=IF(A1&B1="01","p","")


"Excle" wrote:

How to combine IF and OR formula.

for example A1=0 B1=1 C1 should show present or "P"



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



All times are GMT +1. The time now is 06:44 PM.

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"