+ Reply to Thread
Results 1 to 8 of 8

Formula for adding dollars and cents when split across two cells

Hybrid View

  1. #1
    Registered User
    Join Date
    07-02-2014
    Location
    toronto
    MS-Off Ver
    Office for Mac 2013
    Posts
    13

    Formula for adding dollars and cents when split across two cells

    Hi all,

    I am new to the forum and unsure if this topic has already been posted. I have browsed through and found mention of trying to split a single dollar amount into two columns but not to add them while keeping split. see below

    I have a petty cash document which lists dollars and cents in two separate columns and total's them at the bottom with the dollars and cents still split across two columns.

    My problem is when adding the cents I can't figure out how to split the dollars from the cents and add to the dollars coloum while deducting the dollars from the cents column.

    Ex.

    A=Dollars B=Cents

    A1=23, B1=35
    A2=34, B2=89
    A3=total dollars (inc cents that add to a dollar), B3=total cents

    So in this example i would be adding $23.35 + $34.89 = $58.24
    In this example the cents add up to an additional dollar.

    Help anyone?

    Thanks!

  2. #2
    Forum Guru AlKey's Avatar
    Join Date
    07-20-2009
    Location
    Lakeland, FL USA
    MS-Off Ver
    Microsoft Office 2010/ Office 365
    Posts
    8,903

    Re: Formula for adding dollars and cents when split across two cells

    Try this

    =SUM(A1:A2)+SUM(B1:B2)/100

    A
    B
    1
    23
    35
    2
    34
    89
    3
    58.24
    If you like my answer please click on * Add Reputation
    Don't forget to mark threads as "Solved" if your problem has been resolved

    "Nothing is so firmly believed as what we least know."
    --Michel de Montaigne

  3. #3
    Forum Expert ben_hensel's Avatar
    Join Date
    01-26-2012
    Location
    Northeast USA
    MS-Off Ver
    Office 365
    Posts
    2,043

    Re: Formula for adding dollars and cents when split across two cells

    Dollars = SUM(A1:A100) + TRUNC(SUM(B1:B100),0)
    
    Cents = SUM(B1:B100) - TRUNC(SUM(B1:B100),0)

    Like that?

    EDIT:
    No, wait, you'll have to handle that they're different "currency units":
    Dollars = SUM(A1:A100) + TRUNC(SUM(B1:B100)/100,0)
    
    Cents = SUM(B1:B100) - TRUNC(SUM(B1:B100)/100,0)*100
    Last edited by ben_hensel; 07-02-2014 at 03:12 PM.

  4. #4
    Registered User
    Join Date
    07-02-2014
    Location
    toronto
    MS-Off Ver
    Office for Mac 2013
    Posts
    13

    Re: Formula for adding dollars and cents when split across two cells

    Thats it!! Thank you very much ben_hensel!!

  5. #5
    Registered User
    Join Date
    07-02-2014
    Location
    toronto
    MS-Off Ver
    Office for Mac 2013
    Posts
    13

    Re: Formula for adding dollars and cents when split across two cells

    Thanks AlKey!

    But i want to keep the bottom 3 row separate. so A3=58 and B3=24
    Thoughts?

  6. #6
    Forum Guru AlKey's Avatar
    Join Date
    07-20-2009
    Location
    Lakeland, FL USA
    MS-Off Ver
    Microsoft Office 2010/ Office 365
    Posts
    8,903

    Re: Formula for adding dollars and cents when split across two cells

    In A3 =SUM(A1:A2)+INT(SUM(B1:B2)/100)

    in B3 =MOD(SUM(B1:B2)/100,1)

  7. #7
    Registered User
    Join Date
    07-02-2014
    Location
    toronto
    MS-Off Ver
    Office for Mac 2013
    Posts
    13

    Re: Formula for adding dollars and cents when split across two cells

    Is the INT and MOD solution better than the TRUNC solution ben_hensel gave? What would be the difference?

    Thanks AlKey!

  8. #8
    Forum Guru AlKey's Avatar
    Join Date
    07-20-2009
    Location
    Lakeland, FL USA
    MS-Off Ver
    Microsoft Office 2010/ Office 365
    Posts
    8,903

    Re: Formula for adding dollars and cents when split across two cells

    They are pretty much do the same thing although they do differ when it comes to negative values.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Splitting dollars and cents
    By ncbuilder01 in forum Excel General
    Replies: 8
    Last Post: 01-20-2018, 10:39 PM
  2. Extracting cents, dollars, etc from amounts
    By justinwright in forum Excel General
    Replies: 2
    Last Post: 07-16-2010, 08:53 PM
  3. [SOLVED] how do i sum dollars & cents in different columns
    By Eric in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 11-20-2005, 09:40 PM
  4. Separating dollars and cents
    By alison via OfficeKB.com in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 03-30-2005, 06:06 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1