Excel - multiple if and cell range contains specific text

dtrom1

New Member
Joined
Jun 21, 2018
Messages
8
Hi

I have the following formula and would like to include in the if statement a criteria that looks for the value "cat" in cell range P2:P500.

=IF(OR((((N4-N3)/N3)*100)>50,N4<5),1,0)

Therefore, the revised formula should return a value of 1 if any of the following statements are met:

  • ((N4-N3)/N3)*100 is greater than 50
  • N4 is less than 5
  • A text value of "cat" is present in any of the cells ranging P2:P500

Grateful if anyone can help me finish this formula to include the last point about.

Thank you
 

Excel Facts

Format cells as date
Select range and press Ctrl+Shift+3 to format cells as date. (Shift 3 is the # sign which sort of looks like a small calendar).
Hi,

Is it possible for N3 to be Blank ?
 
Upvote 0
Yes it is

Try this, assume N3 can be blank, but Not 0:

Excel Formula:
=OR(IF(N3="",0,(N4-N3)/N3*100>50),N4<5,COUNTIF(P2:P500,"cat"))+0

If N3 Can be Blank or 0, then use this:

Excel Formula:
=OR(IF(N(N3)=0,0,(N4-N3)/N3*100>50),N4<5,COUNTIF(P2:P500,"cat"))+0
 
Last edited:
Upvote 0

Forum statistics

Threads
1,214,649
Messages
6,120,731
Members
448,987
Latest member
marion_davis

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