#1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 79
Default Need formula

Hello, I am looking for a formula that will allow me to take specific figures
from a cell before and after a "/".

Example: 3/12
So in one cell I need it to read 3 and in another cell I need it to read 12.

This has to be done with formula and not macro. Any thoughts?

Thanks.
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 4,339
Default Need formula

=LEFT(A1,FIND("/",A1)-1) will give 3

=MID(A1,FIND("/",A1)+1,255) will give 12

HTH

"A.S." wrote:

Hello, I am looking for a formula that will allow me to take specific figures
from a cell before and after a "/".

Example: 3/12
So in one cell I need it to read 3 and in another cell I need it to read 12.

This has to be done with formula and not macro. Any thoughts?

Thanks.

  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 2,118
Default Need formula

Hoping this isn't just homework.....
try this

For a text-fraction in A1 (example: 3/12)

B1: =LEFT(A1,FIND("/",A1)-1)

C1: =RIGHT(A1,LEN(A1)-FIND("/",A1))
or
C1: =MID(A1,FIND("/",A1)+1,255)

Is that something you can work with?
***********
Regards,
Ron

XL2002, WinXP


"A.S." wrote:

Hello, I am looking for a formula that will allow me to take specific figures
from a cell before and after a "/".

Example: 3/12
So in one cell I need it to read 3 and in another cell I need it to read 12.

This has to be done with formula and not macro. Any thoughts?

Thanks.

  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 79
Default Need formula

Yes this helps. I just want to make sure that this is not based on a specific
position of the characters. meaning, its not jsut taking the first character
to the left of the "/", because I may have 10/12. Thanks for the help.

"Ron Coderre" wrote:

Hoping this isn't just homework.....
try this

For a text-fraction in A1 (example: 3/12)

B1: =LEFT(A1,FIND("/",A1)-1)

C1: =RIGHT(A1,LEN(A1)-FIND("/",A1))
or
C1: =MID(A1,FIND("/",A1)+1,255)

Is that something you can work with?
***********
Regards,
Ron

XL2002, WinXP


"A.S." wrote:

Hello, I am looking for a formula that will allow me to take specific figures
from a cell before and after a "/".

Example: 3/12
So in one cell I need it to read 3 and in another cell I need it to read 12.

This has to be done with formula and not macro. Any thoughts?

Thanks.

  #5   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 4,339
Default Need formula

No... it works by finding the "/" and selecting the number of characters to
the left or right.

"A.S." wrote:

Yes this helps. I just want to make sure that this is not based on a specific
position of the characters. meaning, its not jsut taking the first character
to the left of the "/", because I may have 10/12. Thanks for the help.

"Ron Coderre" wrote:

Hoping this isn't just homework.....
try this

For a text-fraction in A1 (example: 3/12)

B1: =LEFT(A1,FIND("/",A1)-1)

C1: =RIGHT(A1,LEN(A1)-FIND("/",A1))
or
C1: =MID(A1,FIND("/",A1)+1,255)

Is that something you can work with?
***********
Regards,
Ron

XL2002, WinXP


"A.S." wrote:

Hello, I am looking for a formula that will allow me to take specific figures
from a cell before and after a "/".

Example: 3/12
So in one cell I need it to read 3 and in another cell I need it to read 12.

This has to be done with formula and not macro. Any thoughts?

Thanks.



  #6   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 2,118
Default Need formula

As a potential alternative....

You could use text-to-columns to parse the text-fractions into the adjacent
cells.

Select the column of cells to be used

From the Excel main menu:
<data<text-to-column
Delimited.....click the [Next] button
Delimiter.....Check: Other and enter / ...click the [Next] button
Destination...Select the cell to the right of the top cell in your list
Click the [Finish] button

Does that help?
***********
Regards,
Ron

XL2002, WinXP


"A.S." wrote:

Yes this helps. I just want to make sure that this is not based on a specific
position of the characters. meaning, its not jsut taking the first character
to the left of the "/", because I may have 10/12. Thanks for the help.

"Ron Coderre" wrote:

Hoping this isn't just homework.....
try this

For a text-fraction in A1 (example: 3/12)

B1: =LEFT(A1,FIND("/",A1)-1)

C1: =RIGHT(A1,LEN(A1)-FIND("/",A1))
or
C1: =MID(A1,FIND("/",A1)+1,255)

Is that something you can work with?
***********
Regards,
Ron

XL2002, WinXP


"A.S." wrote:

Hello, I am looking for a formula that will allow me to take specific figures
from a cell before and after a "/".

Example: 3/12
So in one cell I need it to read 3 and in another cell I need it to read 12.

This has to be done with formula and not macro. Any thoughts?

Thanks.

  #7   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 1,047
Default Need formula

hi A.S.

to the left number
=left(a2,search("/",a2,1)-1)
for the right
=right(a2,search("/",a2,1))

hth
regards from Brazil
Marcelo



"A.S." escreveu:

Hello, I am looking for a formula that will allow me to take specific figures
from a cell before and after a "/".

Example: 3/12
So in one cell I need it to read 3 and in another cell I need it to read 12.

This has to be done with formula and not macro. Any thoughts?

Thanks.

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
Match then lookup Tenacity Excel Worksheet Functions 9 December 3rd 05 05:30 AM
Formula Problem - interrupted by #VALUE! in other cells!? Ted Excel Worksheet Functions 17 November 25th 05 05:18 PM
Formula checking multiple worksheets sonic-the-mouse Excel Worksheet Functions 2 June 5th 05 03:28 AM
Creating a check mark box MarthaSue Setting up and Configuration of Excel 18 April 28th 05 12:31 AM
Match / Vlookup within an Array formula Hari Prasadh Excel Discussion (Misc queries) 3 February 3rd 05 04:37 PM


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