Results 1 to 9 of 9

Macro to apply filter, use if statement to generate subtotal, return value

Threaded View

  1. #1
    Registered User
    Join Date
    05-12-2017
    Location
    Canada
    MS-Off Ver
    Mac - 15.27
    Posts
    12

    Macro to apply filter, use if statement to generate subtotal, return value

    Hello,

    My workbook has two sheets: Input (large bank of data) and Output (simplified presentation sheet)

    I need a macro that will perform in the following order:

    (1)sort the Input sheet by column A
    (2)On the Input sheet run an if statement on column K and L where --> If (absolute(Column K)) - (Absolute(Column L)) > 100, then the value of ($K - $L) is added to a running subtotal
    (3)return value of the summed subtotal to Output sheet


    My main problem comes with form the If statement to run a subtotal.

    Many thanks in advance Excel Forum.
    Last edited by VBA_Newguy; 05-18-2017 at 10:46 AM.

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Apply multiple filters based on custom filter form [macro?]
    By Speshul in forum Access Tables & Databases
    Replies: 1
    Last Post: 12-05-2016, 05:25 PM
  2. Macro: Filter spreadsheet, then apply formula to results
    By RC-AMG in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 03-26-2015, 08:14 AM
  3. [SOLVED] showing the subtotal after clicking on the filter macro
    By extremis in forum Excel Programming / VBA / Macros
    Replies: 14
    Last Post: 04-30-2013, 04:11 PM
  4. VBA/Macro to apply a filter to a pivot chart
    By ianh in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 03-01-2011, 06:04 AM
  5. Macro to apply text to filter
    By nods in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 11-06-2010, 03:55 PM
  6. Apply filter then subtotal
    By staples in forum Excel General
    Replies: 5
    Last Post: 10-13-2009, 01:54 PM
  7. Subtotal Macro how can I apply #rounding?
    By Casey in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 04-04-2005, 02:08 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