+ Reply to Thread
Results 1 to 7 of 7

Formula to Produce Totals Only

  1. #1
    Registered User
    Join Date
    02-18-2009
    Location
    Toronto, Canada
    MS-Off Ver
    Excel 2010
    Posts
    49

    Formula to Produce Totals Only

    I know there is a simple to way to do this but can't seem to figure out. On the attached example, I have put in column N to total the amounts with the same invoice number in column I. What I normally do is then value column N and delete the cells that arrive at the invoice total which is tedious to say the least. Is there a formula that will give just the invoice totals? Also, this was an import from an accounting software (Quickbooks) and I've notice I get formatting issues when trying to work from the import, ie. if I put a formula in a blank column, it doesn't work so I copy the data into a new workbook which is annoying. Anyone know what causes this?

    Thanks for your help
    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. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,916

    Re: Formula to Produce Totals Only

    What are the yellow highlights showing us, please?
    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
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    28,209

    Re: Formula to Produce Totals Only

    Try

    =SUMIF(I:I,14738,L:L)

    Will sum amounts for Inv # 14738

    or

    =SUMIF(I:I,O2,L:L)

    O2 has invoice number

  4. #4
    Registered User
    Join Date
    02-18-2009
    Location
    Toronto, Canada
    MS-Off Ver
    Excel 2010
    Posts
    49

    Re: Formula to Produce Totals Only

    Thanks but the first solution sort of defeats the purpose as I would have to type in every new invoice number which would be far more time consuming than the semi manual way I'm doing it now. I tried the 2nd formula and all I get is zeros. Any other ideas?

    Thanks again

  5. #5
    Forum Contributor
    Join Date
    01-06-2015
    Location
    Huntsville, AL
    MS-Off Ver
    Office 365
    Posts
    185

    Re: Formula to Produce Totals Only

    Here is what I would do. I have attached a Spreadsheet with a Pivot Table. You can import the data on Sheet1. In order to do a Pivot Table,
    each column has to have a header, or name. So in order to do that, I have the next Sheet called Pivot Table Data, show the information with headers.
    Then you would simply right click on the Pivot Table and Refresh. It sums up all of the Invoices and puts them in numerical order. This is not a formula, but
    what I would do for a fix.
    Attached Files Attached Files

  6. #6
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    28,209

    Re: Formula to Produce Totals Only

    You could extract a list of unique invoice numbers then use the SUMIF. My example was only an illustration.

    Your result would be similar to a Pivot table.

    See attached

    In P4 and copy down

    =IFERROR(INDEX($I$4:$I$5000,MATCH(0,INDEX(COUNTIF($P$3:P3,$I$4:$I$5000),0,0),0)),"")

    gets unique list of invoice numbers

    In Q4 and copy down

    =SUMIF(I:I,P4,L:L)

    Sums the invoice amounts
    Attached Files Attached Files
    Last edited by JohnTopley; 08-03-2016 at 12:06 AM.

  7. #7
    Forum Contributor
    Join Date
    01-06-2015
    Location
    Huntsville, AL
    MS-Off Ver
    Office 365
    Posts
    185

    Re: Formula to Produce Totals Only

    I think this might be a little better than my first suggestion. You would import your Data on Sheet1, and then on the Filtered sheet, type your Invoice Number into Cell E1 and then your totals show up. The only problem is your data is text. It would have to be changed to numbers. I have attached a sheet. Hope this helps.
    Attached Files Attached Files

+ 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. Produce automatic list by ranking with totals with given data
    By burgie10 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 10-31-2014, 03:36 AM
  2. Why would this formula produce this wrong answer
    By Miskondukt in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 02-06-2014, 03:11 PM
  3. [SOLVED] Excel formula to produce dates
    By davidx in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 12-23-2013, 05:33 AM
  4. Formula to produce Sunday date
    By scaffdog845 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 05-12-2011, 02:23 PM
  5. produce an if/then formula that can't be deleted, but can be overridden
    By non-pro in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 09-11-2009, 07:49 PM
  6. produce a formulate to produce assigned seats for dinner
    By DavidJoss in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 10-03-2005, 10:05 PM
  7. IF Formula to produce coloured statements
    By Lil Miss Norti in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 04-03-2005, 11: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