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")
- 百度部分下线盗版视频 反盗版方敦促其全面停止
- 软件定义网络SDN与网络可见性的挑战
- [连载]巨头“心血之作”终失败(一):苹果Apple TV
- How can I design a button with two colors and a curved border in CSS? - Stack Overflow
- reactjs - Why can't AWS Amplify find my components from a working version of my React App? - Stack Overflow
- python - Implementing multiple live streams at the same time using aiortc - WebRTC - Stack Overflow
- python - Trouble implementing Hamitonian with QutiP - Stack Overflow
- python - invoke matplotlib toolbar keeping custom views history - Stack Overflow
- swiftui - Cannot access generic subscript - Stack Overflow
- python - Unet isn't working orand i'm not using it correctly - Stack Overflow
- c++ - does the standard mandate destruction of thread_local variable on computing time of the dying thread? - Stack Overflow
- Why is my ESP32 task not logging when Wi-Fi is disconnected, but Wi-Fi retry logs are showing up? - Stack Overflow
- matplotlib - Annotate each subplot from a list - Stack Overflow
- ios - Unit Test Cases Fail with "Message from debugger: killed" on Xcode 16.x but Work Fine on Xcode 15 - Stac
- reactjs - Display SVG string in the React frontend - Stack Overflow
- reactjs - WatermelonDB's withObservables leaking when using with Jest - Stack Overflow
- Spring Boot Application in Docker Container Shuts Down Immediately After Startup - Stack Overflow