How can I modify this formula to include a condition where cell does not contain

suprsnipes

Active Member
Joined
Apr 26, 2009
Messages
434
How can I edit the following formula so that instead of F64 being equal to "" I want to replace this condition to; if the cell F64 does not contain the letter "O". I've tried using isnumber but not quite sure how to use it when I'm looking for not equal to.

Code:
=IF(AND(F64="",C64<=4),SUM(-P64),"")
Regards,
suprsnipes
 

Excel Facts

Who is Mr Spreadsheet?
Author John Walkenbach was Mr Spreadsheet until his retirement in June 2019.
sorry I thought it was for zero. Correct formula would be:

Code:
=IF(AND(F64<>"O",C64<=4),SUM(-P64),"")
 
Upvote 0
How can I edit the following formula so that instead of F64 being equal to "" I want to replace this condition to; if the cell F64 does not contain the letter "O". I've tried using isnumber but not quite sure how to use it when I'm looking for not equal to.

Code:
=IF(AND(F64="",C64<=4),SUM(-P64),"")
Regards,
suprsnipes
You don't need that SUM function.

=IF(AND(F64<>"O",C64<=4),-P64,"")
 
Upvote 0
I've come up with this which works. Not very clean.

Code:
=IF(C64<=4,IF(ISERROR(FIND("O",F64)),-P64,""),"")

The problem is with cell F64 it can meet a number of different conditions but I'm only looking for it not to equal just one of those.

The formula above will do for the time being.

Thanks for your help guys.
 
Upvote 0

Forum statistics

Threads
1,224,616
Messages
6,179,908
Members
452,949
Latest member
beartooth91

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