Say YES if it says "Discount" in a list

GrumpyChi

New Member
Joined
Nov 22, 2021
Messages
24
Office Version
  1. 365
Platform
  1. Windows
Hi,

I have a list of data with multiple lines

1001A Full
1001B Discount
1002C Full
1001A Discount
1003D Full

Next to each cell I want the formula to return whether the reference has a discount anywhere in the list. EG. The very first line which says '1001A Full' I want to return it to say "YES" because we can see on row 4 it has a Discount. If it just says "Full" and elsewhere it has no discount, then it can just say "NO". I cannot seem to figure out a way without it being extremely long winded.

Thank you
 

Excel Facts

What is the fastest way to copy a formula?
If A2:A50000 contain data. Enter a formula in B2. Select B2. Double-click the Fill Handle and Excel will shoot the formula down to B50000.
Try something like:
Excel Formula:
=IF(SEARCH("discount",TEXTJOIN("",TRUE,ListRange)),"Yes","No")
Replace the ListRange with your actual range.
 
Upvote 0
How about
Fluff.xlsm
AB
1
21001A FullYes
31001B DiscountYes
41002C FullNo
51001A DiscountYes
61003D FullNo
Main
Cell Formulas
RangeFormula
B2:B6B2=IF(ISNUMBER(MATCH(LEFT(A2,5)&" discount",$A$2:$A$6,0)),"Yes","No")
 
Upvote 0
Solution

Forum statistics

Threads
1,215,201
Messages
6,123,617
Members
449,109
Latest member
Sebas8956

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