I’m trying to troubleshoot a piece of code which parses the contents of a column (E) (in reverse) to show the data on the right side of the “/” in column © . If that char is not present, then the contents should be shown.
Can one of you wiz’s help me solve this without applying a UDF or VBA function?
Thanks
![]() |
There are isolated problems with current patches, but they are well-known and documented on this site. |
SIGN IN | Not a member? | REGISTER | PLUS MEMBERSHIP |
-
Trim-Parse troubleshoot (2003)
Home » Forums » AskWoody support » Productivity software by function » MS Excel and spreadsheet help » Trim-Parse troubleshoot (2003)
- This topic has 14 replies, 6 voices, and was last updated 17 years, 12 months ago.
AuthorTopicWSjazman2k
AskWoody LoungerApril 3, 2007 at 7:18 pm #441284Viewing 2 reply threadsAuthorReplies-
WSHansV
AskWoody Lounger -
WSjazman2k
AskWoody Lounger -
WSHansV
AskWoody LoungerApril 3, 2007 at 7:32 pm #1059206With more than 3 owners you really need a VBA solution. INSTRREV is indeed a VBA function.
Put this simple function in a standard module:
Function ExtractLast(strValue As String) As String
Dim intPos As Integer
ExtractLast = Trim(Mid(strValue, InStrRev(strValue, “/”) + 1))
End FunctionAnd use like this
=ExtractLast(C2)
-
WSjazman2k
AskWoody Lounger -
WSrory
AskWoody Lounger -
WSjazman2k
AskWoody Lounger -
WSdcardno
AskWoody Lounger -
WSrory
AskWoody Lounger
-
-
-
-
WSHansV
AskWoody LoungerApril 3, 2007 at 7:27 pm #1059205For a maximum of three owners:
=IF(ISERROR(SEARCH(“/”,IF(ISERROR(SEARCH(“/”,C2)),C2,TRIM(MID(C2,SEARCH(“/”,C2)+1,1000))))),IF(ISERROR(SEARCH(“/”,C2)),C2,TRIM(MID(C2,SEARCH(“/”,C2)+1,1000))),TRIM(MID(IF(ISERROR(SEARCH(“/”,C2)),C2,TRIM(MID(C2,SEARCH(“/”,C2)+1,1000))),SEARCH(“/”,IF(ISERROR(SEARCH(“/”,C2)),C2,TRIM(MID(C2,SEARCH(“/”,C2)+1,1000))))+1,1000)))
WSkjktoo
AskWoody Lounger-
WSajlacombe
AskWoody LoungerApril 5, 2007 at 1:48 pm #1059498So what is the equivalent to the “search” function in VBA?
I was messing around with this thread and tried to make a function that would do the following. The cells contain two columns of data that need to be separated. A cell contains “leftside rightside” with a space between the two vaules.
Dim intLen As Integer
Dim intPos As Integer
intLen = Len(ActiveCell.Value)
intPos = Search(” “, ActiveCell.Value)
ActiveCell.Value = Right(ActiveCell.Value, intLen – intPos)
ActiveCell.Offset(1, 0).SelectThis yields “Sub or function not defined” for “Search”. The first question is how do I “search” in VBA? The second question is, is there a better way to take data like this and return one side or the other? I can create a cell formula and create a new column, but I wanted to create a macro that could be used to change the data in place.
Thanks,
Andy
-
WSrory
AskWoody Lounger -
WSajlacombe
AskWoody Lounger
-
-
Viewing 2 reply threads -

Plus Membership
Donations from Plus members keep this site going. You can identify the people who support AskWoody by the Plus badge on their avatars.
AskWoody Plus members not only get access to all of the contents of this site -- including Susan Bradley's frequently updated Patch Watch listing -- they also receive weekly AskWoody Plus Newsletters (formerly Windows Secrets Newsletter) and AskWoody Plus Alerts, emails when there are important breaking developments.
Get Plus!
Welcome to our unique respite from the madness.
It's easy to post questions about Windows 11, Windows 10, Win8.1, Win7, Surface, Office, or browse through our Forums. Post anonymously or register for greater privileges. Keep it civil, please: Decorous Lounge rules strictly enforced. Questions? Contact Customer Support.
Search Newsletters
Search Forums
View the Forum
Search for Topics
Recent Topics
-
Still version 23H2?
by
WSbxcfilm
45 minutes ago -
Ubuntu 25.04 (Plucky Puffin) Beta released
by
Alex5723
5 hours, 30 minutes ago -
How to install App Store apps on an external SSD
by
Alex5723
6 hours, 24 minutes ago -
Where is Windows going?
by
Susan Bradley
56 minutes ago -
Installing Feature Update Windows 11 24H2
by
geekdom
23 hours, 53 minutes ago -
Windows 11 Insider Preview build 27823 released to Canary
by
joep517
1 day ago -
Windows 11 Hotpatch
by
Hackmuss
7 hours, 35 minutes ago -
System Guard service error still won’t be fixed
by
Susan Bradley
1 day ago -
Operation ForumTroll: APT attack with Google Chrome zero-day exploit chain
by
Alex5723
19 hours, 7 minutes ago -
Troy Hunt of HaveIBeenPwned Phished
by
Lars220
16 hours, 8 minutes ago -
Microsoft Windows security auditing Code 5061
by
mpw
1 day, 13 hours ago -
Can’t display images in incoming Outlook 365 emails
by
WScopwriter
21 hours, 5 minutes ago -
Windows 11 Insider Preview Build 26200.5510 early builds of 25H2
by
Alex5723
22 hours, 32 minutes ago -
0Patch : Micropatches released for SCF File NTLM Hash Disclosure Vulnerability
by
Alex5723
22 hours, 2 minutes ago -
Select multiple emails and they all open up!
by
CeeJay
2 days, 14 hours ago -
How to remove an update preview
by
Gunny
17 hours, 26 minutes ago -
Third party add ins reminder
by
Susan Bradley
7 minutes ago -
OTF, which backs Tor, Let’s Encrypt and more, sues to save its funding
by
Nibbled To Death By Ducks
2 days, 8 hours ago -
Updating Windows 10 to Windows 11: 23H2 or 24H2?
by
Still Anonymous
2 days, 19 hours ago -
How can I update “Explorer Patcher”
by
WSplanckster
2 days, 20 hours ago -
Check out the home page for Signal
by
CAS
2 days, 18 hours ago -
Windows 11 and Trial version of MS Office
by
Tex265
2 days, 17 hours ago -
Windows 11 Insider Preview build 26120.3585 (24H2) released to BETA
by
joep517
3 days, 1 hour ago -
Windows 11 Insider Preview build 26200.5510 released to DEV
by
joep517
3 days, 1 hour ago -
Windows 11 Insider Preview Build 26100.3624 (24H2) released to Release Preview
by
joep517
3 days, 1 hour ago -
Limits on User Names
by
CWBillow
2 days, 22 hours ago -
MS-DEFCON 4: Mixed bag for March
by
Susan Bradley
22 hours, 7 minutes ago -
Non Apple Keyboards
by
pmcjr6142
23 hours, 23 minutes ago -
How to delete your 23andMe data – The Verge
by
AJNorth
2 days, 20 hours ago -
7 common myths about Windows 11 (Microsoft AD)
by
EyesOnWindows
2 days, 17 hours ago
Recent blog posts
- Where is Windows going?
- System Guard service error still won’t be fixed
- Third party add ins reminder
- MS-DEFCON 4: Mixed bag for March
- Classic and Extended Control Panel — no need to say goodbye
- Things you can do in 2025 that you couldn’t do in 2024
- Revisiting Windows 11’s File Explorer
- Planning ahead for migration
Key Links
Want to Advertise in the free newsletter? How about a gift subscription in honor of a birthday? Send an email to sb@askwoody.com to ask how.
Mastodon profile for DefConPatch
Mastodon profile for AskWoody
Home • About • FAQ • Posts & Privacy • Forums • My Account
Register • Free Newsletter • Plus Membership • Gift Certificates • MS-DEFCON Alerts
Copyright ©2004-2025 by AskWoody Tech LLC. All Rights Reserved.