+ Reply to Thread
Results 1 to 9 of 9

Sub Total - how to get customer name and other Text Columns

  1. #1
    Registered User
    Join Date
    10-19-2017
    Location
    Irvine, USA
    MS-Off Ver
    office 2016
    Posts
    4

    Wink Sub Total - how to get customer name and other Text Columns

    I have a report with three levels of Sub Total.
    Level 3 is customer's aging for example the below 7 columns and the group total is by customer name. At the first level I get the customer name. I want to see Customer Number , rep and Region,
    I am doing it by copying the first Total column and pasted in each and every Total Column, which takes lof of time, some times the reports can be thousands of lines.

    A1 B1 C1 D1 E1 F1 G1
    Customer Customer Name Rep Region Invoice Invoice Balance Past Due

    Does any one have a function or a macro can do this? I searched on the net did not find anything would meet my needs?
    Appreciate your help
    I have also attached a sample file.
    Thank you
    Muthus
    Attached Files Attached Files

  2. #2
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2405 (Windows 11 23H2 64-bit)
    Posts
    81,418

    Re: Sub Total - how to get customer name and other Text Columns

    Why not add a subtotal formula at the base of each column?

    For example in G21:

    =SUBTOTAL(109,G2:G20)
    Ali


    Enthusiastic self-taught user of MS Excel who's always learning!
    Don't forget to say "thank you" in your thread to anyone who has offered you help.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    Forum Rules (updated August 2023): please read them here.

  3. #3
    Registered User
    Join Date
    10-19-2017
    Location
    Irvine, USA
    MS-Off Ver
    office 2016
    Posts
    4

    Re: Sub Total - how to get customer name and other Text Columns

    Yes. I do the sub total and get the total for columns G and H , but I also wants to see the text columns, Customer #, Customer Name, Rep and Region:
    Customer Customer Name Rep Region Invoice Balance Past due
    200060 Customer 1 MS NA 113,639.72 0.00
    200065 Customer 2 KN SA 3,575.72 3,575.72
    200069 Customer 3 DV other 2,300,024.79 2,308,540.71

  4. #4
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2405 (Windows 11 23H2 64-bit)
    Posts
    81,418

    Re: Sub Total - how to get customer name and other Text Columns

    Can you please mock up what you are looking for in your sample file?

  5. #5
    Forum Contributor shivya's Avatar
    Join Date
    08-19-2017
    Location
    Delhi, India
    MS-Off Ver
    2013
    Posts
    240

    Re: Sub Total - how to get customer name and other Text Columns

    Quote Originally Posted by Muthus View Post
    I have a report with three levels of Sub Total.
    Level 3 is customer's aging for example the below 7 columns and the group total is by customer name. At the first level I get the customer name. I want to see Customer Number , rep and Region,
    I am doing it by copying the first Total column and pasted in each and every Total Column, which takes lof of time, some times the reports can be thousands of lines.

    A1 B1 C1 D1 E1 F1 G1
    Customer Customer Name Rep Region Invoice Invoice Balance Past Due

    Does any one have a function or a macro can do this? I searched on the net did not find anything would meet my needs?
    Appreciate your help
    I have also attached a sample file.
    Thank you
    Muthus

    Customer name may be duplicate. I think you should make subtotal according to customer no.

  6. #6
    Registered User
    Join Date
    10-19-2017
    Location
    Irvine, USA
    MS-Off Ver
    office 2016
    Posts
    4

    Re: Sub Total - how to get customer name and other Text Columns

    I have attached a file.
    The sub total column originally was only with Customer number and Invoice balance and past due
    Customer Customer Name Rep Region Invoice Invoice Date Invoice Balance Past due
    200060 113,639.72 0.00
    200065 3,575.72 3,575.72
    200069 2,300,024.79 2,308,540.71

    I copy customer name from a column above Customer name, Rep and Region. I am thinking a macro to repeat the copy and paste would help, but I just could not write a code, I am a novice in Macro.
    I get my report like this:

    Customer Customer Name Rep Region Invoice Invoice Date Invoice Balance Past due
    200060 Customer 1 MS NA 113,639.72 0.00
    200065 Customer 2 KS CA 3,575.72 3,575.72
    200069 Customer 3 DV EA 2,300,024.79 2,308,540.71
    Attached Files Attached Files

  7. #7
    Forum Guru Kaper's Avatar
    Join Date
    12-14-2013
    Location
    Warsaw, Poland
    MS-Off Ver
    most often: Office 365 in Windows environment
    Posts
    8,644

    Re: Sub Total - how to get customer name and other Text Columns

    If I understood you well, I could suggest non-macro solution for this.
    On a fresh file with only subtotal done, and only customer no. Level shown, you can see only rows 4,6 and 20 (in sample filled with simple formulas like =B3, but with fresh file - empty).
    Select all these cells (in sample B4:D20). Press Ctrl+G (Go To) then press Special and select Empty Cells.
    Having cells selected yrite (best in formula bar, to avoid deselection of cells) =B3 (so reference to cell above topleft corner of selected cells and important! press Ctrl+Enter
    All selected (empty before this operation) cells will be filled with formulas =B3 =C3 =D3 =B5 =C5 etc. while other cells will remain untouched.
    Attached Images Attached Images
    Best Regards,

    Kaper

  8. #8
    Registered User
    Join Date
    10-19-2017
    Location
    Irvine, USA
    MS-Off Ver
    office 2016
    Posts
    4

    Re: Sub Total - how to get customer name and other Text Columns

    Hi Kaper,
    This is awesome. You are a excel Genius! It worked like a charm and it saves my time and improves my efficiency . I got to tell you, I cannot even imagine how did you put these steps together! It took me about 10 tries to succeed just following your steps.
    Great!
    Thank you

  9. #9
    Forum Guru Kaper's Avatar
    Join Date
    12-14-2013
    Location
    Warsaw, Poland
    MS-Off Ver
    most often: Office 365 in Windows environment
    Posts
    8,644

    Re: Sub Total - how to get customer name and other Text Columns

    I'm glad I could help.
    I learned this trick several years ago on our national excelforum.pl (and it also did not work from the first try, because I tried to use Ctrl+Shift+Enter - which is a way to commit array formulas) and use it quite often since.

+ 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. How to find out the total for each customer from different pick up
    By BettyPumpkin in forum Excel Formulas & Functions
    Replies: 22
    Last Post: 11-18-2016, 02:58 AM
  2. [SOLVED] Products for specific customer should appear in text boxes when we choose that customer.
    By MariaPap in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 06-21-2014, 05:22 AM
  3. Replies: 3
    Last Post: 01-27-2014, 08:45 AM
  4. Replies: 2
    Last Post: 07-19-2012, 11:12 AM
  5. sorting a list of customer invoices from columns into rows / customer
    By jr1984 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 05-11-2011, 07:04 AM
  6. Summing total per customer for each month
    By wnstar21 in forum Excel General
    Replies: 13
    Last Post: 11-06-2009, 03:48 AM
  7. Total Units for each Customer
    By Boozik in forum Excel General
    Replies: 2
    Last Post: 02-03-2009, 03:07 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