hi..izzit possible to find the position of the 1st number value inbetween text??
example : GBB_5600_OPP_WNN
hi..izzit possible to find the position of the 1st number value inbetween text??
example : GBB_5600_OPP_WNN
Yes
=MIN(FIND({1,2,3,4,5,6,7,8,9,0},A1&1234567890))
where A1 holds string
My Recommended Reading:
Volatility
Sumproduct & Arrays
Pivot Intro
Email from XL - VBA & Outlook VBA
Function Dictionary & Function Translations
Dynamic Named Ranges
thank you for the fast reponse! its working fine =)
hi..sorry..what if the number i want to find is from 5600 and find the position of 5 instead of position of 1 in CA1..how do i avoid that? if methods?
GBB_CA1_5600_OPP_WNN
If we assume the position of interest is where you have _ followed by digit then perhaps something like:
Not very elegant though... if by any chance you have the morefunc.xll add-in installed you could use a REGEX function to look for the _digit pattern, eg:Please Login or Register to view this content.
a tad more succinctPlease Login or Register to view this content.
oh ok can! thanks =)
You could also use the same principle as the original formula I suppose:
=MIN(FIND({"_1","_2","_3","_4","_5","_6","_7","_8","_9","_0"},A1&"_1_2_3_4_5_6_7_8_9_0"))+1
Remember what the dormouse said
Feed your head
you could do but that would be both logical & efficient... so where's the fun in that ?
You're right - don't know what came over me!
Less is more:
=MIN(FIND("_"&{1,2,3,4,5,6,7,8,9,0},A1&"_1_2_3_4_5_6_7_8_9_0"))+1
Even less:
{=MIN(FIND("_"&ROW(1:9),A1&"_1_2_3_4_5_6_7_8_9_0"))+1}
Least:
{=MIN(FIND("_"&ROW(1:9),A1&"_"&ROW(1:9)))+1}
(though this would be particularly slow in big numbers)
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks