LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 3,718
Default Extracting dollars and cents

B1: =INT(A1)
C1: =(A1-B1)*100 (custom format 00)


"Pradhan" wrote:

I have a task which I would assume would be really simple, but I am going
thru hoops to get this done, and there MUST be a simpler way. What I want to
do is separate and extract the dollars and cents from one figure. For
example, $1000.07, I need to extract this (for forms) to 2 separate
numbers...1000 (the dollar side) and 07 (the cent side WITHOUT a decimal
point, and must show 07, not just 7)

The dollar side is easy...I just use the TRUNC command, but the cents side
is painful because Excel calculates out to x decimal points so I can't use
the RIGHT command. What I end up doing is taking the dollar amount,
subtracting the TRUNCATED amount, multiplying by 100, adding 100. (In the
above case, this would yield 107...but actually 106.9999986). So I then need
to ROUND this and at last, take the RIGHT 2 characters.

There has got to be a better way to go from 1000.07 to 07. Any help would be
kindly appreciated.

Pradhan

 
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
Extracting dollars and cents Pradhan Excel Worksheet Functions 0 March 28th 07 01:00 AM
dollars/cents multiplied by hours/minutes or tenths JiggsTiger Excel Worksheet Functions 1 March 30th 06 01:06 PM
how do i sum dollars & cents in different columns Eric Excel Worksheet Functions 5 November 21st 05 02:42 AM
Splitting dollars and cents ncbuilder01 Excel Discussion (Misc queries) 7 October 6th 05 01:00 PM
Separating dollars and cents alison via OfficeKB.com Excel Worksheet Functions 5 March 30th 05 11:08 PM


All times are GMT +1. The time now is 03:01 AM.

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

About Us

"It's about Microsoft Excel"