+ Reply to Thread
Results 1 to 4 of 4

Excel 2008 : Adding/Subtracting/etc money values that are split into £ and p columns

  1. #1
    Forum Contributor
    Join Date
    07-19-2010
    Location
    Huddersfield, UK
    MS-Off Ver
    Excel 2007, 2010
    Posts
    167

    Question Adding/Subtracting/etc money values that are split into £ and p columns

    Attached is part of the sheet I'm working on.

    All my £ values are in seperate columns - one for £, the other for p. I need to be able to calculate totals, and % of these totals, and subtract, all whilst keeping the column format. I've tried many ways of doing this with the MOD function, but I can only get a few bits to work (mainly the addition bits). I'm hoping my explanation on the sheet itself is clear enough as to what I'm after.
    The % need to be reference to the % cells in Column E though, as these are not consistant numbers, and sometimes do not need to be included at all.

    Many thanks in advance for any help
    Attached Files Attached Files

  2. #2
    Forum Expert Bob Phillips's Avatar
    Join Date
    09-03-2005
    Location
    Wessex
    MS-Off Ver
    Office 2003, 2010, 2013, 2016, 365
    Posts
    3,284

    Re: Adding/Subtracting/etc money values that are split into £ and p columns

    Here is a starter

    G38: =INT(SUMPRODUCT(--(G1:G36+H1:H36/100)))
    H38: =INT(SUMPRODUCT(--(G1:G36+H1:H36/100)))

    G40: =INT((G38+H38/100)*E40)
    H40: =((G38+H38/100)*E40-G40)*100

    I will leave the rest to you, but I would urge you to change the layout, it is nonsense.
    Last edited by Bob Phillips; 01-19-2012 at 09:03 AM. Reason: Corrected H40

  3. #3
    Forum Contributor
    Join Date
    07-19-2010
    Location
    Huddersfield, UK
    MS-Off Ver
    Excel 2007, 2010
    Posts
    167

    Re: Adding/Subtracting/etc money values that are split into £ and p columns

    Quote Originally Posted by Bob Phillips View Post
    Here is a starter

    G38: =INT(SUMPRODUCT(--(G1:G36+H1:H36/100)))
    H38: =INT(SUMPRODUCT(--(G1:G36+H1:H36/100)))

    G40: =INT((G38+H38/100)*E40)
    H40: =((G38+H38/100)*E40-G40)*100

    I will leave the rest to you, but I would urge you to change the layout, it is nonsense.
    Thanks for that...

    Regarding the layout, trust me, if I had the power to amend it to be the full figure in just one cell, I would. Management, as always, know best and insist is stays as it is, hence why I'm trying to make it work in the ****-eyed fashion it is.

    I have tried your above formulas, and before I even try to get my head around how they work/what they do (I'm familiar with 'INT', but 'SUMPRODUCT' and the -- bit baffles me...) I've noticed the last one for H40 gives an answer of 100 (with the current figures on the example). I'm more than happy to play around with it and make your 'starters' work for the rest, but are you able to amend/fix/etc that last one please?

    Thanks again for your time..

  4. #4
    Forum Expert Bob Phillips's Avatar
    Join Date
    09-03-2005
    Location
    Wessex
    MS-Off Ver
    Office 2003, 2010, 2013, 2016, 365
    Posts
    3,284

    Re: Adding/Subtracting/etc money values that are split into £ and p columns

    Quote Originally Posted by dancing-shadow View Post
    Thanks for that...

    Regarding the layout, trust me, if I had the power to amend it to be the full figure in just one cell, I would. Management, as always, know best and insist is stays as it is, hence why I'm trying to make it work in the ****-eyed fashion it is.

    I have tried your above formulas, and before I even try to get my head around how they work/what they do (I'm familiar with 'INT', but 'SUMPRODUCT' and the -- bit baffles me...) I've noticed the last one for H40 gives an answer of 100 (with the current figures on the example). I'm more than happy to play around with it and make your 'starters' work for the rest, but are you able to amend/fix/etc that last one please?
    I get 94 in there, not a hundred, which is correct as 10% of 99.36 is 9.936 which rounds to 9.94.

    For more info on SUMPRODUCT and the dreaded double unary, see http://www.xldynamic.com/source/xld.SUMPRODUCT.html, it might be a bit heavy.

    A simpler way to manage it might be to reference t all from another worksheet, calculate ther, and then split up the results.

    If you get stuck on it just shout for more.

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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