Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.newusers
external usenet poster
 
Posts: 193
Default Count characters within a cell to the left of "/"

I have text cells with text separated by the slash character. For example:
northern/coast What formula will tell me how many characters are to the left
of the "/" character? The answer to my example would be 8.

  #2   Report Post  
Posted to microsoft.public.excel.newusers
external usenet poster
 
Posts: 913
Default Count characters within a cell to the left of "/"

On Sat, 13 Dec 2008 13:50:01 -0800, robert
wrote:

I have text cells with text separated by the slash character. For example:
northern/coast What formula will tell me how many characters are to the left
of the "/" character? The answer to my example would be 8.



Try this formula:

=FIND("/",A1)-1

Hope this helps / Lars-Åke
  #3   Report Post  
Posted to microsoft.public.excel.newusers
external usenet poster
 
Posts: 193
Default Count characters within a cell to the left of "/"



"Lars-Ã…ke Aspelin" wrote:

On Sat, 13 Dec 2008 13:50:01 -0800, robert
wrote:

I have text cells with text separated by the slash character. For example:
northern/coast What formula will tell me how many characters are to the left
of the "/" character? The answer to my example would be 8.



Try this formula:

=FIND("/",A1)-1

Hope this helps / Lars-Ã…ke

Yes, thank you for your prompt answer/reply!
a1=6
!


  #4   Report Post  
Posted to microsoft.public.excel.newusers
DB. DB. is offline
external usenet poster
 
Posts: 28
Default Count characters within a cell to the left of "/"


"Lars-Åke Aspelin" wrote in message
...
On Sat, 13 Dec 2008 13:50:01 -0800, robert
wrote:

I have text cells with text separated by the slash character. For
example:
northern/coast What formula will tell me how many characters are to
the left
of the "/" character? The answer to my example would be 8.



Try this formula:

=FIND("/",A1)-1

Hope this helps / Lars-Åke



When you clever guys give us 'newusers' solutions to our problems I
like to look at those solutions to see if I can work out the logic
behind them, and thus maybe learn a little about Excel.
In this case I found myself asking "So what formula will Robert need
if he wants to know how many characters are to the *right* of the "/"
character? The answer's not at all obvious - not to me, anyway!
I guess it will start with FIND - but what follows?

TIA of any reply,

--
DB.


  #5   Report Post  
Posted to microsoft.public.excel.newusers
external usenet poster
 
Posts: 913
Default Count characters within a cell to the left of "/"

On Sun, 14 Dec 2008 11:29:38 -0000, "DB." wrote:


"Lars-Åke Aspelin" wrote in message
.. .
On Sat, 13 Dec 2008 13:50:01 -0800, robert
wrote:

I have text cells with text separated by the slash character. For
example:
northern/coast What formula will tell me how many characters are to
the left
of the "/" character? The answer to my example would be 8.



Try this formula:

=FIND("/",A1)-1

Hope this helps / Lars-Åke



When you clever guys give us 'newusers' solutions to our problems I
like to look at those solutions to see if I can work out the logic
behind them, and thus maybe learn a little about Excel.
In this case I found myself asking "So what formula will Robert need
if he wants to know how many characters are to the *right* of the "/"
character? The answer's not at all obvious - not to me, anyway!
I guess it will start with FIND - but what follows?

TIA of any reply,



FIND is used to find the position of a string within another string.
If you combine that with the LEN() function that returns the length of
a string you can calculate the number of characters to the right.

Hope this help / Lars-Åke



  #6   Report Post  
Posted to microsoft.public.excel.newusers
DB. DB. is offline
external usenet poster
 
Posts: 28
Default Count characters within a cell to the left of "/"


"Lars-Åke Aspelin" wrote in message
...
On Sun, 14 Dec 2008 11:29:38 -0000, "DB." wrote:


"Lars-Åke Aspelin" wrote in message
. ..
On Sat, 13 Dec 2008 13:50:01 -0800, robert
wrote:

I have text cells with text separated by the slash character. For
example:
northern/coast What formula will tell me how many characters are to
the left
of the "/" character? The answer to my example would be 8.


Try this formula:

=FIND("/",A1)-1

Hope this helps / Lars-Åke



When you clever guys give us 'newusers' solutions to our problems
I
like to look at those solutions to see if I can work out the logic
behind them, and thus maybe learn a little about Excel.
In this case I found myself asking "So what formula will Robert
need
if he wants to know how many characters are to the *right* of the "/"
character? The answer's not at all obvious - not to me, anyway!
I guess it will start with FIND - but what follows?

TIA of any reply,



FIND is used to find the position of a string within another string.
If you combine that with the LEN() function that returns the length of
a string you can calculate the number of characters to the right.

Hope this helps / Lars-Åke



Thanks for your reply - and so quick! Aren't you going to spell it out
for me? I'll struggle all week with the LEN() function!
If I live to a million years I'll never get to the bottom of this
marvellous Excel!

BW's - and a Happy Christmas, when it arrives.
--
DB.




  #7   Report Post  
Posted to microsoft.public.excel.newusers
external usenet poster
 
Posts: 913
Default Count characters within a cell to the left of "/"

On Sun, 14 Dec 2008 11:54:15 -0000, "DB." wrote:


"Lars-Åke Aspelin" wrote in message
.. .
On Sun, 14 Dec 2008 11:29:38 -0000, "DB." wrote:


"Lars-Åke Aspelin" wrote in message
...
On Sat, 13 Dec 2008 13:50:01 -0800, robert
wrote:

I have text cells with text separated by the slash character. For
example:
northern/coast What formula will tell me how many characters are to
the left
of the "/" character? The answer to my example would be 8.


Try this formula:

=FIND("/",A1)-1

Hope this helps / Lars-Åke


When you clever guys give us 'newusers' solutions to our problems
I
like to look at those solutions to see if I can work out the logic
behind them, and thus maybe learn a little about Excel.
In this case I found myself asking "So what formula will Robert
need
if he wants to know how many characters are to the *right* of the "/"
character? The answer's not at all obvious - not to me, anyway!
I guess it will start with FIND - but what follows?

TIA of any reply,



FIND is used to find the position of a string within another string.
If you combine that with the LEN() function that returns the length of
a string you can calculate the number of characters to the right.

Hope this helps / Lars-Åke



Thanks for your reply - and so quick! Aren't you going to spell it out
for me? I'll struggle all week with the LEN() function!
If I live to a million years I'll never get to the bottom of this
marvellous Excel!

BW's - and a Happy Christmas, when it arrives.



Of course I can spell it out, just didn't want to spoil the fun for
you of finding out yourself after doing some experimenting:

1) Put your text, containing the some characters, "/", and some more
characters in cell A1.
2) Put the formula =FIND("/",A1) in cell A2. What does it show?
3) Put the formula =LEN(A1) in cell A3, What does it show?
4) How many characters are there to the right of the "/" in cell A1?
5) Find out a way to combine the formulas in A2 and A3 to get the
result you want.

Hope this helps / Lars-Åke

  #8   Report Post  
Posted to microsoft.public.excel.newusers
DB. DB. is offline
external usenet poster
 
Posts: 28
Default Count characters within a cell to the left of "/"


"Lars-Åke Aspelin" wrote in message
...
On Sun, 14 Dec 2008 11:54:15 -0000, "DB." wrote:


"Lars-Åke Aspelin" wrote in message
. ..
On Sun, 14 Dec 2008 11:29:38 -0000, "DB."
wrote:


"Lars-Åke Aspelin" wrote in message
m...
On Sat, 13 Dec 2008 13:50:01 -0800, robert
wrote:

I have text cells with text separated by the slash character. For
example:
northern/coast What formula will tell me how many characters are
to
the left
of the "/" character? The answer to my example would be 8.


Try this formula:

=FIND("/",A1)-1

Hope this helps / Lars-Åke


When you clever guys give us 'newusers' solutions to our
problems
I
like to look at those solutions to see if I can work out the logic
behind them, and thus maybe learn a little about Excel.
In this case I found myself asking "So what formula will Robert
need
if he wants to know how many characters are to the *right* of the
"/"
character? The answer's not at all obvious - not to me, anyway!
I guess it will start with FIND - but what follows?

TIA of any reply,


FIND is used to find the position of a string within another string.
If you combine that with the LEN() function that returns the length
of
a string you can calculate the number of characters to the right.

Hope this helps / Lars-Åke



Thanks for your reply - and so quick! Aren't you going to spell it
out
for me? I'll struggle all week with the LEN() function!
If I live to a million years I'll never get to the bottom of this
marvellous Excel!

BW's - and a Happy Christmas, when it arrives.



Of course I can spell it out, just didn't want to spoil the fun for
you of finding out yourself after doing some experimenting:

1) Put your text, containing the some characters, "/", and some more
characters in cell A1.
2) Put the formula =FIND("/",A1) in cell A2. What does it show?
3) Put the formula =LEN(A1) in cell A3, What does it show?
4) How many characters are there to the right of the "/" in cell A1?
5) Find out a way to combine the formulas in A2 and A3 to get the
result you want.

Hope this helps / Lars-Åke



Thanks again! Your reply gives me summat to occupy a wet Sunday
afternoon here in Buckinghamshire, UK..
I'll not trouble you further!

--
DB.


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
How do I get a "link-to" cell to appear in upper left (Excel) Dadders Excel Worksheet Functions 2 September 14th 08 11:55 PM
Excel - Golf - how to display "-2" as "2 Under" or "4"as "+4" or "4 Over" in a calculation cell Steve Kay Excel Discussion (Misc queries) 2 August 8th 08 01:54 AM
How can I Auto insert an "X" in a cell by just ONE left click???? Mac 5430 Excel Discussion (Misc queries) 3 April 14th 08 12:52 AM
HELP on "left","right","find","len","substitute" functions serene83 Excel Discussion (Misc queries) 5 June 27th 06 02:23 AM
Count occurences of "1"/"0" (or"TRUE"/"FALSE") in a row w. conditions in the next BCB New Users to Excel 7 May 13th 06 10:02 PM


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

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"