Help with complex formula

easybpw

Active Member
Joined
Sep 30, 2003
Messages
437
Office Version
  1. 365
  2. 2013
Platform
  1. Windows
Hello and thanks in advance for the help. Below is a formula that works as designed. However now there's a need to add to it and I just don't know how to go about doing it. As you can see I'm searching in cell I4 for any of those references and if I4 has those references then my result is "PNC Online Fees". The addition I need to account for is this. Cell I4 must also contain 10405064. If it doesn't then my results is an empty cell. How do I incorporate an AND statement along with the OR statement? So I4 must have 104064 and any of the OR statements in order for the result to be "PNC Online Fees".
I hope I'm explaining this correctly.

=IF(OR(ISNUMBER(SEARCH("PNC MERCH DISCOUNT",$I4)),ISNUMBER(SEARCH("PNC MERCH INTERCHNG",$I4)),ISNUMBER(SEARCH("PNC MERCH FEE ",$I4)),ISNUMBER(SEARCH("PNC MERCH DISCOUNT",$I4)),ISNUMBER(SEARCH("PNC MERCH INTERCHNG",$I4)),ISNUMBER(SEARCH("PNC MERCH FEE",$I4)))=TRUE,"PNC Online Fees","")
 

Excel Facts

Lock one reference in a formula
Need 1 part of a formula to always point to the same range? use $ signs: $V$2:$Z$99 will always point to V2:Z99, even after copying
How about
Excel Formula:
=IF(AND(ISNUMBER(SEARCH("1040506",$I4)),OR(ISNUMBER(SEARCH("PNC MERCH DISCOUNT",$I4)),ISNUMBER(SEARCH("PNC MERCH INTERCHNG",$I4)),ISNUMBER(SEARCH("PNC MERCH FEE ",$I4)))),"PNC Online Fees","")
 
Upvote 0

Forum statistics

Threads
1,215,217
Messages
6,123,675
Members
449,116
Latest member
HypnoFant

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