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
-
Europe Seeks Alternatives to U.S. Cloud Providers
by
Alex5723
3 hours, 26 minutes ago -
Test post
by
Susan Bradley
5 hours, 39 minutes ago -
Used Systems to delete Temp files Gone WRONG what does this mean?
by
Deo
7 hours, 21 minutes ago -
SSD shuts down on its own
by
CWBillow
3 hours, 1 minute ago -
OneDrive File Sharing Changes
by
David Clark
15 hours, 24 minutes ago -
OneDrive File Sharing Changes
by
David Clark
17 hours, 27 minutes ago -
Win 10 Pro 22H2 to Win 11 Pro 23H2 Conversion Guide
by
doneager
5 hours, 11 minutes ago -
Today is world backup day
by
Alex5723
9 hours, 5 minutes ago -
Windows .exe on Mint
by
Slowpoke47
19 hours ago -
Reviewing your licensing options
by
Susan Bradley
4 hours, 46 minutes ago -
Apple has been analyzing your photos since September 2024
by
B. Livingston
14 hours, 4 minutes ago -
What Windows 11 24H2 offers beyond bugs
by
Lance Whitney
9 hours, 21 minutes ago -
Making sense of Settings in Windows 11
by
Simon Bisson
5 hours, 18 minutes ago -
Windows 11 pro fails to log in after upgrading Win 10 pro to Win 11 pro 24h2
by
ben_sitaud
15 hours, 17 minutes ago -
23H2 / 24H2 / Local v. Microsoft Account.
by
CWBillow
13 hours, 4 minutes ago -
YouTube Ad Blocker Blocker
by
bbearren
13 hours, 15 minutes ago -
Obscure historical facts about Windows
by
Cybertooth
14 hours, 53 minutes ago -
Microsoft Backup
by
Linda2019
6 hours, 37 minutes ago -
What is the best notepad++ version for W7?
by
Picky
14 hours, 7 minutes ago -
What are right steps to move MS 365 Office+OneDrive files from PC to iMac?
by
glnz
1 day, 23 hours ago -
How to move existing MS 365 Office with OneDrive files from PC to new iMac
by
glnz
1 day, 23 hours ago -
How to move MS 365 files (some on OneDrive) from PC to iMac
by
glnz
2 days, 18 hours ago -
Microsoft adding Quick Machine Recovery to Windows 11
by
Alex5723
2 days, 18 hours ago -
Microsoft vs Passwords
by
Alex5723
2 hours, 30 minutes ago -
Windows 11 Insider Preview build 26200.5516 released to DEV
by
joep517
2 days, 22 hours ago -
Windows 11 Insider Preview build 26120.3653 (24H2) released to BETA
by
joep517
2 days, 22 hours ago -
Two March KB5053606 updates?
by
Adam
2 days, 16 hours ago -
MS Edge Not Updating to v134.0.3124.95 (rel. 27-Mar-2025)
by
lmacri
2 days, 16 hours ago -
Intel® Graphics/Sound Driver updates for 7th-10th Gen Intel® Core™ Processor
by
Alex5723
2 days, 19 hours ago -
Is there a comprehensve way to tranfer ALL current Edge Settings into a new Edge
by
Tex265
2 days, 17 hours ago
Recent blog posts
Key Links
S | M | T | W | T | F | S |
---|---|---|---|---|---|---|
1 | 2 | 3 | 4 | 5 | ||
6 | 7 | 8 | 9 | 10 | 11 | 12 |
13 | 14 | 15 | 16 | 17 | 18 | 19 |
20 | 21 | 22 | 23 | 24 | 25 | 26 |
27 | 28 | 29 | 30 |
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.