excel - Challange with DSUM Function: How can I use the DSUM function to sum values based on criteria that match the starting ch
- c - Solaris 10 make Error code 1 Fatal Error when trying to build python 2.7.16 - Stack Overflow 推荐度:
- javascript - How to dismiss a phonegap notification programmatically - Stack Overflow 推荐度:
- javascript - Get the JSON objects that are not present in another array - Stack Overflow 推荐度:
- javascript - VS 2015 Angular 2 import modules cannot be resolved - Stack Overflow 推荐度:
- javascript - Type 'undefined' is not assignable to type 'menuItemProps[]' - Stack Overflow 推荐度:
- 相关推荐
I am facing some challang in summing up values using DSUM function in Excel. Below are the detils.
I have a table:
ID Region Item Category Quantity Price Stock
===================================================================
1 North Pen Office 435 15 1024
2 South Pencil School 139 11 1614
3 East Eraser Office 91 23 640
4 West Notebook School 256 49 1702
5 Central Marker Office 375 36 1540
6 West Pen School 423 22 860
7 West Pencil School 339 12 1954
8 West Eraser School 298 16 1507
9 North Notebook Office 321 45 688
10 West Marker School 473 29 1934
And, I am calculating Sum of "Stock" where Item is "Pen"
Criteria:
Item |
---|
Pen |
I am facing some challang in summing up values using DSUM function in Excel. Below are the detils.
I have a table:
ID Region Item Category Quantity Price Stock
===================================================================
1 North Pen Office 435 15 1024
2 South Pencil School 139 11 1614
3 East Eraser Office 91 23 640
4 West Notebook School 256 49 1702
5 Central Marker Office 375 36 1540
6 West Pen School 423 22 860
7 West Pencil School 339 12 1954
8 West Eraser School 298 16 1507
9 North Notebook Office 321 45 688
10 West Marker School 473 29 1934
And, I am calculating Sum of "Stock" where Item is "Pen"
Criteria:
Item |
---|
Pen |
=DSUM($A$1:$G$11, "Stock", $I$3:$I$4)
Result: 5452 (Wrong)
- Note: DSUM function adding all the "Stock" for "Pen" and "Pencil" or I can say this is adding all the "Stock" with criteria starting with "Pen".
Correct Result is: 1884
Can you please check this issue or guide me on the same.
I Tried summing up Stock values as per Item
Share Improve this question edited 11 hours ago Black cat 5,9024 gold badges17 silver badges35 bronze badges asked 15 hours ago Annu RanaAnnu Rana 11 Answer
Reset to default 0Use DSUM()
like-
=DSUM(A1:G11,"Stock",I1:I2)
In criteria range if you want equal then put Pen like ="=Pen"
so it will appear =Pen
.
And obviously, you can use SUMIFS()
, FILTER()
then SUM()
, GROUPBY()
function to achieve same result. Here is SUMIFS()
.
=SUMIFS(G2:G11,C2:C11,"Pen")
- 消息称PC供应商面临来自Windows 8的挑战
- TGUI Using raylib backend with cmake - Stack Overflow
- c# - Loading data to dataGridView freezes the window during loading, why threading does not work here? - Stack Overflow
- home assistant - Putting sensors in separate YAML file leads to errors - Stack Overflow
- solrj - How to enable using a magic field with eDisMax in Solr 9.4? - Stack Overflow
- c# - System.Printing.PrintJobException: 'An exception occurred while setting the print job. Win32 error: The parameter i
- c - MPI Program Hangs after MPI_Finalize - Stack Overflow
- nim lang - How to parse a JSON file in Nim using the standard library? - Stack Overflow
- python - How to display only the tags translated into the corresponding language on a multilingual site? - Stack Overflow
- postgresql - How do I connect my AIRFLOW which is installed on WSL to POSTGRES DATABASE which is installed on windows environmen
- Rust error: lifetime may not live long enough, how to express lifetimes? - Stack Overflow
- python - Galaga game not running due to an empty range - Stack Overflow
- html - CSS "vertical-align: middle" doesn't shrink the height of the parent element of img - Stack Ove
- c# - Instantiated gameObject in Unity will not update the transform.position - Stack Overflow
- Can't swap camera with AVCaptureMultiCamSession with SwiftAVKit for iOS - Stack Overflow
- java - Android physical keyboard support for key press and hold - Stack Overflow
- https - ASP.NET app is not listening on port 5001 after deployment - Stack Overflow