+ Reply to Thread
Results 1 to 17 of 17

need to total several lines of info and have it inserted on one line

  1. #1
    Registered User
    Join Date
    07-07-2014
    Location
    Blairstown, NJ
    MS-Off Ver
    2013
    Posts
    23

    need to total several lines of info and have it inserted on one line

    I have a list of several thousand customers and their account information.
    Several of the customers have job accounts. I need somehow to combine all the totals of balances owed.
    See the attached sheet for what I mean - I have highlighted several of the accounts in question.

    Usually we manually would add up all the info and add it to the main account row, then delete all the job rows.
    I guess my question is, is there a better way?

    testing.csv

  2. #2
    Valued Forum Contributor
    Join Date
    07-07-2014
    Location
    Washington DC
    MS-Off Ver
    2007
    Posts
    1,047

    Re: need to total several lines of info and have it inserted on one line

    I'm not seeing any highlighted accounts. Can you provide a couple example account numbers that you'd like consolidated?

  3. #3
    Registered User
    Join Date
    07-07-2014
    Location
    Blairstown, NJ
    MS-Off Ver
    2013
    Posts
    23

    Re: need to total several lines of info and have it inserted on one line

    sorry- I think when I saved and uploaded it, the formatting changes. Not sure why.

    Accounts 100 and 180 are ones like I'm talking about

    Account No Balance
    10-10 $40
    20-10 $30
    100-0 $50
    100-1 $50
    100-2 $75
    100-3 $80
    105 $40
    106 $50
    107 $60
    180-0 $20
    180-1 $25
    180-2 $30
    185 $35
    186 $40

  4. #4
    Valued Forum Contributor
    Join Date
    07-07-2014
    Location
    Washington DC
    MS-Off Ver
    2007
    Posts
    1,047

    Re: need to total several lines of info and have it inserted on one line

    I just ran a test for duplicate accounts (assuming that's Column A) and was unable to locate any. Perhaps the file you uploaded was missing more than just formatting.

    Regardless, seems you'd want to use the "Subtotals" feature. Click on "Data" then "Subtotals". You would then select "At each change in" account number, then you'd select the "Sum" function from the dropdown, and pick the "Total Balance" column (or whatever column you want to add up for duplicate account numbers).

  5. #5
    Registered User
    Join Date
    07-07-2014
    Location
    Blairstown, NJ
    MS-Off Ver
    2013
    Posts
    23

    Re: need to total several lines of info and have it inserted on one line

    it seems when i save it all goes wrong, i need it as a csv file

    ok that's great, i'll try that!
    thank you!!

  6. #6
    Registered User
    Join Date
    07-07-2014
    Location
    Blairstown, NJ
    MS-Off Ver
    2013
    Posts
    23

    Re: need to total several lines of info and have it inserted on one line

    how do i run the test for the duplicates?

  7. #7
    Registered User
    Join Date
    07-07-2014
    Location
    Blairstown, NJ
    MS-Off Ver
    2013
    Posts
    23

    Re: need to total several lines of info and have it inserted on one line

    I changed it to save as an excel instead of csv.
    I'm not sure the data subtotal will work?
    Do I click on the range of all the jobs for that account before doing this?

    Let me upload the new file

  8. #8
    Registered User
    Join Date
    07-07-2014
    Location
    Blairstown, NJ
    MS-Off Ver
    2013
    Posts
    23

    Re: need to total several lines of info and have it inserted on one line

    p test.xlsx

    this is the new file in excel not csv

  9. #9
    Valued Forum Contributor
    Join Date
    07-07-2014
    Location
    Washington DC
    MS-Off Ver
    2007
    Posts
    1,047

    Re: need to total several lines of info and have it inserted on one line

    What do the hyphens mean? Are 100-0, 100-1, 100-2, and 100-3 all the same account? I think maybe that's why I'm not finding duplicates. Can you please provide some additional explanation about how the account numbering works?

  10. #10
    Registered User
    Join Date
    07-07-2014
    Location
    Blairstown, NJ
    MS-Off Ver
    2013
    Posts
    23

    Re: need to total several lines of info and have it inserted on one line

    the first part of the number is the main account number
    the second part (after the hyphen) is the job number
    accounts, 10, 20, 30 and 40 are excluded

    100-0, 100-1, 100-2 are the same account number the 0,1,2 are their job accounts - i need a total for all 100 together main account (0) and the jobs (1,2)

  11. #11
    Registered User
    Join Date
    07-07-2014
    Location
    Blairstown, NJ
    MS-Off Ver
    2013
    Posts
    23

    Re: need to total several lines of info and have it inserted on one line

    here's a thought:
    originally there were two columns, one for customer number and one for job account number; i merged those two columns and added the hypen

    do you think this would be easier if we did it before merging the two?

  12. #12
    Valued Forum Contributor
    Join Date
    07-07-2014
    Location
    Washington DC
    MS-Off Ver
    2007
    Posts
    1,047

    Re: need to total several lines of info and have it inserted on one line

    Definitely. Took a crack at it. Let me know if this isn't adequate.
    Attached Files Attached Files

  13. #13
    Registered User
    Join Date
    07-07-2014
    Location
    Blairstown, NJ
    MS-Off Ver
    2013
    Posts
    23

    Re: need to total several lines of info and have it inserted on one line

    ok i can't have the word total after the number. and how did you do it? I'll have to create this each month.
    Thank you!!!

  14. #14
    Valued Forum Contributor
    Join Date
    07-07-2014
    Location
    Washington DC
    MS-Off Ver
    2007
    Posts
    1,047

    Re: need to total several lines of info and have it inserted on one line

    First off, I separated the account column back into two separate columns without the hyphen (as it was before you merged the two). Then just go to Data > Subtotals. You would then select "At each change in" account number, then you'd select the "Sum" function from the dropdown, and check the boxes for the columns you want to be added. I selected 1-30, 31-60, etc. Let me know if this doesn't work.

    You may want to consider a pivot table, if you're familiar with them.
    Attached Files Attached Files

  15. #15
    Registered User
    Join Date
    07-07-2014
    Location
    Blairstown, NJ
    MS-Off Ver
    2013
    Posts
    23

    Re: need to total several lines of info and have it inserted on one line

    ok great, thanks! i will try that then!

  16. #16
    Registered User
    Join Date
    07-07-2014
    Location
    Blairstown, NJ
    MS-Off Ver
    2013
    Posts
    23

    Re: need to total several lines of info and have it inserted on one line

    so I'm working on this now, this does do what I need, but....I now have to go in and delete out ALL the TOTAL lines it inserted, the Total lines I don't need - the accounts without Job numbers. The job number totals is great, I just make the total line the main line and delete all the others.

  17. #17
    Registered User
    Join Date
    07-07-2014
    Location
    Blairstown, NJ
    MS-Off Ver
    2013
    Posts
    23

    Re: need to total several lines of info and have it inserted on one line

    I'm working on it now, in the rows with no job number, it's still inserting a line that reads TOTAL, that I now have to delete.
    With the job accounts, i keep the total line and delete all the detailed info above.

    is there a way to exclude the totals from just the regular account numbers too, it's time consuming having to delete about 2,000 lines.

+ 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] Insert blank lines to make the total number of lines 67
    By raghuprabhu in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 06-29-2012, 07:34 AM
  2. Replies: 0
    Last Post: 02-09-2012, 11:53 AM
  3. Removing automatically inserted new lines
    By Choscura in forum Excel General
    Replies: 1
    Last Post: 10-14-2009, 04:12 AM
  4. I want data to show in the cell only when the info is inserted
    By Rebecca in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 04-23-2006, 11:51 AM
  5. [SOLVED] How can I get inserted lines to automatically appear in a linked .
    By Excel-erator in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 02-09-2006, 12:55 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