If Statement for selective brands

Zakky

Board Regular
Joined
Mar 26, 2016
Messages
144
Office Version
  1. 365
Platform
  1. Windows
Hi, All.
Is it possible to construct an IF statement for all brands except for the following: anything with ANZ CC in the description, Not XX Branded, Not Branded Yet and To be Branded? At the moment I'm filtering these brands and putting in n/a. If i could copy down the IF statement to show sales (Qty x Value) that would be great. Thanks!
1701326384695.png
 

Excel Facts

Wildcard in VLOOKUP
Use =VLOOKUP("Apple*" to find apple, Apple, or applesauce
Try this formula

Excel Formula:
=IF(SUBSTITUTE(SUBSTITUTE(SUBSTITUTE(SUBSTITUTE(A2,"ANZ CC",""),"Not XX Branded",""),"Not Branded Yet",""),"To be Branded","")=A2,B2*C2,"n/a")
 
Upvote 0
jahanzailbriaz, thank you for the prompt reply. Impressive! works 100%. Many thanks!
 
Upvote 0
Slightly shorter formula:
Book1
ABCD
1BrandQtyValueSales
2Nike42284
3Adidas653195
4Puma ANZ CC674n/a
5Not XX Branded335n/a
6Diadora ANZ CC456n/a
7Ellesee677469
8Not branded Yet768n/a
9Hola ANZ CC999n/a
10To be Branded1510n/a
Sheet1
Cell Formulas
RangeFormula
D2:D10D2=IF(SUMPRODUCT(--ISNUMBER(SEARCH({"ANZ","Branded"},A2)))>0,"n/a",B2*C2)
 
Upvote 0
Kevin9999, thank you for the prompt reply. Another impressive solution that works 100%. Many thanks!
 
Upvote 0
Shorter again ..

23 11 30.xlsm
ABCD
1BrandQtyValueSales
2Nike42284
3Adidas653195
4Puma ANZ CC674n/a
5Not XX Branded335n/a
6Diadora ANZ CC456n/a
7Ellesee677469
8Not branded Yet768n/a
9Hola ANZ CC999n/a
10To be Branded1510n/a
Zakky
Cell Formulas
RangeFormula
D2:D10D2=IF(COUNT(SEARCH({"ANZ","Branded"},A2)),"n/a",B2*C2)
 
Upvote 0
Peter_SSc, thank you for responding. Again, i'm impressed with the pool of talent on Mr Excel. Who needs AI when we have so much talent on Mr Excel.
 
Upvote 0

Forum statistics

Threads
1,215,148
Messages
6,123,301
Members
449,095
Latest member
Chestertim

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