A Microsoft Office (Excel, Word) forum. OfficeFrustration

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » OfficeFrustration forum » Microsoft Excel » Worksheet Functions
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

Extracting information to automatically find previous value.



 
 
Thread Tools Display Modes
  #1  
Old June 14th, 2009, 04:44 AM posted to microsoft.public.excel.worksheet.functions
Rocko
external usenet poster
 
Posts: 30
Default Extracting information to automatically find previous value.

I have the following information $442,400 $+16,900 ($+1,200) contained in one
cell & would like to be able to subtract the 2nd figure $+16,900, from the
first figure $442,400 using a text formula in another cell. I have tried a
few formulas, but the problem is that the numbers involved can be in the
hundreds of dollars anywhere up to hundreds of thousands of dollars. Any help
would be greatly appreciated. Thanks in advance.

  #2  
Old June 14th, 2009, 06:33 AM posted to microsoft.public.excel.worksheet.functions
T. Valko
external usenet poster
 
Posts: 15,759
Default Extracting information to automatically find previous value.

$442,400 $+16,900 ($+1,200) contained in one cell

Assuming the 2nd set of digits is *always* preceded by a space then 2
characters and followed by a space:

=LEFT(A1,FIND(" ",A1)-1)-MID(A1,FIND(" ",A1)+3,FIND(" ",A1,FIND("
",A1)+1)-(FIND(" ",A1)+3))

--
Biff
Microsoft Excel MVP


"Rocko" wrote in message
...
I have the following information $442,400 $+16,900 ($+1,200) contained in
one
cell & would like to be able to subtract the 2nd figure $+16,900, from the
first figure $442,400 using a text formula in another cell. I have tried a
few formulas, but the problem is that the numbers involved can be in the
hundreds of dollars anywhere up to hundreds of thousands of dollars. Any
help
would be greatly appreciated. Thanks in advance.



  #3  
Old June 15th, 2009, 04:16 AM posted to microsoft.public.excel.worksheet.functions
Rocko
external usenet poster
 
Posts: 30
Default Extracting information to automatically find previous value.

Thanks so much for your prompt reply Biff. That worked brilliantly!

"T. Valko" wrote:

$442,400 $+16,900 ($+1,200) contained in one cell


Assuming the 2nd set of digits is *always* preceded by a space then 2
characters and followed by a space:

=LEFT(A1,FIND(" ",A1)-1)-MID(A1,FIND(" ",A1)+3,FIND(" ",A1,FIND("
",A1)+1)-(FIND(" ",A1)+3))

--
Biff
Microsoft Excel MVP


"Rocko" wrote in message
...
I have the following information $442,400 $+16,900 ($+1,200) contained in
one
cell & would like to be able to subtract the 2nd figure $+16,900, from the
first figure $442,400 using a text formula in another cell. I have tried a
few formulas, but the problem is that the numbers involved can be in the
hundreds of dollars anywhere up to hundreds of thousands of dollars. Any
help
would be greatly appreciated. Thanks in advance.




  #4  
Old June 15th, 2009, 04:26 AM posted to microsoft.public.excel.worksheet.functions
T. Valko
external usenet poster
 
Posts: 15,759
Default Extracting information to automatically find previous value.

You're welcome. Thanks for the feedback!

--
Biff
Microsoft Excel MVP


"Rocko" wrote in message
...
Thanks so much for your prompt reply Biff. That worked brilliantly!

"T. Valko" wrote:

$442,400 $+16,900 ($+1,200) contained in one cell


Assuming the 2nd set of digits is *always* preceded by a space then 2
characters and followed by a space:

=LEFT(A1,FIND(" ",A1)-1)-MID(A1,FIND(" ",A1)+3,FIND(" ",A1,FIND("
",A1)+1)-(FIND(" ",A1)+3))

--
Biff
Microsoft Excel MVP


"Rocko" wrote in message
...
I have the following information $442,400 $+16,900 ($+1,200) contained
in
one
cell & would like to be able to subtract the 2nd figure $+16,900, from
the
first figure $442,400 using a text formula in another cell. I have
tried a
few formulas, but the problem is that the numbers involved can be in
the
hundreds of dollars anywhere up to hundreds of thousands of dollars.
Any
help
would be greatly appreciated. Thanks in advance.






 




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump


All times are GMT +1. The time now is 03:31 PM.


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