Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Dan B
 
Posts: n/a
Default Need help with this formula...

Hi,

My data is as follows, all in one cell:

10015200 US Government Bonds 18,369,423.52
10012301 US Government Bonds 10,232.21

There are many varying lengths of digits. I am trying split off the numbers
to the right of US Government Bonds into another column. Here is my
formula:
=RIGHT(A7,IF(ISERROR(FIND(" ",A7)),LEN(A7),FIND(" ",A7)))

My result is 9,423.52. Its not pulling the whole number.

What do I need to change in the formula?

Thanks


  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Barb Reinhardt
 
Posts: n/a
Default Need help with this formula...

If your data is in A1, try

=MID(A1,SEARCH("US Government Bonds",A1)+20,255)

"Dan B" wrote:

Hi,

My data is as follows, all in one cell:

10015200 US Government Bonds 18,369,423.52
10012301 US Government Bonds 10,232.21

There are many varying lengths of digits. I am trying split off the numbers
to the right of US Government Bonds into another column. Here is my
formula:
=RIGHT(A7,IF(ISERROR(FIND(" ",A7)),LEN(A7),FIND(" ",A7)))

My result is 9,423.52. Its not pulling the whole number.

What do I need to change in the formula?

Thanks



  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Dave Peterson
 
Posts: n/a
Default Need help with this formula...

=--MID(A7,SEARCH("us government bonds",A7)+20,255)

=FIND(" ",A7)
finds the first space (directly before the "US Government...")

You want to find the last space character (or use a different method).



Dan B wrote:

Hi,

My data is as follows, all in one cell:

10015200 US Government Bonds 18,369,423.52
10012301 US Government Bonds 10,232.21

There are many varying lengths of digits. I am trying split off the numbers
to the right of US Government Bonds into another column. Here is my
formula:
=RIGHT(A7,IF(ISERROR(FIND(" ",A7)),LEN(A7),FIND(" ",A7)))

My result is 9,423.52. Its not pulling the whole number.

What do I need to change in the formula?

Thanks


--

Dave Peterson
  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Bob Phillips
 
Posts: n/a
Default Need help with this formula...

=--MID(A7,FIND("~",SUBSTITUTE(A7," ","~",LEN(A7)-LEN(SUBSTITUTE(A7,"
",""))))+1,99)

--
HTH

RP
"Dan B" wrote in message
...
Hi,

My data is as follows, all in one cell:

10015200 US Government Bonds 18,369,423.52
10012301 US Government Bonds 10,232.21

There are many varying lengths of digits. I am trying split off the

numbers
to the right of US Government Bonds into another column. Here is my
formula:
=RIGHT(A7,IF(ISERROR(FIND(" ",A7)),LEN(A7),FIND(" ",A7)))

My result is 9,423.52. Its not pulling the whole number.

What do I need to change in the formula?

Thanks




  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Dan B
 
Posts: n/a
Default Need help with this formula...

Ok...I messed up....All of the lines don't say US Government Bonds....I was
just showing data layout. I should have been more specific. Every row says
something different in place of the US Government....
Sorry about that. Any other ideas?

Thanks


"Dan B" wrote in message
...
Hi,

My data is as follows, all in one cell:

10015200 US Government Bonds 18,369,423.52
10012301 US Government Bonds 10,232.21

There are many varying lengths of digits. I am trying split off the
numbers to the right of US Government Bonds into another column. Here is
my formula:
=RIGHT(A7,IF(ISERROR(FIND(" ",A7)),LEN(A7),FIND(" ",A7)))

My result is 9,423.52. Its not pulling the whole number.

What do I need to change in the formula?

Thanks






  #6   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Dave Peterson
 
Posts: n/a
Default Need help with this formula...

Try Bob's suggestion.

Dan B wrote:

Ok...I messed up....All of the lines don't say US Government Bonds....I was
just showing data layout. I should have been more specific. Every row says
something different in place of the US Government....
Sorry about that. Any other ideas?

Thanks

"Dan B" wrote in message
...
Hi,

My data is as follows, all in one cell:

10015200 US Government Bonds 18,369,423.52
10012301 US Government Bonds 10,232.21

There are many varying lengths of digits. I am trying split off the
numbers to the right of US Government Bonds into another column. Here is
my formula:
=RIGHT(A7,IF(ISERROR(FIND(" ",A7)),LEN(A7),FIND(" ",A7)))

My result is 9,423.52. Its not pulling the whole number.

What do I need to change in the formula?

Thanks



--

Dave Peterson
  #7   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Dan B
 
Posts: n/a
Default Need help with this formula...

I get a #Value! error with Bob's


"Dave Peterson" wrote in message
...
Try Bob's suggestion.

Dan B wrote:

Ok...I messed up....All of the lines don't say US Government Bonds....I
was
just showing data layout. I should have been more specific. Every row
says
something different in place of the US Government....
Sorry about that. Any other ideas?

Thanks

"Dan B" wrote in message
...
Hi,

My data is as follows, all in one cell:

10015200 US Government Bonds 18,369,423.52
10012301 US Government Bonds 10,232.21

There are many varying lengths of digits. I am trying split off the
numbers to the right of US Government Bonds into another column. Here
is
my formula:
=RIGHT(A7,IF(ISERROR(FIND(" ",A7)),LEN(A7),FIND(" ",A7)))

My result is 9,423.52. Its not pulling the whole number.

What do I need to change in the formula?

Thanks



--

Dave Peterson



  #8   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Dave Peterson
 
Posts: n/a
Default Need help with this formula...

An unfortunate line break in Bob's formula:

=--MID(A7,FIND("~",SUBSTITUTE(A7," ","~",LEN(A7)
-LEN(SUBSTITUTE(A7," ",""))))+1,99)

(all one cell)



Dan B wrote:

I get a #Value! error with Bob's

"Dave Peterson" wrote in message
...
Try Bob's suggestion.

Dan B wrote:

Ok...I messed up....All of the lines don't say US Government Bonds....I
was
just showing data layout. I should have been more specific. Every row
says
something different in place of the US Government....
Sorry about that. Any other ideas?

Thanks

"Dan B" wrote in message
...
Hi,

My data is as follows, all in one cell:

10015200 US Government Bonds 18,369,423.52
10012301 US Government Bonds 10,232.21

There are many varying lengths of digits. I am trying split off the
numbers to the right of US Government Bonds into another column. Here
is
my formula:
=RIGHT(A7,IF(ISERROR(FIND(" ",A7)),LEN(A7),FIND(" ",A7)))

My result is 9,423.52. Its not pulling the whole number.

What do I need to change in the formula?

Thanks



--

Dave Peterson


--

Dave Peterson
  #9   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Bob Phillips
 
Posts: n/a
Default Need help with this formula...

It might be NG wrap-around. Try this version and feed back

=--MID(A7,FIND("~",SUBSTITUTE(A7," ","~",LEN(A7)-
LEN(SUBSTITUTE(A7," ",""))))+1,99)

--
HTH

RP
"Dan B" wrote in message
...
I get a #Value! error with Bob's


"Dave Peterson" wrote in message
...
Try Bob's suggestion.

Dan B wrote:

Ok...I messed up....All of the lines don't say US Government Bonds....I
was
just showing data layout. I should have been more specific. Every row
says
something different in place of the US Government....
Sorry about that. Any other ideas?

Thanks

"Dan B" wrote in message
...
Hi,

My data is as follows, all in one cell:

10015200 US Government Bonds 18,369,423.52
10012301 US Government Bonds 10,232.21

There are many varying lengths of digits. I am trying split off the
numbers to the right of US Government Bonds into another column.

Here
is
my formula:
=RIGHT(A7,IF(ISERROR(FIND(" ",A7)),LEN(A7),FIND(" ",A7)))

My result is 9,423.52. Its not pulling the whole number.

What do I need to change in the formula?

Thanks



--

Dave Peterson





  #10   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Dan B
 
Posts: n/a
Default Need help with this formula...

I got the same thing. Something is wrapping.....when I paste the formula in
a cell, it splits it and puts the last third part of the formula in the next
row. When pasting directly into the function bar, I get the #Value! error.


"Bob Phillips" wrote in message
...
It might be NG wrap-around. Try this version and feed back

=--MID(A7,FIND("~",SUBSTITUTE(A7," ","~",LEN(A7)-
LEN(SUBSTITUTE(A7," ",""))))+1,99)

--
HTH

RP
"Dan B" wrote in message
...
I get a #Value! error with Bob's


"Dave Peterson" wrote in message
...
Try Bob's suggestion.

Dan B wrote:

Ok...I messed up....All of the lines don't say US Government
Bonds....I
was
just showing data layout. I should have been more specific. Every
row
says
something different in place of the US Government....
Sorry about that. Any other ideas?

Thanks

"Dan B" wrote in message
...
Hi,

My data is as follows, all in one cell:

10015200 US Government Bonds 18,369,423.52
10012301 US Government Bonds 10,232.21

There are many varying lengths of digits. I am trying split off the
numbers to the right of US Government Bonds into another column.

Here
is
my formula:
=RIGHT(A7,IF(ISERROR(FIND(" ",A7)),LEN(A7),FIND(" ",A7)))

My result is 9,423.52. Its not pulling the whole number.

What do I need to change in the formula?

Thanks



--

Dave Peterson









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
Formula Problem - interrupted by #VALUE! in other cells!? Ted Excel Worksheet Functions 17 November 25th 05 05:18 PM
Hide formula skateblade Excel Worksheet Functions 10 October 15th 05 08:36 PM
Formula checking multiple worksheets sonic-the-mouse Excel Worksheet Functions 2 June 5th 05 03:28 AM
Match / Vlookup within an Array formula Hari Prasadh Excel Discussion (Misc queries) 3 February 3rd 05 04:37 PM
Help with macro formula and variable Huge project Excel Worksheet Functions 0 December 28th 04 01:27 AM


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