sumif dsum

Public Schedule Face-to-Face & Online Instructor-Led Training - View dates & book

Forum home » Delegate support and help forum » Microsoft Excel Training and help » SUMIF/ DSUM

SUMIF/ DSUM

resolvedResolved · High Priority · Version 2003

Brian has attended:
Excel Advanced course

SUMIF/ DSUM

How do i use sumif or dsum to get total quantities if asking for 2 different criteria e.g. I want to find total stock for a stock code 41303 and have stock type 001.
I have multiple codes and have 3 different stock types 001, 100 and 003 so using sumif at the moment brings up total quantity for 41303 including 001, 003 and 100 stock, i would like to get total quantity for articles in each stock type.
my stock type is in column B, Article code column E and qty column E. The data has multiple lines with same product and stock type so need to sum these up.

RE: SUMIF/ DSUM

Hello Brian,

Hope you enjoyed your Microsoft Excel Advanced course with Best STL.

Thank you for your question regarding using either SUMIF / DSUM.

I put together a few numbers similar to what you described in your question. I used a criteria area which has drop down lists which make it easier to produce the data you require.

I have also added an auto filter which you can use to provide the same results. At the bottom of the total column I added a subtotal function which helps when working with autofilters.

Test what I have given you and then try it out on your data sheet.

I have attached the file for your use.

I hope this resolves your question. If it has, please mark this question as resolved.

If you require further assistance, please reply to this post. Or perhaps you have another Microsoft Office question?

Have a great day.
Regards,

Rodney
Microsoft Office Specialist Trainer

Attached files...

DSUM.xls

RE: SUMIF/ DSUM

I have used all formulas as described but my formula is still coming up with a error. Is there any way of me sending you the file to test on my data?
I can't see any way of sending file on here like you have with DSUM file.
Is there a limit of how many article codes you can use with DSUM?

RE: SUMIF/ DSUM

Hello Brian,

Please send your file to me at:

rl@stl-training.co.uk


Have a great day.
Regards,

Rodney
Microsoft Office Specialist Trainer

RE: SUMIF/ DSUM

have sent email with attachment of data to sort.
Thanks for your help.
This is just bugging me and will be helpful if i can sum these up with dsum.

RE: SUMIF/ DSUM

Hello Brian,

Thanks for sending me the file. Your formula is incorrect as the criteria part does not include the headings. I have attached the file with a note. Remember, for Excel to provide a correct answer it must be able to match the headings from the criteria area to the database. A quick edit will solve this problem.


I hope this resolves your question. If it has, please mark this question as resolved.

If you require further assistance, please reply to this post. Or perhaps you have another Microsoft Office question?

Have a great day.
Regards,

Rodney
Microsoft Office Specialist Trainer

Attached files...

DSUM_V2.xls


 

Excel tip:

Convert a column into row quickly in Excel 2010

Occasionally you might enter data into Excel vertically and then when you finish realize that actually it would look more clearer if it was represented in a horizontal format. If you follow these simple steps below, you can quickly change the data from going vertically to horizontally and vice versa.

First, select the column you want to convert into a row or a row into a column. Then right click and select Copy. Go to the sheet where you want to past this row as a column and select “Paste Special”. Remember to check the check-box “Transpose” and select “OK”.

View all Excel hints and tips


Server loaded in 0.09 secs.