Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 129
Default Pulling Part of a String

Check out InstrRev

Sub t()
s = "asdfsa\asdf.txt"
ix = InStrRev(s, "\")
MsgBox ix
End Sub


RSteph wrote:
I've used the Mid and InStr functions to pull out parts of a string starting
from the left end of the string and running to the end of string (within a
cell).

Is there a way for me to go from the other direction? Start from the end of
the cell, and work my way backwards? I've got a column with a list of items
and then four sets of numbers. I want to pull the sets of numbers out into
other columns. The problem is that the item names are not uniform in length,
and some have one word names, some have 2-3 word names, so simply using
spaces, and starting points won't work for me.

I tried to look into doing something where I started from the start of the
string, and searched for the first numeric value, then work from there... but
I couldn't get that to work either.

Any help would be greatly appreciated.


Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Search/Match/Find ANY part of string to ANY part of Cell Value TWhizTom Excel Worksheet Functions 0 July 21st 08 08:16 PM
Pulling Part of a String Don Guillett Excel Programming 1 December 29th 06 06:36 PM
Pulling String RSteph Excel Programming 4 October 31st 06 10:22 PM
Pulling string RSteph Excel Programming 0 October 31st 06 05:48 PM
Pulling apart a string Kevin O'Neill[_2_] Excel Programming 6 January 6th 06 05:30 PM


All times are GMT +1. The time now is 11:02 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"