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
![]() |
Patch reliability is unclear, but widespread attacks make patching prudent. Go ahead and patch, but watch out for potential problems. |
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 18 years, 1 month 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
-
USB webcam / microphone missing after KB5050009 update
by
WSlloydkuhnle
3 hours, 44 minutes ago -
TeleMessage, a modified Signal clone used by US government has been hacked
by
Alex5723
5 hours, 1 minute ago -
The story of Windows Longhorn
by
Cybertooth
5 hours, 30 minutes ago -
Red x next to folder on OneDrive iPadOS
by
dmt_3904
6 hours, 59 minutes ago -
Are manuals extinct?
by
Susan Bradley
22 minutes ago -
Canonical ditching Sudo for Rust Sudo -rs starting with Ubuntu
by
Alex5723
16 hours, 7 minutes ago -
Network Issue
by
Casey H
3 hours, 12 minutes ago -
Fedora Linux is now an official WSL distro
by
Alex5723
1 day, 4 hours ago -
May 2025 Office non-Security updates
by
PKCano
1 day, 4 hours ago -
Windows 10 filehistory including onedrive folder
by
Steve Bondy
1 day, 6 hours ago -
pages print on restart (Win 11 23H2)
by
cyraxote
7 hours, 21 minutes ago -
Windows 11 Insider Preview build 26200.5581 released to DEV
by
joep517
1 day, 8 hours ago -
Windows 11 Insider Preview build 26120.3950 (24H2) released to BETA
by
joep517
1 day, 8 hours ago -
Proton to drop prices after ruling against “Apple tax”
by
Cybertooth
1 day, 16 hours ago -
24H2 Installer – don’t see Option for non destructive install
by
JP
8 hours, 26 minutes ago -
Asking Again here (New User and Fast change only backups)
by
thymej
2 days, 3 hours ago -
How much I spent on the Mac mini
by
Will Fastie
1 day, 2 hours ago -
How to get rid of Copilot in Microsoft 365
by
Lance Whitney
6 hours, 27 minutes ago -
Spring cleanup — 2025
by
Deanna McElveen
2 days, 9 hours ago -
Setting up Windows 11
by
Susan Bradley
1 day, 4 hours ago -
VLC Introduces Cutting-Edge AI Subtitling and Translation Capabilities
by
Alex5723
2 days, 4 hours ago -
Powershell version?
by
CWBillow
2 days, 5 hours ago -
SendTom Toys
by
CWBillow
16 hours, 27 minutes ago -
Add shortcut to taskbar?
by
CWBillow
2 days, 9 hours ago -
Sycophancy in GPT-4o: What happened
by
Alex5723
3 days, 1 hour ago -
How can I install Skype on Windows 7?
by
Help
3 days ago -
Logitech MK850 Keyboard issues
by
Rush2112
2 days, 7 hours ago -
We live in a simulation
by
Alex5723
3 days, 16 hours ago -
Netplwiz not working
by
RetiredGeek
3 days, 2 hours ago -
Windows 11 24H2 is broadly available
by
Alex5723
4 days, 4 hours ago
Recent blog posts
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.