Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 191
Default formula for pulling only numbers but not text from another cell

I need a formula to pull only numbers and one to pull oinly letters from a
cell and put them in another cell.
Scenario:
Worksheet A, Cell A2= (7) apples
I want: Worksheet B, Cell B2 to = (7)
Worksheet B, Cell B3 to = apples
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 461
Default formula for pulling only numbers but not text from another cell

In cell B2 type

=LEFT(A2,LEN(A2)-FIND(" ",A2,1))

In Cell B3 type

=RIGHT(A2,LEN(A2)-FIND(" ",A2,1))

"Jamie" wrote:

I need a formula to pull only numbers and one to pull oinly letters from a
cell and put them in another cell.
Scenario:
Worksheet A, Cell A2= (7) apples
I want: Worksheet B, Cell B2 to = (7)
Worksheet B, Cell B3 to = apples

  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 191
Default formula for pulling only numbers but not text from another cel

OK - I apologize - the example I gave you was just an example and not exactly
what I need. I tried to follow your formula as a template for my specific
need and had trouble, Let me explain exactly what my situation is:
Scenario: Sheet 2, Cell B50= Change0.320
I want: Sheet 1, Cell C27 to = 0.320
Worksheet B, Cell D27 to = Change

"AKphidelt" wrote:

In cell B2 type

=LEFT(A2,LEN(A2)-FIND(" ",A2,1))

In Cell B3 type

=RIGHT(A2,LEN(A2)-FIND(" ",A2,1))

"Jamie" wrote:

I need a formula to pull only numbers and one to pull oinly letters from a
cell and put them in another cell.
Scenario:
Worksheet A, Cell A2= (7) apples
I want: Worksheet B, Cell B2 to = (7)
Worksheet B, Cell B3 to = apples

  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 5,651
Default formula for pulling only numbers but not text from another cel

On Thu, 17 May 2007 11:06:00 -0700, Jamie
wrote:

OK - I apologize - the example I gave you was just an example and not exactly
what I need. I tried to follow your formula as a template for my specific
need and had trouble, Let me explain exactly what my situation is:
Scenario: Sheet 2, Cell B50= Change0.320
I want: Sheet 1, Cell C27 to = 0.320
Worksheet B, Cell D27 to = Change


And what was the problem with RagDyer's suggestion?

=LOOKUP(99^99,--MID(A2,MIN(SEARCH({0,1,2,3,4,5,6,7,8,9},
A2&"0123456789")),ROW(INDIRECT("1:"&LEN(A2)))))


--ron
  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 191
Default formula for pulling only numbers but not text from another cel

I hadn't seen that post when I posted again. I'm about to try it. Keep your
pants on.

"Ron Rosenfeld" wrote:

On Thu, 17 May 2007 11:06:00 -0700, Jamie
wrote:

OK - I apologize - the example I gave you was just an example and not exactly
what I need. I tried to follow your formula as a template for my specific
need and had trouble, Let me explain exactly what my situation is:
Scenario: Sheet 2, Cell B50= Change0.320
I want: Sheet 1, Cell C27 to = 0.320
Worksheet B, Cell D27 to = Change


And what was the problem with RagDyer's suggestion?

=LOOKUP(99^99,--MID(A2,MIN(SEARCH({0,1,2,3,4,5,6,7,8,9},
A2&"0123456789")),ROW(INDIRECT("1:"&LEN(A2)))))


--ron



  #6   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 3,572
Default formula for pulling only numbers but not text from another cell

This will return *only* the *first* contiguous set of numbers (*no* parens).

=LOOKUP(99^99,--MID(A2,MIN(SEARCH({0,1,2,3,4,5,6,7,8,9},A2&"012345 6789")),ROW(INDIRECT("1:"&LEN(A2)))))

This subtracts that *first* set of numbers, and returns what's left over:

=SUBSTITUTE(A2,LOOKUP(99^99,--MID(A2,MIN(SEARCH({0,1,2,3,4,5,6,7,8,9},A2&"012345 6789")),ROW(INDIRECT("1:"&LEN(A2))))),"")

--

HTH,

RD
================================================== ===
Please keep all correspondence within the Group, so all may benefit!
================================================== ===

"Jamie" wrote in message
...
I need a formula to pull only numbers and one to pull oinly letters from a
cell and put them in another cell.
Scenario:
Worksheet A, Cell A2= (7) apples
I want: Worksheet B, Cell B2 to = (7)
Worksheet B, Cell B3 to = apples


  #7   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 3,572
Default formula for pulling only numbers but not text from another cell

This would subtract the contents of the cell where you entered the first
formula.
Makes the second formula a little shorter.<g

=SUBSTITUTE(A2,B2,"")
--

HTH,

RD
================================================== ===
Please keep all correspondence within the Group, so all may benefit!
================================================== ===


"RagDyeR" wrote in message
...
This will return *only* the *first* contiguous set of numbers (*no* parens).

=LOOKUP(99^99,--MID(A2,MIN(SEARCH({0,1,2,3,4,5,6,7,8,9},A2&"012345 6789")),ROW(INDIRECT("1:"&LEN(A2)))))

This subtracts that *first* set of numbers, and returns what's left over:

=SUBSTITUTE(A2,LOOKUP(99^99,--MID(A2,MIN(SEARCH({0,1,2,3,4,5,6,7,8,9},A2&"012345 6789")),ROW(INDIRECT("1:"&LEN(A2))))),"")

--

HTH,

RD
================================================== ===
Please keep all correspondence within the Group, so all may benefit!
================================================== ===

"Jamie" wrote in message
...
I need a formula to pull only numbers and one to pull oinly letters from a
cell and put them in another cell.
Scenario:
Worksheet A, Cell A2= (7) apples
I want: Worksheet B, Cell B2 to = (7)
Worksheet B, Cell B3 to = apples



  #8   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 964
Default formula for pulling only numbers but not text from another cell

Try these:

=LEFT('Worksheet A'!A2,FIND(")",'Worksheet A'!A2))

=MID('Worksheet A'!A2,FIND(")",'Worksheet A'!A2)+2,999)

HTH,
Elkar


"Jamie" wrote:

I need a formula to pull only numbers and one to pull oinly letters from a
cell and put them in another cell.
Scenario:
Worksheet A, Cell A2= (7) apples
I want: Worksheet B, Cell B2 to = (7)
Worksheet B, Cell B3 to = apples

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
Pulling text from a cell jnasr Excel Worksheet Functions 3 November 9th 06 04:44 PM
function for pulling certain numbers from a cell? datasorter Excel Worksheet Functions 3 August 3rd 06 12:30 AM
extract number and use in formula from text & numbers in cell ivory_kitten Excel Worksheet Functions 3 July 14th 06 05:38 AM
pulling text into a sum formula Karen D Excel Worksheet Functions 2 April 19th 05 01:48 AM
Help creating a formula, pulling from a set of static numbers. James Excel Worksheet Functions 1 December 20th 04 06:39 AM


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