Closed Thread
Results 1 to 3 of 3

Subtotalling variable data

Hybrid View

  1. #1
    Registered User
    Join Date
    05-20-2012
    Location
    Bury St Edmunds, England
    MS-Off Ver
    Excel 2007
    Posts
    15

    Subtotalling variable data

    Hi there. In the attached sheet I am trying to return a Total in cell H5 (sheet 2) based on the following steps:
    Calculate no. of units in sheet 1, column L where ("£1.25" = 1 unit and "£2.50" = 2 units)
    Subtract units where there is a value in sheet 1, column M greater than zero. For example, row 13 in sheet 1 would total 1 unit ("£1.25" in L13 = 1 unit and there's nothing above zero in M13); row 20 would total 2 units using the same logic; but row 35 would be zero units as M35 = >0.
    Add the whole lot together to return my Total in sheet 2, H5.

    The problem I'm having is with getting it to subtract the appropriate number of units when it sees a value above zero in column M - i.e. subtract 1 unit when L*=£1.25 but subtract 2 units when L*=£2.50.

    Any help would be appreciated.

    Thanks
    Attached Files Attached Files

  2. #2
    Forum Expert
    Join Date
    05-30-2012
    Location
    The Netherlands
    MS-Off Ver
    Office 365
    Posts
    14,987

    Re: Subtotalling variable data

    I don't know exactly wich data you want to receive.

    So i make an pivot table, with your data.

    Maybe you get new idea's (instead of formula).
    Attached Files Attached Files
    Notice my main language is not English.

    I appreciate it, if you reply on my solution.

    If you are satisfied with the solution, please mark the question solved.

    You can add reputation by clicking on the star * add reputation.

  3. #3
    Forum Expert Cutter's Avatar
    Join Date
    05-24-2004
    Location
    Ontario,Canada
    MS-Off Ver
    Excel 2010
    Posts
    6,451

    Re: Subtotalling variable data

    Hello djcfisher, and welcome to the forum.

    Unfortunately you have inadvertently broken one of the forum rules. Please read the following. Thanks.

    This is a duplicate post and as such does not comply with Rule 5 of our forum rules. This thread will now be closed, you may continue in your other thread.

    Thread Closed.
    Last edited by Cutter; 09-03-2012 at 01:57 PM.

Closed 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