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

How to total the visible cells?
From the first blank cell below a filtered data set, press Alt+=. Instead of SUM, you will get SUBTOTAL(9,)
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,908
Messages
6,122,187
Members
449,072
Latest member
DW Draft

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