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. Unless you have an immediate, pressing need to install a specific patch, don't do it. |
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, 11 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
-
Use of Gmail rejected.
by
CBFPD-Chief115
2 hours, 26 minutes ago -
WuMgr operational questions
by
Tex265
3 hours, 10 minutes ago -
Beijing’s unprecedented half-marathon: Humans vs. humanoids!
by
Alex5723
8 hours, 14 minutes ago -
New Phishing Campaign Targeted at Mac Users
by
Alex5723
5 hours, 15 minutes ago -
Backing up Google Calendar
by
CWBillow
14 hours, 41 minutes ago -
Windows 11 Insider Preview build 27818 released to Canary
by
joep517
1 day, 3 hours ago -
File Naming Conventions (including Folders)
by
Magic66
2 hours, 4 minutes ago -
Windows 11 Insider Preview Build 26100.3613 (24H2) released to Release Preview
by
joep517
1 day, 10 hours ago -
Microsoft sends emails to Windows 10 users about EOS
by
Alex5723
21 hours, 15 minutes ago -
Outlook 2024 importing Calendar and Contacts – FAILURE
by
Kathy Stevens
3 hours, 33 minutes ago -
Adding Microsoft Account.
by
DaveBRenn
1 day, 12 hours ago -
Windows 11 Insider Preview build 26120.3576 released to DEV and BETA
by
joep517
2 days, 11 hours ago -
Windows 11 Insider Preview Build 22635.5090 (23H2) released to BETA
by
joep517
2 days, 11 hours ago -
Windows 11 won’t boot
by
goducks25
4 hours, 21 minutes ago -
Choosing virtual machine product for Windows on Mac
by
peterb
2 days, 1 hour ago -
Rest in Peace
by
Roy Lasris
3 days, 6 hours ago -
CISA : Install Windows March 2025 Updates until April 1 or shut down PC.
by
Alex5723
3 hours, 56 minutes ago -
Google proposes users with incompatible Win 11 PCs to migrate to ChromeOS Flex
by
Alex5723
3 days, 6 hours ago -
Drivers for Epson Perfection V600 Photo – scanner
by
Bookman
2 days, 11 hours ago -
Long Time Member
by
jackpet
3 days, 9 hours ago -
Woody Leonhard (1951–2025)
by
Will Fastie
5 hours, 5 minutes ago -
What I learned from Woody Leonhard
by
B. Livingston
3 days, 2 hours ago -
Windows Settings today
by
Simon Bisson
3 days, 17 hours ago -
Mail Merge magic in Microsoft Word
by
Peter Deegan
15 hours, 43 minutes ago -
Businesses in the crosshairs
by
Susan Bradley
2 days, 7 hours ago -
Double-row taskbar?
by
CWBillow
23 hours, 14 minutes ago -
Upgrading non-supported HW to Win 11
by
RetiredGeek
1 day, 8 hours ago -
Audio locks up after 15 minutes
by
WSArthurR
1 day, 8 hours ago -
Copilot app uninstalled
by
Susan Bradley
1 day, 6 hours ago -
Strongbox Password Manager Sold to Applause Group – Cost Escalation Imminent
by
Paul T
5 days, 3 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.