Removing a period and leaving maintaingn a fixed #of numbers

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Good Morning,

How Can I combine these two?

=substitute(a1,".","") and =left(a1,9)

I have a string of numbers and I have a period among those numbers(the
period is not in a fixed place), I would like to remove the period and always
keep first left nine digits.

Lets say 42.254420115600000000, 422542011

Thank you for your help
 
Try this:

=LEFT(SUBSTITUTE(A10,".",""),9)

Is that something you can work with?
--------------------------

Regards,

Ron (XL2003, Win XP)
Microsoft MVP (Excel)
 
Thank you

Ron Coderre said:
Try this:

=LEFT(SUBSTITUTE(A10,".",""),9)

Is that something you can work with?
--------------------------

Regards,

Ron (XL2003, Win XP)
Microsoft MVP (Excel)
 
Hi,

One more question
Cell is empty
#VALUE!
Callable 12/15/07@101 (should be blank)
Callable - Sinking Fund 05/01/08@100 - Escrowed Escrowed
Callable 05/15/08@100 - Bank
Escrowed

=TRIM(MID(CallDate,FIND("@",CallDate)+6,LEN(CallDate)))

Thank you for help

How do I get above results without the #value!
 
Try this:

=IF(COUNTIF(A10,"*@????-*"),TRIM(MID(A10,FIND("@",A10)+6,LEN(A10))),"")
Is that something you can work with?
--------------------------

Regards,

Ron (XL2003, Win XP)
Microsoft MVP (Excel)
 
Thank You

Ron Coderre said:
Try this:

=IF(COUNTIF(A10,"*@????-*"),TRIM(MID(A10,FIND("@",A10)+6,LEN(A10))),"")
Is that something you can work with?
--------------------------

Regards,

Ron (XL2003, Win XP)
Microsoft MVP (Excel)
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top