View Single Post
  #5   Report Post  
Posted to microsoft.public.excel.programming
Ron Rosenfeld Ron Rosenfeld is offline
external usenet poster
 
Posts: 5,651
Default how do i sum dollars & cents in different columns

On Sun, 20 Nov 2005 14:16:04 -0800, "Eric"
wrote:

In my account sheet I need to have dollars in the first column and cents in
the second. For my total row I would like to be able to have everything sum
(dollars and cents) and then be displayed as it is above (dollars in the
first column and cents in the second) How in the world is this done??? email
me at


Do you want to sum them separately, getting results like

DollarSum: $123
CentsSum: 947¢ (947 cents)

or do you want to sum them together, getting results like:

DollarSum: $132
CentsSum: 47¢ (47 cents)

With the Dollars in ColA and the cents in ColB

For the first option:

DollarSum: =SUM(A:A)
CentsSum: =SUM(B:B)

For the second Option:

DollarSum: =SUM(A:A)+INT(SUM(B:B)/100)
CentsSum: =MOD(SUM(B:B)/100,1)*100



--ron