Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 244
Default Checking string

Hi! I have a matrix that contains names of companies and some info about
these compaines. For every company there is an array that contains rating
info. These ratings are written with a special syntax. What I want to do is
to find which rating agency is used. The ratings are written with a special
syntax. First comes three letters and an underscore and then comes (an
abbrevation of) the name of the ratingagency. Eg a raing looks like: RTG_SP*.
Here I want to single out the SP. The start indicates that there might be
additional info that I am not intreseted in. There are only three rating
agencies that I want to single out; SP, MDY and FITCH. But how do you check
an array and look for the names? Please any help appreciated! Thanks alot!
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 415
Default Checking string

Arne,
Is there an end-of-agency marker ?
Something between the "SP" and the rest of the info ?

NickHK

"Arne Hegefors" ...
Hi! I have a matrix that contains names of companies and some info about
these compaines. For every company there is an array that contains rating
info. These ratings are written with a special syntax. What I want to do
is
to find which rating agency is used. The ratings are written with a
special
syntax. First comes three letters and an underscore and then comes (an
abbrevation of) the name of the ratingagency. Eg a raing looks like:
RTG_SP*.
Here I want to single out the SP. The start indicates that there might be
additional info that I am not intreseted in. There are only three rating
agencies that I want to single out; SP, MDY and FITCH. But how do you
check
an array and look for the names? Please any help appreciated! Thanks alot!



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 244
Default Checking string

Hi NickHK! Yes there is such a marker. Let me give you an example of how it
looks like: RTG_SP_LT_ISSUER_DEFAULT. As you can see there is always RTG_
before the abbrevation of the rating agnecy name. After that name you also
have an underscore. Does that make it easier?

"NickHK" skrev:

Arne,
Is there an end-of-agency marker ?
Something between the "SP" and the rest of the info ?

NickHK

"Arne Hegefors" ...
Hi! I have a matrix that contains names of companies and some info about
these compaines. For every company there is an array that contains rating
info. These ratings are written with a special syntax. What I want to do
is
to find which rating agency is used. The ratings are written with a
special
syntax. First comes three letters and an underscore and then comes (an
abbrevation of) the name of the ratingagency. Eg a raing looks like:
RTG_SP*.
Here I want to single out the SP. The start indicates that there might be
additional info that I am not intreseted in. There are only three rating
agencies that I want to single out; SP, MDY and FITCH. But how do you
check
an array and look for the names? Please any help appreciated! Thanks alot!




  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 4,391
Default Checking string

Arne,
If it always going to be the 2nd value in the list wth at least 1 "_", then
RatingAgency=Split(Matrix,"_")(1)

Not sure what you matix is ; cell value, array value etc

NickHK

"Arne Hegefors" wrote in message
...
Hi NickHK! Yes there is such a marker. Let me give you an example of how

it
looks like: RTG_SP_LT_ISSUER_DEFAULT. As you can see there is always RTG_
before the abbrevation of the rating agnecy name. After that name you also
have an underscore. Does that make it easier?

"NickHK" skrev:

Arne,
Is there an end-of-agency marker ?
Something between the "SP" and the rest of the info ?

NickHK

"Arne Hegefors"

...
Hi! I have a matrix that contains names of companies and some info

about
these compaines. For every company there is an array that contains

rating
info. These ratings are written with a special syntax. What I want to

do
is
to find which rating agency is used. The ratings are written with a
special
syntax. First comes three letters and an underscore and then comes (an
abbrevation of) the name of the ratingagency. Eg a raing looks like:
RTG_SP*.
Here I want to single out the SP. The start indicates that there

might be
additional info that I am not intreseted in. There are only three

rating
agencies that I want to single out; SP, MDY and FITCH. But how do you
check
an array and look for the names? Please any help appreciated! Thanks

alot!





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
checking for a particular string in a cell Christopher Naveen[_2_] Excel Worksheet Functions 3 April 15th 08 12:54 PM
checking for a string & No. Christopher Naveen[_2_] Excel Worksheet Functions 10 December 21st 07 09:19 AM
Spell Checking a String Robert Mulroney[_3_] Excel Programming 1 November 29th 05 02:10 PM
Checking to see whether a string contains a certain character ajitpalsingh200[_21_] Excel Programming 1 November 26th 04 09:36 AM
Checking the value of the end of a string Rob H[_4_] Excel Programming 3 May 15th 04 09:06 AM


All times are GMT +1. The time now is 10:35 AM.

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

About Us

"It's about Microsoft Excel"