+ Reply to Thread
Results 1 to 3 of 3

User defined function subtotal row.

  1. #1
    Registered User
    Join Date
    07-14-2020
    Location
    Kerala, India
    MS-Off Ver
    MS Office Professional Plus 2013
    Posts
    29

    User defined function subtotal row.

    Dear friends,

    I have an excel file with header row of scrip name, buy qty, buy rate, buy total (buy qty * buy rate), sold qty, sold rate, sold total (sold qty * sold rate) and total (buy total - sold total). I am adding subtotals such that the subtotal is displayed at each change of scrip name for columns buy qty, buy total, sold qty and sold total. I would like to display average buy rate and sold rate as well, which are buy total / buy qty and sold total / sold qty respectively. How do I add those custom functions in the subtotal row?

    Regards,
    Pravin Kumar.

    EXCEL_SUBTOTAL.jpg
    Last edited by PravinKumarRaja; 07-28-2020 at 10:34 AM. Reason: Addding picture.

  2. #2
    Forum Expert Pepe Le Mokko's Avatar
    Join Date
    05-14-2009
    Location
    Belgium
    MS-Off Ver
    O365 v 2402
    Posts
    13,446

    Re: User defined function subtotal row.

    See yellow banner on how to post a sample sheet

  3. #3
    Registered User
    Join Date
    07-14-2020
    Location
    Kerala, India
    MS-Off Ver
    MS Office Professional Plus 2013
    Posts
    29

    Re: User defined function subtotal row.

    My I pose the question a bit differently?

    What I wanted was to use different subtotal functions for different columns of the table. Range.SubTotal method does not give such an option, though.

    I hope I am clear.

    Regards,
    Pravin Kumar.

+ 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] How to make VBA function “VBA only” and disable it as User defined function
    By JimmyWilliams in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 02-17-2018, 07:29 PM
  2. User Defined function question. for a sigma function
    By thisisaMJ in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 01-25-2018, 09:52 AM
  3. [SOLVED] Usage of standard functions into custom function (or user defined function)
    By tusharb in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 05-13-2016, 12:43 AM
  4. COUNTIF/COUNTIFS function + nested user-defined function
    By shamjamali in forum Excel General
    Replies: 1
    Last Post: 05-12-2015, 09:12 PM
  5. [SOLVED] User defined function returns an error on a standard function used in it.
    By pb48 in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 01-23-2013, 01:35 PM
  6. [SOLVED] Excel - User Defined Function Error: This function takes no argume
    By BruceInCalgary in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 08-18-2006, 04:05 PM
  7. Replies: 0
    Last Post: 06-20-2006, 10:55 AM

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