Find number/letter string with formula

Obied70

Board Regular
Joined
Nov 4, 2015
Messages
177
Office Version
  1. 365
Platform
  1. Windows
Hi, I've tried and tried but cannot seem to find an answer to do what I need. I have item descriptions in excel that contain weights...25G, 5G, etc. I need to quickly isolate these using the number/letter combo.

Example: MILK CORE 594G,KIT

I need to flag yes/no based on that 594G string in the description. Any takers? Thanks in advance
 
All I need is a yes/no so then I can filter on yes or no and make sure other attributes are correct for the lines I'm reviewing. The end goal is to ensure that lines with 50G or 100G or 5.5G, etc. are allocated to the correct sales org

Ok, see if this works for you:

Book3.xlsx
AB
1CNCRM 10PK 127G, WHYes
2HCN 24/43GYes
3CHER 5.5K, BACK, REVINKNo
4C KIT 549CT/30CT, I/OSHRNo
5CHER 5.5G, BACK, REVINKYes
6C KIT 549G/30CT, I/OSHRYes
7C KIT 549CT/30CT, I/OSHR, CNCRM 10PK 127G, WHYes
Sheet866
Cell Formulas
RangeFormula
B1:B7B1=IF(SUM(N(ISNUMBER(FIND({0,1,2,3,4}+{0;5}&"G",A1)))),"Yes","No")
 
Last edited:
Upvote 0

Excel Facts

Which Excel functions can ignore hidden rows?
The SUBTOTAL and AGGREGATE functions ignore hidden rows. AGGREGATE can also exclude error cells and more.
Ok, see if this works for you:

Book3.xlsx
AB
1CNCRM 10PK 127G, WHYes
2HCN 24/43GYes
3CHER 5.5K, BACK, REVINKNo
4C KIT 549CT/30CT, I/OSHRNo
5CHER 5.5G, BACK, REVINKYes
6C KIT 549G/30CT, I/OSHRYes
7C KIT 549CT/30CT, I/OSHR, CNCRM 10PK 127G, WHYes
Sheet866
Cell Formulas
RangeFormula
B1:B7B1=IF(SUM(N(ISNUMBER(FIND({0,1,2,3,4}+{0;5}&"G",A1)))),"Yes","No")
That's pretty stinkin close! Thank you! Can you help me understand what exactly that formula is doing to return the yes/no?
 
Upvote 0
That's pretty stinkin close! Thank you! Can you help me understand what exactly that formula is doing to return the yes/no?

My formula in Post #11 will detect Any number from 0 thru 9 immediately followed by G, if it finds Any (0G, 1G, 2G, 3G, 4G, 5G, 6G, 7G, 8G, 9G), results YES, otherwise NO.

The formula, as it is, is Case-sensitive, the G must be Capitalized, if you need it Non-case sensitive (0G or 0g, 1G or 1g, etc.), change the FIND to SEARCH, like below:

Excel Formula:
=IF(SUM(N(ISNUMBER(SEARCH({0,1,2,3,4}+{0;5}&"G",A1)))),"Yes","No")
 
Upvote 0

Forum statistics

Threads
1,214,950
Messages
6,122,428
Members
449,083
Latest member
Ava19

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