ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Discussion (Misc queries) (https://www.excelbanter.com/excel-discussion-misc-queries/)
-   -   Find $ (https://www.excelbanter.com/excel-discussion-misc-queries/241022-find-%24.html)

Max

Find $
 
I have data that starts with $ which is easy to find.

But sometime the $ is blended in the text

please note this data is in Access??? But if I have to move it to excel ok...

Hello-$10.00 SPEC COPAY
Hello - $30.00 SPEC COPAY
VARIOUS COPAYS,INCL. $10 SPEC
Hello $20 SPEC COPAY / $0 FOR KIDS

How can I pick in a new column as follow
$10
$30
$10
$20

Thanks


Mike H

Find $
 
Hi,

This may be more complicated than necessary because it also find the cents
if they are included

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

If you just want to find the dollars as in your example use the simpler

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

Mike

"Max" wrote:

I have data that starts with $ which is easy to find.

But sometime the $ is blended in the text

please note this data is in Access??? But if I have to move it to excel ok...

Hello-$10.00 SPEC COPAY
Hello - $30.00 SPEC COPAY
VARIOUS COPAYS,INCL. $10 SPEC
Hello $20 SPEC COPAY / $0 FOR KIDS

How can I pick in a new column as follow
$10
$30
$10
$20

Thanks


Jim Thomlinson

Find $
 
You can try this...

=VALUE(MID(A1, FIND("$", A1)+1, FIND(" ", A1, FIND("$", A1)) - FIND("$", A1)))
where your text is in cell A1
--
HTH...

Jim Thomlinson


"Max" wrote:

I have data that starts with $ which is easy to find.

But sometime the $ is blended in the text

please note this data is in Access??? But if I have to move it to excel ok...

Hello-$10.00 SPEC COPAY
Hello - $30.00 SPEC COPAY
VARIOUS COPAYS,INCL. $10 SPEC
Hello $20 SPEC COPAY / $0 FOR KIDS

How can I pick in a new column as follow
$10
$30
$10
$20

Thanks


Jim Thomlinson

Find $
 
Note... The difference between my formula and Mike's is that min returns a
number and his returns text... You did not specify what you wanted so decide
accordingly.
--
HTH...

Jim Thomlinson


"Jim Thomlinson" wrote:

You can try this...

=VALUE(MID(A1, FIND("$", A1)+1, FIND(" ", A1, FIND("$", A1)) - FIND("$", A1)))
where your text is in cell A1
--
HTH...

Jim Thomlinson


"Max" wrote:

I have data that starts with $ which is easy to find.

But sometime the $ is blended in the text

please note this data is in Access??? But if I have to move it to excel ok...

Hello-$10.00 SPEC COPAY
Hello - $30.00 SPEC COPAY
VARIOUS COPAYS,INCL. $10 SPEC
Hello $20 SPEC COPAY / $0 FOR KIDS

How can I pick in a new column as follow
$10
$30
$10
$20

Thanks



All times are GMT +1. The time now is 04:49 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
ExcelBanter.com