Extracting a number for a cell

gheyman

Well-known Member
Joined
Nov 14, 2005
Messages
2,341
Office Version
  1. 365
Platform
  1. Windows
I have a row that has values in most of the columns that look like: Char 15 or Char 1 (Some columns are blank or may have a text that doesnt contain Char...)
I need formula where if the cell value does start with "Char" then extract that number. As an FYI the columns that do have Char... its to identify the Max number of characters allowed in that column. Therefore I am trying to extract the number of Characters and then use it in a Len formula Example =(MAX(LEN(MSQ_BySE_QuantityBreakPoints[QT_LN_NOTES]))>250)=TRUE

Thanks
 

Excel Facts

Move date out one month or year
Use =EDATE(A2,1) for one month later. Use EDATE(A2,12) for one year later.
Is that the only text that would be in a cell? "Char #" ? If so, maybe something like this:

Book1
ABCDEFG
1
2Char 15Char 1Char 25Char 30
31510025030
Sheet1
Cell Formulas
RangeFormula
A3:G3A3=IFNA(TEXTAFTER(A2,"Char "),0)
 
Upvote 0
Solution

Forum statistics

Threads
1,215,086
Messages
6,123,038
Members
449,092
Latest member
ikke

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