Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default My problem with char(30)


Hi to all!

I donīt understand at all the role of char(30) in the formula

=RIGHT(F2;LEN(F2)-FIND(CHAR(30);SUBSTITUTE(F2;".";CHAR(30);LEN(F2)-LEN(SUBSTITUTE(F2;".";"")))))

Char(30) is record separator, but in a string (e.g. 1 Prelude.mp3)
????
What does it mean?


--
omikron123
------------------------------------------------------------------------
omikron123's Profile: http://www.excelforum.com/member.php...o&userid=30478
View this thread: http://www.excelforum.com/showthread...hreadid=501372

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 4,624
Default My problem with char(30)

It's a placeholder that is presumably not likely to be found in the
string in F2.

The outside SUBSTITUTE() function replaces the last "." character in F2
with CHAR(30). That character is then used by FIND() to locate where the
last "." is.

One could save a function call using

=MID(F2; FIND(CHAR(30); SUBSTITUTE(F2;".";CHAR(30);
LEN(F2)-LEN(SUBSTITUTE(F2;".";""))))+1;255)



In article ,
omikron123
wrote:

I donīt understand at all the role of char(30) in the formula

=RIGHT(F2;LEN(F2)-FIND(CHAR(30);SUBSTITUTE(F2;".";CHAR(30);LEN(F2)-LEN(SUBSTIT
UTE(F2;".";"")))))

Char(30) is record separator, but in a string (e.g. 1 Prelude.mp3)
????
What does it mean?

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default My problem with char(30)


Thank you very much.:) :) :)

JE McGimpsey Wrote:
It's a placeholder that is presumably not likely to be found in the
string in F2.

The outside SUBSTITUTE() function replaces the last "." character in
F2
with CHAR(30). That character is then used by FIND() to locate where
the
last "." is.

One could save a function call using

=MID(F2; FIND(CHAR(30); SUBSTITUTE(F2;".";CHAR(30);
LEN(F2)-LEN(SUBSTITUTE(F2;".";""))))+1;255)



In article ,
omikron123
wrote:

I donīt understand at all the role of char(30) in the formula


=RIGHT(F2;LEN(F2)-FIND(CHAR(30);SUBSTITUTE(F2;".";CHAR(30);LEN(F2)-LEN(SUBSTIT
UTE(F2;".";"")))))

Char(30) is record separator, but in a string (e.g. 1 Prelude.mp3)
????
What does it mean?



--
omikron123
------------------------------------------------------------------------
omikron123's Profile: http://www.excelforum.com/member.php...o&userid=30478
View this thread: http://www.excelforum.com/showthread...hreadid=501372

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
FIND 1 char in cell of any 3 char =True Nastech Excel Discussion (Misc queries) 5 April 26th 08 02:17 PM
8500 cells with phone number(7 char.), wishing to add area code (10 char.) [email protected] Excel Discussion (Misc queries) 6 March 10th 06 05:13 PM
Problem in compiling code containing "$" char Alain79[_3_] Excel Programming 11 June 30th 05 10:07 AM
XLL - VS .Net2003 - init problem - const char strings - /Gf option?? Kevin Love Excel Programming 0 July 27th 03 11:32 PM
XLL - VS .Net2003 - init problem - const char strings - /Gf option?? Rob Bovey Excel Programming 1 July 27th 03 10:41 PM


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

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"