+ Reply to Thread
Results 1 to 6 of 6

Subtotal/Aggregate Not Working Help

  1. #1
    Registered User
    Join Date
    01-09-2023
    Location
    Canada
    MS-Off Ver
    365
    Posts
    6

    Question Subtotal/Aggregate Not Working Help

    Hello!

    Preface: I am not very skilled at Excel, I rely heavily on Google results; I may not understand all of the lingo.

    I work in a rental house, and we do billing weekly and pro-rate for a number of reasons (i.e. for Canada day they will not be working so we go from 1 week to 0.8).

    Not every client has the same rental period, some are 20+ weeks and others are 3. I wanted to be able to filter the data, and only have it calculate the weeks shown.

    The issue I'm running into is the nested IF function I used to calculate the pro-rating shows results as TEXT rather than NUMBER. Since I want to filter the results, I can't use =sum(value(range)); and subtotal and aggregate aren't factoring in the decimals.

    Is there a way so I can have my cake and eat it too? Can we add VALUE to the formula on Subtotal or Aggregate?
    Attached Files Attached Files

  2. #2
    Spammer
    Join Date
    10-23-2012
    Location
    Adelaide, Australia
    MS-Off Ver
    Excel 2003, Office 365
    Posts
    1,237

    Re: Subtotal/Aggregate Not Working Help

    I would suggest changing all your text to numbers.

    Type a 1 in a blank cell somehwere and copy that cell.
    Then select all your billing weeks and paste special selecting 'mulitply' as your operation.

    This converts them all to numbers.

    Next, your subtotal is giving you a count of all cells with a value in them whereas you actually want a sum type of subtotal not including the ones you have hidden.

    So use =SUBTOTAL(109,(Sheet1!$F$3:$F$10))

  3. #3
    Registered User
    Join Date
    01-09-2023
    Location
    Canada
    MS-Off Ver
    365
    Posts
    6

    Re: Subtotal/Aggregate Not Working Help

    For part 1, I don't have 'Multiply' as a special paste option. I only have the below:

    Paste, Formulas, Formulas & Number Formatting, Keep Source Formatting, No Borders, Keep Source Column Widths, Transpose, Merge Conditional Formatting, Values, Values and Number Formatting, Values and Source Formatting, Formatting, PictureAttachment 812672

    Do you know where I can find Paste Special - Multiply?

    I suppose there is no way of keeping my if functions to auto calculate the por-rating?

  4. #4
    Spammer
    Join Date
    10-23-2012
    Location
    Adelaide, Australia
    MS-Off Ver
    Excel 2003, Office 365
    Posts
    1,237

    Re: Subtotal/Aggregate Not Working Help

    So after you have selected your range...Home>paste and paste special is down the bottom. Multiply is in the 'operation' part.

    Once you have changed that column to numbers instead of text and you use the correct functions in aggregate (function I think you want is 9) and subtotal (function I think you want is 109 - this is effectively the same result as the aggregate function), everything should be OK (including any other functions/formula)

    On 2nd look (at your formula), just take out the double quotes in those, then the conversion isn't even necessary.

    ie. Take out the double quotes in these if statements around your result numerics, that's why they are text in the first place;

    eg. make the first formula;

    =IF([@[Days Off ]]=1,0.8,IF([@[Days Off ]]=2,0.6,IF([@[Days Off ]]=3,0.4,IF([@[Days Off ]]=4,0.2,IF([@[Days Off ]]=5,0,1)))))

    Drag down, then the conversion to numbers isn't needed
    Last edited by Croweater; 01-09-2023 at 09:48 PM.

  5. #5
    Registered User
    Join Date
    01-09-2023
    Location
    Canada
    MS-Off Ver
    365
    Posts
    6

    Re: Subtotal/Aggregate Not Working Help

    Thank you, Croweater!

    That made it work completely as desired. I really appreciate your help.

  6. #6
    Spammer
    Join Date
    10-23-2012
    Location
    Adelaide, Australia
    MS-Off Ver
    Excel 2003, Office 365
    Posts
    1,237

    Re: Subtotal/Aggregate Not Working Help

    No problems at all. Thanks for the feedback.

+ 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. [SOLVED] After filtering, SUBTOTAL and AGGREGATE count more than the visible rows
    By lovecolorado in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 09-06-2022, 06:25 PM
  2. Replies: 4
    Last Post: 06-28-2021, 12:43 PM
  3. [SOLVED] AGGREGATE formula has stopped working but why?
    By chad328 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 05-19-2020, 04:39 AM
  4. Trimmean using subtotal or aggregate
    By excelnabb in forum Excel Formulas & Functions
    Replies: 21
    Last Post: 02-19-2019, 06:17 PM
  5. IFS and IF? on average, aggregate and subtotal formulas
    By excelnabb in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 01-15-2019, 11:25 AM
  6. [SOLVED] Aggregate based on filtered data (subtotal?)
    By Median in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 05-02-2018, 05:03 PM
  7. Aggregate Function Not Working As Expected
    By tjnelso in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 01-06-2016, 04:55 PM

Tags for this Thread

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