Combining functions into same formula

domdomw

New Member
Joined
Dec 7, 2016
Messages
3
I'm struggling to combine two functions. I currently have the formula:

<edate(l4,3),o4<24,l4>
PHP:
Which says if something meets any of these conditions then display the text "Yes" but if not then display the "No". That works absolutely fine.


However, I want to combine a formula into the same cell that says "if cell G2 contains the text 'Red' or 'Blue' also say "No"). Not sure how to combine that into the formula above. Any help would be greatly appreciated.</edate(l4,3),o4<24,l4></edate(l4,3),o4<24,l4>
 

Excel Facts

Did you know Excel offers Filter by Selection?
Add the AutoFilter icon to the Quick Access Toolbar. Select a cell containing Apple, click AutoFilter, and you will get all rows with Apple
Sorry, struggling to post the formula as text:
Untitled.jpg
 
Upvote 0
=IF(OR(ISNUMBER(SEARCH("Red",G2)),ISNUMBER(SEARCH("Blue",G2)),"No",IF(OR(P2>38,J2<edate(l2,3),o2<24,l2>0),"Yes","No"))

sorry your formula goes in the red part</edate(l2,3),o2<24,l2>
 
Last edited:
Upvote 0
Try,

=IF(OR(P2>38,J2< EDATE(L2,3),O2<24,L2>0)+AND(G2<>{"Red","Blue"}),"Yes","No")

Regards
 
Last edited:
Upvote 0

Forum statistics

Threads
1,214,819
Messages
6,121,727
Members
449,049
Latest member
MiguekHeka

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top