HELP! - Need Updated logic and I'm not sure how to do it

BishopDesigns

New Member
Joined
Oct 14, 2015
Messages
22
I currently have logic in excel that is structured like this -

=IFERROR(INDEX($A$1:$A$1000000, SMALL(IF(LEFT($A$1:$A$1000000,1)="T", ROW($A$1:$A$1000000)-MIN(ROW($A$1:$A$1000000))+1, ""), ROW(1:1))), "")
Basically, it looks at Column A and Identifies every Row that begins with the letter "T" and lists it.

The data listed in Column A has now changed... Every single Row Starts with an "N" followed by a number in sequence and a space before you get to the letter "T"
The "N" value can be anything from "N10 " to N1000010 "

How do I get my logic to ignore the "N" numbers and continue only presenting me with the "T" values?

The "T" values could be anything from T1M6" to T200M6"

Here are some Examples:

N362 T15M06
N204899 T130M06
N60 T5M06
 

Excel Facts

How to find 2nd largest value in a column?
MAX finds the largest value. =LARGE(A:A,2) will find the second largest. =SMALL(A:A,3) will find the third smallest
Change your LEFT() to MID() perhaps. Maybe like this:

Excel Formula:
MID($A$1:$A$1000000,FIND(" ",$A$1:$A$1000000)+1,1)
 
Upvote 0
What version of Excel are you using?

I suggest that you update your Account details (or click your user name at the top right of the forum) so helpers always know what Excel version(s) & platform(s) you are using as the best solution often varies by version. (Don’t forget to scroll down & ‘Save’)
 
Upvote 0
What version of Excel are you using?

I suggest that you update your Account details (or click your user name at the top right of the forum) so helpers always know what Excel version(s) & platform(s) you are using as the best solution often varies by version. (Don’t forget to scroll down & ‘Save’)
Yes, please let us know what version of excel. If you are using 365, your formula can be greatly reduced. To something like this perhaps:

Excel Formula:
=FILTER(A1:A1000000,IFERROR(SEARCH(" T",A1:A1000000,),"")<>"")

Or even:

Excel Formula:
=LET(r,A1:A1000000,FILTER(r,IFERROR(SEARCH(" T",r,),"")<>""))
 
Upvote 0
image
image
image
1701193912005.png
 
Upvote 0
The #SPILL! error is because you are dragging the formula down. You only need to put it in the top most cell. Also, I did not mean for you to replace the entire formula with MID(). I meant for you to replace only the LEFT() portion of your original formula. Like this:

Excel Formula:
=IFERROR(INDEX($A$1:$A$1000000, SMALL(IF(MID($A$1:$A$1000000,FIND(" ",$A$1:$A$1000000)+1,1)="T", ROW($A$1:$A$1000000)-MIN(ROW($A$1:$A$1000000))+1, ""), ROW(1:1))), "")
 
Upvote 0
Edit - what does the #CALC! error message say when you mouse over it?


Book1 11-27-2023.xlsx
AB
1%N362 T15M06
2O00001N204899 T130M06
3( MATERIAL SETUP=0.321 )N60 T5M06
4N10
5N11
6N12
7N13 ( )
8N14 G00 G40 G53 G80 G90
9N15 M01
10N16 ( ----------------------------------)
11N362 T15M06
12N204899 T130M06
13N60 T5M06
14N75 Q3M05
Sheet2
Cell Formulas
RangeFormula
B1:B3B1=FILTER(A1:A14,IFERROR(SEARCH(" T",A1:A14),"")<>"")
Dynamic array formulas.
 
Upvote 0

Forum statistics

Threads
1,223,248
Messages
6,171,027
Members
452,374
Latest member
keccles

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