#1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 111
Default Formula Please?

I have the following data in cell A1.

4K (C4)

I need to extract both numerals.

By placing the following formula in another cell extracts the first 4.

=LEFT(A1,FIND("K",A1,1)-1)

What is the formula for removing (C) and placing the 2nd 4 in another cell?

TIA
  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 10,593
Default Formula Please?

If always that format

=MID(A1,FIND("C",A")+1,1)

--
HTH

Bob Phillips

(replace somewhere in email address with gmail if mailing direct)

"Saxman" wrote in message
...
I have the following data in cell A1.

4K (C4)

I need to extract both numerals.

By placing the following formula in another cell extracts the first 4.

=LEFT(A1,FIND("K",A1,1)-1)

What is the formula for removing (C) and placing the 2nd 4 in another

cell?

TIA



  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 111
Default Formula Please?

Bob Phillips wrote:
If always that format

=MID(A1,FIND("C",A")+1,1)

This gives a #VALUE! prompt.
  #5   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 111
Default Formula Please?

Bob Phillips wrote:
If always that format

=MID(A1,FIND("C",A")+1,1)

Excel corrects this to

=MID(A1,FIND("C","A")+1,1)


  #6   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 4,393
Default Formula Please?

You use the word 'numeral' suggesting a single digit in each case.
But then you FIND K rather than using =LEFT(A1,1) to get the first 4.
So I assume we could have, for example, 15K (C56)
Try this
=LEFT(MID(A1,FIND("(",A1)+2,2),FIND(")",A1)-FIND("(",A1)-2)
By the way if you want the results to be numeric precede each formula
with -- (a pair of unitary negations)
--=LEFT(MID(A1,FIND("(",A1)+2,2),FIND(")",A1)-FIND("(",A1)-2)
best wishes
--
Bernard V Liengme
www.stfx.ca/people/bliengme
remove caps from email

"Saxman" wrote in message
...
I have the following data in cell A1.

4K (C4)

I need to extract both numerals.

By placing the following formula in another cell extracts the first 4.

=LEFT(A1,FIND("K",A1,1)-1)

What is the formula for removing (C) and placing the 2nd 4 in another
cell?

TIA



  #7   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 4,393
Default Formula Please?

Clearly Bob meant to type =MID(A1,FIND("C",A1)+1,1)

--
Bernard V Liengme
www.stfx.ca/people/bliengme
remove caps from email

"Saxman" wrote in message
...
Bob Phillips wrote:
If always that format

=MID(A1,FIND("C",A")+1,1)

Excel corrects this to

=MID(A1,FIND("C","A")+1,1)



  #8   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 3,572
Default Formula Please?

If they're *always* single digits,

Extract the first 4 with:
=Left(A1)

And the second 4 with:
=Left(Right(A1,2))
--

HTH,

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

"Saxman" wrote in message
...
I have the following data in cell A1.

4K (C4)

I need to extract both numerals.

By placing the following formula in another cell extracts the first 4.

=LEFT(A1,FIND("K",A1,1)-1)

What is the formula for removing (C) and placing the 2nd 4 in another cell?

TIA


  #9   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 111
Default Formula Please?

Bernard Liengme wrote:

--=LEFT(MID(A1,FIND("(",A1)+2,2),FIND(")",A1)-FIND("(",A1)-2)


This works fine.

Thank you so much to all for your learned advice.
  #10   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 111
Default Formula Please?

RagDyeR wrote:
If they're *always* single digits,


They are.

Extract the first 4 with:
=Left(A1)

And the second 4 with:
=Left(Right(A1,2))


Both work fine.

Thanks again.


  #11   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 3,572
Default Formula Please?

Thanks for the feed-back.

--
Regards,

RD

---------------------------------------------------------------------------
Please keep all correspondence within the NewsGroup, so all may benefit !
---------------------------------------------------------------------------
"Saxman" wrote in message
...
RagDyeR wrote:
If they're *always* single digits,


They are.

Extract the first 4 with:
=Left(A1)

And the second 4 with:
=Left(Right(A1,2))


Both work fine.

Thanks again.


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
Reusing formula Tony29 Excel Discussion (Misc queries) 7 September 7th 06 03:34 AM
Dynamic Range with unused formula messing up x axis on dynamic graph [email protected] Charts and Charting in Excel 2 February 2nd 06 08:02 PM
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


All times are GMT +1. The time now is 12:26 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"