Microsoft Office Forums

Go Back   Microsoft Office Forums > >

Reply
 
Thread Tools Display Modes
  #1  
Old 10-17-2018, 04:28 PM
Stubby Stubby is offline if function Help Windows 10 if function Help Office 2016
Novice
if function Help
 
Join Date: Oct 2018
Posts: 2
Stubby is on a distinguished road
Default if function Help

Hello,
Here is my formula:


=IF(AND(I2="c",M2=O2),TRUE,FALSE),IF(AND(I2="p",K2 =O2),TRUE,FALSE)


Rookie mistake I'm sure, however this is what i want it to do.


I2 has two values "C" or "P".


If I2 equals "C" i want it to also check if M2 is the same as O2(these two cells are words), if both are true I want a value of true



If I2 equals "P" I want it to also check if K2 is the same as O2(these two cells are words), and if both are true i also want a value of true.




if either of the criteria aren't met i want a return value of false.


Thanks in advance for any help .
Reply With Quote
  #2  
Old 10-17-2018, 11:20 PM
Pecoflyer's Avatar
Pecoflyer Pecoflyer is offline if function Help Windows 7 64bit if function Help Office 2010 64bit
Expert
 
Join Date: Nov 2011
Location: Brussels Belgium
Posts: 2,779
Pecoflyer has a brilliant futurePecoflyer has a brilliant futurePecoflyer has a brilliant futurePecoflyer has a brilliant futurePecoflyer has a brilliant futurePecoflyer has a brilliant futurePecoflyer has a brilliant futurePecoflyer has a brilliant futurePecoflyer has a brilliant futurePecoflyer has a brilliant futurePecoflyer has a brilliant future
Default

Hi and welcome


try =IF(OR(AND(I2="p",K2 =O2),AND(I2="c",M2=O2)),TRUE,FALSE)
__________________
Did you know you can thank someone who helped you? Click on the tiny scale in the right upper hand corner of your helper's post
Reply With Quote
  #3  
Old 10-18-2018, 12:52 AM
ArviLaanemets ArviLaanemets is offline if function Help Windows 8 if function Help Office 2016
Expert
 
Join Date: May 2017
Posts: 873
ArviLaanemets has much to be proud ofArviLaanemets has much to be proud ofArviLaanemets has much to be proud ofArviLaanemets has much to be proud ofArviLaanemets has much to be proud ofArviLaanemets has much to be proud ofArviLaanemets has much to be proud ofArviLaanemets has much to be proud ofArviLaanemets has much to be proud of
Default

Or
Code:
=OR(AND($I2="C",$M2=$O2,$O2<> ""),AND($I2="P",$K2=$O2,$O2<>""))
Reply With Quote
  #4  
Old 10-18-2018, 02:46 PM
Stubby Stubby is offline if function Help Windows 10 if function Help Office 2016
Novice
if function Help
 
Join Date: Oct 2018
Posts: 2
Stubby is on a distinguished road
Default

Hello,




Thank you very kindly for your responses. Problem has been solved.


Very helpful!!
Reply With Quote
  #5  
Old 10-18-2018, 07:53 PM
Marcia's Avatar
Marcia Marcia is offline if function Help Windows 7 32bit if function Help Office 2007
Expert
 
Join Date: May 2018
Location: Philippines
Posts: 527
Marcia has a spectacular aura aboutMarcia has a spectacular aura aboutMarcia has a spectacular aura about
Default

Quote:
Originally Posted by Stubby View Post
Hello,




Thank you very kindly for your responses. Problem has been solved.


Very helpful!!

Mark this thread as solved, you will find the button for this at the "thread tools" tab
Reply With Quote
Reply



Similar Threads
Thread Thread Starter Forum Replies Last Post
if function Help Restrict Editing function disable insert textbox function IanM_01 Word 5 11-21-2015 02:29 AM
if function Help #REF! Error in calling VBA function disappears when function is copied lcaretto Excel Programming 2 05-26-2014 07:19 PM
Creating a graph for Future Value function (FV function) bmoody Excel 2 11-06-2013 10:52 AM
if function Help how to use now() function gsrikanth Excel 1 01-07-2012 01:18 AM
if function help jim831 Excel 2 10-29-2010 07:06 PM

Other Forums: Access Forums

All times are GMT -7. The time now is 02:50 PM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.
Search Engine Optimisation provided by DragonByte SEO (Lite) - vBulletin Mods & Addons Copyright © 2024 DragonByte Technologies Ltd.
MSOfficeForums.com is not affiliated with Microsoft