Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
i have 2 field values
sales_mrtyf_qtr_09_2017
under_qtr_03_2015
i want to extract the string 'qtr' from both values. how to achieve that?
It's 3rd subfield (delimited by '_') from end.
try like:
=SubField(YourField,'_', - 3 )
the end is not specific....after 2017 there can be values like 2017_abc etc..
Try this-
=mid('sales_mrtyf_qtr_09_2017',index('sales_mrtyf_qtr_09_2017','qtr',1),3)
Mid(text,index(text,searchstring,1),3)
Try this
left(Right('sales_mrtyf_qtr_09_2017',11),3)
left(Right('under_qtr_03_2015',11),3)
This will work for
if(WildMatch(YourField,'*qtr*'),'Qtr')
I don't think this solution will work because we can't predict that qtr will be in same position. So it is not flexible with different data right?
Hi Jeeyboy
try this
replace(PurgeChar ( Replace('sales_mrtyf_qtr_09_2017','_qtr_','$'),
'abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ1234567890'),'$','_qtr_')
Regards
Raman Rastogi
Try this?
= Mid(TextFieldnamehere, Index(YourTextFieldnamehere, 'qtr'), 3)
yes you are right.....the wildmatch solution given above is working fine.....