#1   Report Post  
Posted to microsoft.public.excel.misc
Joe
 
Posts: n/a
Default Formula Question

Is there a formula that will return only partial data from one cell to another?
Ex. Cell D1 contains (5^Inlet) And I want to write a formula that will only
return the number 5 of cell D1 to Cell A1. Is this possible?
  #2   Report Post  
Posted to microsoft.public.excel.misc
protonLeah
 
Posts: n/a
Default Formula Question


Yes:
"=MID(source,start,length)"

For the example given:
Source = D1,
start = 1, i.e., the first character in the string,
length =1, i.e., the number of characters to copy

Of course, if number of characters to be copied varies, as I suspect,
it gets more complicated, nor did you explain the significance of the
caret after the '5' character.


--
protonLeah
------------------------------------------------------------------------
protonLeah's Profile: http://www.excelforum.com/member.php...o&userid=32097
View this thread: http://www.excelforum.com/showthread...hreadid=541882

  #3   Report Post  
Posted to microsoft.public.excel.misc
tim m
 
Posts: n/a
Default Formula Question

For your specific example you could use the function 'LEFT'

=LEFT(D1,1) This will look at cell D1 and return the left most character.

"Joe" wrote:

Is there a formula that will return only partial data from one cell to another?
Ex. Cell D1 contains (5^Inlet) And I want to write a formula that will only
return the number 5 of cell D1 to Cell A1. Is this possible?

  #4   Report Post  
Posted to microsoft.public.excel.misc
JE McGimpsey
 
Posts: n/a
Default Formula Question

If the number is always left paren followed by one digit:

D1: =--MID(A1,2,1)

if there may be more digits, but they're always followed by a caret (^):

D1: =--MID(A1,2,FIND("^",A1)-2)


In article ,
Joe wrote:

Is there a formula that will return only partial data from one cell to
another?
Ex. Cell D1 contains (5^Inlet) And I want to write a formula that will only
return the number 5 of cell D1 to Cell A1. Is this possible?

  #5   Report Post  
Posted to microsoft.public.excel.misc
Joe
 
Posts: n/a
Default Formula Question

Thanks for the help.

"JE McGimpsey" wrote:

If the number is always left paren followed by one digit:

D1: =--MID(A1,2,1)

if there may be more digits, but they're always followed by a caret (^):

D1: =--MID(A1,2,FIND("^",A1)-2)


In article ,
Joe wrote:

Is there a formula that will return only partial data from one cell to
another?
Ex. Cell D1 contains (5^Inlet) And I want to write a formula that will only
return the number 5 of cell D1 to Cell A1. Is this possible?




  #6   Report Post  
Posted to microsoft.public.excel.misc
Joe
 
Posts: n/a
Default Formula Question

yes there may be more than one digit before the ^. 2 digits maximum ex.
10^Inlet
the ^ stands for offset. A symbol we use. All I want to do is return the
number before the ^ to another cell as I explained before.

"Joe" wrote:

Is there a formula that will return only partial data from one cell to another?
Ex. Cell D1 contains (5^Inlet) And I want to write a formula that will only
return the number 5 of cell D1 to Cell A1. Is this possible?

  #7   Report Post  
Posted to microsoft.public.excel.misc
TKnTexas
 
Posts: n/a
Default Formula Question

Wouldn't the formula be:

=left(A1,find("^",A1,1)-1)

  #8   Report Post  
Posted to microsoft.public.excel.misc
TKnTexas
 
Posts: n/a
Default Formula Question

Wouldn't the formula be:

=left(A1,find("^",A1,1)-1)

  #9   Report Post  
Posted to microsoft.public.excel.misc
JE McGimpsey
 
Posts: n/a
Default Formula Question

The OP's example has a left paren before the 5, so you'd use
MID(A1,2,...) rather than LEFT(A1,...)

In article . com,
"TKnTexas" wrote:

Wouldn't the formula be:

=left(A1,find("^",A1,1)-1)

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
Newbie Question - Subtraction Formula Question [email protected] Excel Discussion (Misc queries) 3 May 5th 06 06:50 PM
Formula Question Formula Question Excel Discussion (Misc queries) 2 April 23rd 06 01:00 AM
Excel formula question bb Excel Discussion (Misc queries) 3 April 20th 06 04:11 AM
Formula Question Marcus Feldmore Excel Worksheet Functions 1 November 11th 05 04:47 PM
I have a question regarding countif formula. Fahad Farid Ansari Excel Worksheet Functions 6 October 2nd 05 12:57 AM


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