Hello
I'm trying to create a formula that will extract a text string from report names. What I'm needing to get out of the below is "REB000001". One issue I'm having is not all of those numbers have 9 characters. These file names should all be like this where the REB### is either going to be followed by a period or an underscore.
REB000001_Hospital System Inc_Calc Sheet_2023_Q3.xlsx
HOSPITAL SYSTEM INC_ REB000001_Rebate Summary.xlsx
max1539g_417517_HOSPITAL_SYSTEM_INC_ REB000001.xlsx
HOSPITAL_SYSTEM_INC_ REB000001_Remit.pdf
Thanks so much!!!
I'm trying to create a formula that will extract a text string from report names. What I'm needing to get out of the below is "REB000001". One issue I'm having is not all of those numbers have 9 characters. These file names should all be like this where the REB### is either going to be followed by a period or an underscore.
REB000001_Hospital System Inc_Calc Sheet_2023_Q3.xlsx
HOSPITAL SYSTEM INC_ REB000001_Rebate Summary.xlsx
max1539g_417517_HOSPITAL_SYSTEM_INC_ REB000001.xlsx
HOSPITAL_SYSTEM_INC_ REB000001_Remit.pdf
Thanks so much!!!