Consulting

Results 1 to 2 of 2

Thread: Conditional Subtotal Help

  1. #1

    Conditional Subtotal Help

    I have a sheet that has several columns. In one column, column X, it contains percentages. So every row would contain a percentage or it can be blank.

    So i sort the sheet by Column X ascending. Is there a way to automatically insert a subtotal line with all rows containing percentages Greater than 50%, and then insert another subtotal line with all rows with percentages Less than 50% and then one more subtotal line containing all rows with blanks.

  2. #2
    Distinguished Lord of VBAX VBAX Grand Master Bob Phillips's Avatar
    Joined
    Apr 2005
    Posts
    25,445
    Location
    Maybe add a formula like

    =IF(A2="","Blank",IF(A2<=0.5,"LTE 50%","GT 50%")

    in a helper column, then use Data>Subtotals breaking on the helper columns
    ____________________________________________
    Nihil simul inventum est et perfectum

    Abusus non tollit usum

    Last night I dreamed of a small consolation enjoyed only by the blind: Nobody knows the trouble I've not seen!
    James Thurber

Posting Permissions

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