Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 73
Default capturing text to the right

Remaining Balance on Invoice: $1,000.00

the text above is in a cell..i have thousand of cells in column like this

how do i capture just the "$1,000.00" amount. because this amount is
sometimes a 1,000 and sometimes 10,000

Thank you
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11,501
Default capturing text to the right

Hi,

Try this but it's still text

=MID(A1,FIND("$",A1),999)

or this to drop the $ sign

=MID(A1,FIND("$",A1)+1,999)

Mike

"dstiefe" wrote:

Remaining Balance on Invoice: $1,000.00

the text above is in a cell..i have thousand of cells in column like this

how do i capture just the "$1,000.00" amount. because this amount is
sometimes a 1,000 and sometimes 10,000

Thank you

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 131
Default capturing text to the right

If they're all in the same column, and there is no text after the $ amount,
then the simplest approach would be a text-to-columns operation with "$" or
":" delimiter, depending on how reliably consistent the preceding text is.
You can the arguments all set the right way using the macro recorder...


"dstiefe" wrote:

Remaining Balance on Invoice: $1,000.00

the text above is in a cell..i have thousand of cells in column like this

how do i capture just the "$1,000.00" amount. because this amount is
sometimes a 1,000 and sometimes 10,000

Thank you

  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 35,218
Default capturing text to the right

You have a few choices...

If the the text is always the same, you could
select the column
Data|text to columns|delimited by colon (:)
and even skip the first field and just return the second field.

If the text always contains that ": " (colon space character):
=--mid(a1,search(": ",a1,1)+2,255)
The 255 is just a big enough number to retrieve everything after the ": ".

=mid() returns a string.
The -- stuff changes the text to a real number.

If the text will vary, but you always want to pick off the last piece:
=--trim(right(substitute(trim(a1)," ",rept(" ",99)),99))

dstiefe wrote:

Remaining Balance on Invoice: $1,000.00

the text above is in a cell..i have thousand of cells in column like this

how do i capture just the "$1,000.00" amount. because this amount is
sometimes a 1,000 and sometimes 10,000

Thank you


--

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
Capturing a word sequence as part of a text in a spreadsheet cell T.Mad Excel Worksheet Functions 4 July 3rd 07 12:08 PM
Capturing text in a command bar as it is entered John[_113_] Excel Programming 3 May 12th 06 07:36 PM
Capturing Shape Name/Text from OnAction property William Bartusek Excel Discussion (Misc queries) 3 April 12th 05 06:38 PM
Capturing text in active cell to clipborad (Excel 95) sth Excel Programming 8 May 5th 04 04:57 AM
Iterating through workbook capturing text Matt Giedt Excel Programming 2 February 5th 04 10:49 AM


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