![]() |
![]() |
|
|||||||
| Excel Questions All Excel/VBA questions - formulas, macros, pivot tables, general help, etc. Please post to this forum in English only. |
![]() |
|
|
Thread Tools | Display Modes |
|
|
#1 |
|
Board Regular
Join Date: Apr 2002
Location: Pittsburgh, PA
Posts: 317
|
All,
I have the following situation. I have ranges named the following: 2002.03.01!Monday2 2002.03.01!Thursday 2002.03.01!Friday 2002.03.01!SaturdayWO2 etc. Is there anyway I can capture all information to the right of the ! and set it equal to a variable? I have been trying Left and Right with no success.
__________________
Thanks in advance, Patrick |
|
|
|
|
|
#2 |
|
New Member
Join Date: Apr 2002
Posts: 30
|
If your data is in cell A1,
=MID(A1,FIND("!",A1)+1,1000) this will isolate everything after the !. You can then refer to this result in other formulas. (If the data after the ! is likely to be longer than 1000 characters, increase the number) |
|
|
|
|
|
#3 |
|
Board Regular
Join Date: Apr 2002
Location: Pittsburgh, PA
Posts: 317
|
Thanks! I was actually trying just that!
__________________
Thanks in advance, Patrick |
|
|
|
|
|
#4 | |
|
New Member
Join Date: Apr 2002
Posts: 7
|
Quote:
other and put an Exclamation mark in the other box, click next, click in the left column, select "do not import column (skip)", click Finish.. No need for formulas Regards, Peo Sjoblom |
|
|
|
|
|
|
#5 |
|
Board Regular
Join Date: Apr 2002
Location: Pittsburgh, PA
Posts: 317
|
Actually, I need to do this with VBA. Neither method works. Is there a VBA function that can help?
__________________
Thanks in advance, Patrick |
|
|
|
|
|
#6 |
|
Board Regular
Join Date: Apr 2002
Location: Pittsburgh, PA
Posts: 317
|
Also, what happens if the ! is not found? Can I make it go to another part of the program?
__________________
Thanks in advance, Patrick |
|
|
|
![]() |
| Bookmarks |
| Thread Tools | |
| Display Modes | |
|
|