Consider the text string:
Imm Glob - Xembify Subcutaneous Solution 10 GM/50ML
This appears as a drug name in a cell in Excel.
I need a formula to remove the spaces before and after the hyphen that I can then copy down about 25,000 rows.
I have tried various forms of IF(ISNUMBER(SEARCH combined with concatenating with TEXTAFTER and/or TEXTBEFORE but cannot come up with a way to remove both the spaces.
Objective:
Imm Glob-Xembify Subcutaneous Solution 10 GM/50ML
Problem: same drug name appears in the database with space before the hyphen, no space before the hyphen, no space before the hyphen and space after...you get the picture --- totally inconsistent naming conventions.
It is wreaking havoc on my data analysis as my pivot table cannot properly group all records of the same drug due to the inconsistent use of text and spaces in the naming conventions.
Would be grateful for any suggestions.
Kind Regards,
Scipio
Imm Glob - Xembify Subcutaneous Solution 10 GM/50ML
This appears as a drug name in a cell in Excel.
I need a formula to remove the spaces before and after the hyphen that I can then copy down about 25,000 rows.
I have tried various forms of IF(ISNUMBER(SEARCH combined with concatenating with TEXTAFTER and/or TEXTBEFORE but cannot come up with a way to remove both the spaces.
Objective:
Imm Glob-Xembify Subcutaneous Solution 10 GM/50ML
Problem: same drug name appears in the database with space before the hyphen, no space before the hyphen, no space before the hyphen and space after...you get the picture --- totally inconsistent naming conventions.
It is wreaking havoc on my data analysis as my pivot table cannot properly group all records of the same drug due to the inconsistent use of text and spaces in the naming conventions.
Would be grateful for any suggestions.
Kind Regards,
Scipio