![]() |
#2
|
|||
|
|||
![]()
The worksheet formula is like (assumed the text is in cell A2, on fly)
Code:
=IFERROR(RIGHT(A2,Find("_",A2)), A2) Code:
=IF(ISERROR(RIGHT(A2,Find("_",A2)-1)), A2,RIGHT(A2,Find("_",A2))) Something like: Code:
If InStr(SourceVariable, "_") = 0 Then ResultVariable = SourceVariable Else ResultVariable = Right(SourceVariable, Len(SourceVariable) - InStr(SourceVariable, "_")) End If |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
![]() |
Larry_1 | Excel Programming | 3 | 12-18-2017 06:59 AM |
I want to create a bar chart of multiple variable. Then I need to draw trend lin of those variable | shimulsiddiquee | Excel | 1 | 05-16-2017 07:39 AM |
Emails to recipients with underscore in email address not received | gjskerritt | Outlook | 0 | 03-14-2017 06:27 PM |
Run Time Error '91': Object variable or With block variable not set using Catalogue Mailmerge | Berryblue | Mail Merge | 1 | 11-13-2014 05:36 PM |
![]() |
noufalcm | Word | 1 | 03-08-2011 01:46 PM |