Google Answers Logo
View Question
 
Q: insert a decimal into prices using a spreadsheet or miva (change 1000 to 10.00) ( Answered 5 out of 5 stars,   0 Comments )
Question  
Subject: insert a decimal into prices using a spreadsheet or miva (change 1000 to 10.00)
Category: Computers > Programming
Asked by: dotw-ga
List Price: $3.00
Posted: 08 Jan 2003 06:43 PST
Expires: 07 Feb 2003 06:43 PST
Question ID: 139224
I have a huge flat file in which the prices are included down to the
cents, but with no decimal point.  The only options I can find both in
Excel and Miva turn 1000 into $1000.00 instead of $10.00.  How can I
insert a decimal point in all of these without doing it manually?

Request for Question Clarification by tar_heel_v-ga on 08 Jan 2003 07:06 PST
So, I want to make sure I understand your list:

1000 is 10.00 or is it $1000
45687 would be 45,687.00 or 456.87

-THV

Request for Question Clarification by tar_heel_v-ga on 08 Jan 2003 07:15 PST
If your list of numbers is set up to where the last two are the cents
(1000=10.00, 4537=45.37) I have a work around for Excel 2000 using a
few text formulas that should do the trick

-THV

Clarification of Question by dotw-ga on 08 Jan 2003 07:16 PST
We want to turn 1000 into 10.00
-- 45687 into 456.87

Request for Question Clarification by tar_heel_v-ga on 08 Jan 2003 07:20 PST
I have a solution for Excel that will do what you need.  Will that work for you?

-THV

Clarification of Question by dotw-ga on 08 Jan 2003 07:41 PST
yes - thanks much
Answer  
Subject: Re: insert a decimal into prices using a spreadsheet or miva (change 1000 to 10.00)
Answered By: tar_heel_v-ga on 08 Jan 2003 08:09 PST
Rated:5 out of 5 stars
 
dotw..

Thanks for your question.  While this may not be the easiest way to
achieve your desired results, it will work.  This is assuming that
your numbers are in a single column.

In column A, place your numbers from your import
In column B, place the following formula: =LEN(A1)
In column C, place a "$" without the quotation marks
In column D, place the following formula: =LEFT(A1,B1-2)
In column E, place a "." without the quotation marks
In column F, place the following formula: =RIGHT(A1,2)
In column G, place the following formula: =CONCATENATE(C1,D1,E1,F1)

You will need to copy these formats into all the rows you have
numbers.

You can either A) Copy the results from Column G and paste them into a
new column using Edit -> Paste Special -> Values or you can hide the
columns containing the formulas and your original data.

You can see an example of the spreadsheet at
http://www.lucidmatrix.com/uploads/ga139224.xls


I have place three worksheets.  One shows the entire format with all
columns showing.  The second shows if you cut the data from Column G
and paste the values.  The third shows the data with columns hidden.

Thanks again for your question and if you need any additional
clarification, please let me know.

Regards,

-THV
dotw-ga rated this answer:5 out of 5 stars
good job THV -- just what I needed

Comments  
There are no comments at this time.

Important Disclaimer: Answers and comments provided on Google Answers are general information, and are not intended to substitute for informed professional medical, psychiatric, psychological, tax, legal, investment, accounting, or other professional advice. Google does not endorse, and expressly disclaims liability for any product, manufacturer, distributor, service or service provider mentioned or any opinion expressed in answers or comments. Please read carefully the Google Answers Terms of Service.

If you feel that you have found inappropriate content, please let us know by emailing us at answers-support@google.com with the question ID listed above. Thank you.
Search Google Answers for
Google Answers  


Google Home - Answers FAQ - Terms of Service - Privacy Policy