Sum By 1 Criteria - Excel Help & Excel Macro Help
SEARCH ENTIRE SITE LOADING..

Excel Help & Excel Best Practices Forums

 

Proudly Affiliated With: Intelligent Converters & AnalyserXL <Affiliate Program & ExcelUser Affiliate>

 

SPECIALS PAGE FOR BARGAINS | FREE EXCEL TRAINING | FREE CUSTOM FUNCTIONS ADD-IN


Go Back Excel Help & Excel Macro Help > HELP FORUMS > EXCEL HELP
HOME Register Forum Help Calendar Search For Today's Posts Mark Forums Read

Reply

Sum By 1 Criteria

ANSWERS TO SIMILAR QUESTIONS
Multiple Criteria Count Between 2 Dates & Other CriteriaSum Range Based On 1 Criteria Of Column & 2 Criteria Of AnotherSum If Two CriteriaLookup Multiple Criteria & Sum Result On Multiple Criteriacounting one criteria based on another criteria



Javascript DHTML Drop Down Menu Powered by dhtml-menu-builder.com

Create Excel dashboards quickly with Plug-N-Play reports.


 
Thread Tools Search this Thread
Old 2 Weeks Ago
Intelligent Converters
FREE DOWNLOADS
File/Password Recovery
georgei georgei is offline
I agreed to these rules
 
I'm a Spammer: NO
MS Office Version: 2007 English
Op System: Windows Vista
Assumed Experience: Poor (know the very basics)
Join Date: 7th August 2008
English is 1st Language: Yes
Posts: 8 -- Threads: 1
Sum By 1 Criteria

Hi all,

I have a spreadsheet with 2 workbooks, one the first book I have a column with a long list of names and 2nd column with different amounts next to each name. A name will repeat several times and I need to add all the amounts belonging to each name and show in a table in another workbook.

here's an example:

VB: AutoLinked keywords will cause extra spaces before keywords. Extra spacing is NOT transferred when copy/pasting, but IS if the keyword uses "quotes".
Name Amount ------------------------ Jonathan 45 George 60 Jane -35 Jonathan 15 David -40 Jonathan -20 Jane 35 George 50 David -30

So basically what I'm looking for is to create a separate table on another workbook and have Excel list each name in that column only once, and in the next cell show a " total" amount for each person. So for example Jonathan would be listed with 40, George with 110

I tried creating a Pivot Table, but because I have lots of columns and not all of them are filled out for every row I get errors.. "The PivotTable field name is not valid. To create a PivotTable report, you must use data that is organized as a list with labeled columns."
and I can't fill each empty cell with a 0 because it causes problems in my formulas.

My spreadsheet goes from A to V columns, name is in A and amount column is V, the last one. There are some empty columns in between, but I need them there.

Is there anything else I can try?
Thanks in advance if you can help!
__________________
ADS BY OZGRID. FREE DOWNLOADS SmartVBA | SmartVB6 | CodeVBA | CodeVB6 | Code Generator Pro | TraderXL Pro Package. MORE..
Print [Post / Thread] Reply With Quote
Old 2 Weeks Ago
Intelligent Converters
FREE DOWNLOADS
File/Password Recovery
StephenR StephenR is online now
Long Term Member
 
I'm a Spammer:
MS Office Version: 2002 English
Op System: Windows XP
Assumed Experience: I've read a book
Join Date: 21st February 2006
English is 1st Language: Yes
Location: London, UK
Posts: 1,435 -- Threads: 15
Re: Add Amounts For Each Name

You'd be much better off having one "clean" dataset with no completely blank rows or columns as then a pivot table would do this in two seconds. If you must, keep another version with your blanks. That said, if you explain in more detail why you think you need them we might be able to come up with alternatives because your current layout is not good practice.

And attach a sample workbook so we can see for ourselves. And another thing, have a look at the SUMIF formula.
__________________
ADS BY OZGRID. FREE DOWNLOADS SmartVBA | SmartVB6 | CodeVBA | CodeVB6 | Code Generator Pro | TraderXL Pro Package. MORE..
Print [Post / Thread] Reply With Quote
Old 2 Weeks Ago
Intelligent Converters
FREE DOWNLOADS
File/Password Recovery
georgei georgei is offline
I agreed to these rules
 
I'm a Spammer: NO
MS Office Version: 2007 English
Op System: Windows Vista
Assumed Experience: Poor (know the very basics)
Join Date: 7th August 2008
English is 1st Language: Yes
Posts: 8 -- Threads: 1
Re: Add Amounts For Each Name

Ok, i'll attach the file. Please take a look.
Attached Files. REMINDER! OzGrid accepts no responsibility for ANY adverse effects as a result from downloading attached files. ALWAYS run an up-to-date virus scan and disable macros.
File Type: xls BOOK.xls (27.0 KB, 3 views)
__________________
ADS BY OZGRID. FREE DOWNLOADS SmartVBA | SmartVB6 | CodeVBA | CodeVB6 | Code Generator Pro | TraderXL Pro Package. MORE..
Print [Post / Thread] Reply With Quote
Old 2 Weeks Ago
Intelligent Converters
FREE DOWNLOADS
File/Password Recovery
StephenR StephenR is online now
Long Term Member
 
I'm a Spammer:
MS Office Version: 2002 English
Op System: Windows XP
Assumed Experience: I've read a book
Join Date: 21st February 2006
English is 1st Language: Yes
Location: London, UK
Posts: 1,435 -- Threads: 15
Re: Add Amounts For Each Name

OK, I give up. Why can't you just delete those blank rows?
__________________
ADS BY OZGRID. FREE DOWNLOADS SmartVBA | SmartVB6 | CodeVBA | CodeVB6 | Code Generator Pro | TraderXL Pro Package. MORE..
Print [Post / Thread] Reply With Quote
Old 2 Weeks Ago
Intelligent Converters
FREE DOWNLOADS
File/Password Recovery
georgei georgei is offline
I agreed to these rules
 
I'm a Spammer: NO
MS Office Version: 2007 English
Op System: Windows Vista
Assumed Experience: Poor (know the very basics)
Join Date: 7th August 2008
English is 1st Language: Yes
Posts: 8 -- Threads: 1
Re: Add Amounts For Each Name

I have more data in them
__________________
ADS BY OZGRID. FREE DOWNLOADS SmartVBA | SmartVB6 | CodeVBA | CodeVB6 | Code Generator Pro | TraderXL Pro Package. MORE..
Print [Post / Thread] Reply With Quote
Old 2 Weeks Ago
Intelligent Converters
FREE DOWNLOADS
File/Password Recovery
StephenR StephenR is online now
Long Term Member
 
I'm a Spammer:
MS Office Version: 2002 English
Op System: Windows XP
Assumed Experience: I've read a book
Join Date: 21st February 2006
English is 1st Language: Yes
Location: London, UK
Posts: 1,435 -- Threads: 15
Re: Add Amounts For Each Name

I suggest that you read and digest the sticky thead about efficient spreadsheet design.
__________________
ADS BY OZGRID. FREE DOWNLOADS SmartVBA | SmartVB6 | CodeVBA | CodeVB6 | Code Generator Pro | TraderXL Pro Package. MORE..
Print [Post / Thread] Reply With Quote
Old 2 Weeks Ago
Intelligent Converters
FREE DOWNLOADS
File/Password Recovery
maruchan maruchan is offline
I agreed to these rules
 
I'm a Spammer: NO
MS Office Version: 2003 English
Op System: Linux / Variants
Assumed Experience: Average (know many formulas)
Join Date: 7th November 2009
English is 1st Language: Yes
Posts: 7 -- Threads: 0
Re: Add Amounts For Each Name

Would the SumIf formula work? just using a sumif formula with the names listed

i.e.
=SUMIF(data!A:A,general!C5,data!V:V)

and has a name on the general worksheet in cell C5.
__________________
ADS BY OZGRID. FREE DOWNLOADS SmartVBA | SmartVB6 | CodeVBA | CodeVB6 | Code Generator Pro | TraderXL Pro Package. MORE..
Print [Post / Thread] Reply With Quote
Old 2 Weeks Ago
Intelligent Converters
FREE DOWNLOADS
File/Password Recovery
georgei georgei is offline
I agreed to these rules
 
I'm a Spammer: NO
MS Office Version: 2007 English
Op System: Windows Vista
Assumed Experience: Poor (know the very basics)
Join Date: 7th August 2008
English is 1st Language: Yes
Posts: 8 -- Threads: 1
Re: Add Amounts For Each Name

I tried using this SUMIF, but it doesn't seem to work.
Have you tried it on my spreadsheet? Did it work for you? If so, would you mind plugging it into my attached spreadsheet and reattaching it so I can take a look?



Quote:
Originally Posted by maruchan
Would the SumIf formula work? just using a sumif formula with the names listed

i.e.
=SUMIF(data!A:A,general!C5,data!V:V)

and has a name on the general worksheet in cell C5.
__________________
ADS BY OZGRID. FREE DOWNLOADS SmartVBA | SmartVB6 | CodeVBA | CodeVB6 | Code Generator Pro | TraderXL Pro Package. MORE..
Print [Post / Thread] Reply With Quote
Old 2 Weeks Ago
Dave Hawley's Avatar
Dave Hawley Dave Hawley is offline
Administrator
 
I'm a Spammer: NO
MS Office Version: 2007 English
Op System: Windows Vista
Assumed Experience: Above Average
Join Date: 24th January 2003
English is 1st Language: Yes
Location: Australia
Posts: 49,234 -- Threads: 15169
Re: Sum By 1 Criteria

Quote:
I tried using this SUMIF, but it doesn't seem to work
How helpful. NOT. Do you tell the Dr you feel unwell and then leave up to him to diagnose you armed with "unwell"?
Print [Post / Thread] Reply With Quote
Old 2 Weeks Ago
Intelligent Converters
FREE DOWNLOADS
File/Password Recovery
georgei georgei is offline
I agreed to these rules
 
I'm a Spammer: NO
MS Office Version: 2007 English
Op System: Windows Vista
Assumed Experience: Poor (know the very basics)
Join Date: 7th August 2008
English is 1st Language: Yes
Posts: 8 -- Threads: 1
Re: Sum By 1 Criteria

I went back and tried it a few more times and was able to figure it out.
Thanks, SUMIF works very well.
__________________
ADS BY OZGRID. FREE DOWNLOADS SmartVBA | SmartVB6 | CodeVBA | CodeVB6 | Code Generator Pro | TraderXL Pro Package. MORE..
Print [Post / Thread] Reply With Quote
Reply Lifetime Upgrade To Ad Free Styles

   « PREVIOUS Display Worsheet Range On UserForm || Calculate Percentages Based On Conditions NEXT »
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT +9. The time now is 21:56.


Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Ozgrid is Not Associated With Microsoft. Ozgrid Retains the Rights to ALL Posts and Threads