Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
ron ron is offline
external usenet poster
 
Posts: 118
Default InStrRev Question

InStrRev has the following syntax

InstrRev(stringcheck, stringmatch[, start[, compare]])

According to the Help section, "start" is "Optional. Numeric
expression that sets the starting position for each search. If
omitted, –1 is used, which means that the search begins at the last
character position. If start contains Null, an error occurs."

If I set "start" to -1, the expression evaluates correctly; if I set
start to any other value, the expression evaluates to zero. How can
you use "start" in InStrRev?...TIA, Ron
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1,549
Default InStrRev Question


The start number has to be equal to or greater than the "found" position.
Character numbering starts from the left, so the found position (for example)
of "c" in "revocation" is 5.
If you specify a start number less than 5 then the search will start to the
left of the c and the function will return 0.
--
Jim Cone
Portland, Oregon USA


"ron"
wrote in message
InStrRev has the following syntax

InstrRev(stringcheck, stringmatch[, start[, compare]])
According to the Help section, "start" is "Optional. Numeric
expression that sets the starting position for each search. If
omitted, –1 is used, which means that the search begins at the last
character position. If start contains Null, an error occurs."
If I set "start" to -1, the expression evaluates correctly; if I set
start to any other value, the expression evaluates to zero. How can
you use "start" in InStrRev?...TIA, Ron

  #3   Report Post  
Posted to microsoft.public.excel.programming
ron ron is offline
external usenet poster
 
Posts: 118
Default InStrRev Question

On Jan 17, 12:53*pm, "Jim Cone" wrote:
The start number has to be equal to or greater than the "found" position.
Character numbering starts from the left, so the found position (for example)
of "c" in "revocation" is 5.
If you specify a start number less than 5 then the search will start to the
left of the c and the function will return 0.
--
Jim Cone
Portland, Oregon *USA

"ron"
wrote in message
InStrRev has the following syntax

InstrRev(stringcheck, stringmatch[, start[, compare]])
According to the Help section, "start" is "Optional. Numeric
expression that sets the starting position for each search. If
omitted, –1 is used, which means that the search begins at the last
character position. If start contains Null, an error occurs."
If I set "start" to -1, the expression evaluates correctly; if I set
start to any other value, the expression evaluates to zero. *How can
you use "start" in InStrRev?...TIA, Ron


Jim...Thanks for the clear explanation and example, now I
understand...Best, Ron
  #5   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 5,651
Default InStrRev Question

On Sun, 18 Jan 2009 07:36:02 -0000, "Nigel"
wrote:

You could always set the start position as Len(stringcheck) for example


Operationally, how does that differ from setting it to -1?

--ron


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
InstrRev Issue Ajit Excel Discussion (Misc queries) 1 October 4th 07 12:08 AM
InStrRev issue John Keith[_2_] Excel Programming 1 February 26th 07 03:35 PM
Instrrev function DavidC Excel Programming 4 April 23rd 06 12:33 AM
worksheet function for InStrRev() Martin Excel Programming 3 March 6th 06 01:14 PM
InStrRev function not working? Michal Rosa Excel Programming 1 January 26th 04 04:14 AM


All times are GMT +1. The time now is 02:22 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"