Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 22
Default Picking figures out of a cell

Hello everyone,

I have data in a single cell that looks like this: 140x40x200
I want to be able to have an adjacent cell pick/extract the 200 value

Is there a simple way, without resorting to a macro?

Thanks

  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 11,058
Default Picking figures out of a cell

If the final set of digits is always a three digit number, then:
=RIGHT(A1,3)*1
if not, then use Text to Columns

--
Gary's Student


"Vince" wrote:

Hello everyone,

I have data in a single cell that looks like this: 140x40x200
I want to be able to have an adjacent cell pick/extract the 200 value

Is there a simple way, without resorting to a macro?

Thanks


  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 11,058
Default Picking figures out of a cell

If you are will to use a UDF, this is only a one-liner:

Function last_number(r As Range) As Long
last_number = Split(r.Value, "x")(2)
End Function

--
Gary's Student


"Vince" wrote:

Hello everyone,

I have data in a single cell that looks like this: 140x40x200
I want to be able to have an adjacent cell pick/extract the 200 value

Is there a simple way, without resorting to a macro?

Thanks


  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 22
Default Picking figures out of a cell


Gary''s Student wrote:
If the final set of digits is always a three digit number, then:
=RIGHT(A1,3)*1
if not, then use Text to Columns

--
Gary's Student


Thumbs up! 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
insert date Larry Excel Worksheet Functions 28 July 15th 06 02:41 AM
Compiling macro based on cell values simonsmith Excel Discussion (Misc queries) 1 May 16th 06 08:31 PM
Urgent date/scheduling calc needed jct Excel Worksheet Functions 3 February 24th 06 01:36 AM
cell color index comparison MINAL ZUNKE New Users to Excel 1 June 30th 05 07:11 AM
Copy cell format to cell on another worksht and update automatical kevinm Excel Worksheet Functions 21 May 19th 05 11:07 AM


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