ไปยังเนื้อหาหลัก

วิธีการรวมค่าระหว่างวันที่สองวันใน Excel

เมื่อมีสองรายการในแผ่นงานของคุณตามภาพหน้าจอที่ถูกต้องรายการหนึ่งคือรายการวันที่อีกรายการคือรายการค่า และคุณต้องการสรุปค่าระหว่างช่วงวันที่สองช่วงเท่านั้นเช่นสรุปค่าระหว่างวันที่ 3/4/2014 ถึง 5/10/2014 คุณจะคำนวณค่าเหล่านี้อย่างรวดเร็วได้อย่างไร? ตอนนี้ฉันแนะนำสูตรเพื่อให้คุณสรุปได้ใน Excel


รวมค่าระหว่างวันที่สองวันด้วยสูตรใน Excel

โชคดีที่มีสูตรที่สามารถสรุปค่าระหว่างสองช่วงวันที่ใน Excel ได้

เลือกเซลล์ว่างแล้วพิมพ์ลงในสูตรด้านล่างแล้วกด เข้าสู่ ปุ่ม. และตอนนี้คุณจะได้รับผลการคำนวณ ดูภาพหน้าจอ:

=SUMIFS(B2:B8,A2:A8,">="&E2,A2:A8,"<="&E3)

หมายเหตุ: ในสูตรข้างต้น

  • D3: D22 คือรายการค่าที่คุณจะสรุป
  • B3: B22 คือรายการวันที่ที่คุณจะรวมตาม
  • G3 คือเซลล์ที่มีวันที่เริ่มต้น
  • G4 คือเซลล์ที่มีวันที่สิ้นสุด
หมายเหตุริบบิ้น สูตรซับซ้อนเกินไปที่จะจำ? บันทึกสูตรเป็นรายการข้อความอัตโนมัติเพื่อใช้ซ้ำได้ในคลิกเดียวในอนาคต!
อ่านเพิ่มเติม ...     ทดลองใช้ฟรี

สรุปข้อมูลในทุกปีบัญชีทุกครึ่งปีหรือทุกสัปดาห์ใน Excel ได้อย่างง่ายดาย

คุณลักษณะการจัดกลุ่มเวลาพิเศษของ PivotTable ซึ่งจัดทำโดย Kutools for Excel สามารถเพิ่มคอลัมน์ตัวช่วยเพื่อคำนวณปีบัญชีครึ่งปีจำนวนสัปดาห์หรือวันในสัปดาห์ตามคอลัมน์วันที่ที่ระบุและช่วยให้คุณสามารถนับผลรวมได้อย่างง่ายดาย หรือคอลัมน์ค่าเฉลี่ยตามผลลัพธ์จากการคำนวณใน Pivot Table ใหม่


Kutools สำหรับ Excel - เพิ่มประสิทธิภาพ Excel ด้วยเครื่องมือที่จำเป็นมากกว่า 300 รายการ เพลิดเพลินกับฟีเจอร์ทดลองใช้ฟรี 30 วันโดยไม่ต้องใช้บัตรเครดิต! Get It Now


รวมค่าระหว่างวันที่สองวันด้วยตัวกรองใน Excel

หากคุณต้องการรวมค่าระหว่างวันที่สองวันและช่วงวันที่เปลี่ยนแปลงบ่อยคุณสามารถเพิ่มตัวกรองสำหรับช่วงที่กำหนดจากนั้นใช้ฟังก์ชัน SUBTOTAL เพื่อหาผลรวมระหว่างช่วงวันที่ที่ระบุใน Excel

1. เลือกเซลล์ว่างป้อนสูตรด้านล่างแล้วกดปุ่ม Enter

= SUBTOTAL (109, D3: D22)

หมายเหตุ: ในสูตรด้านบน 109 หมายถึงค่าที่กรองรวม D3: D22 ระบุรายการค่าที่คุณจะสรุป

2. เลือกชื่อช่วงและเพิ่มตัวกรองโดยคลิก ข้อมูล > ตัวกรอง.

3. คลิกไอคอนตัวกรองในส่วนหัวคอลัมน์วันที่แล้วเลือก ตัวกรองวันที่ > ระหว่าง. ในกล่องโต้ตอบตัวกรองอัตโนมัติแบบกำหนดเองพิมพ์วันที่เริ่มต้นและวันที่สิ้นสุดตามที่คุณต้องการและคลิกที่ไฟล์ OK ปุ่ม. มูลค่ารวมจะเปลี่ยนโดยอัตโนมัติตามค่าที่กรอง


บทความที่เกี่ยวข้อง:

สุดยอดเครื่องมือเพิ่มผลผลิตในสำนักงาน

🤖 Kutools AI ผู้ช่วย: ปฏิวัติการวิเคราะห์ข้อมูลโดยยึดตาม: การดำเนินการที่ชาญฉลาด   |  สร้างรหัส  |  สร้างสูตรที่กำหนดเอง  |  วิเคราะห์ข้อมูลและสร้างแผนภูมิ  |  เรียกใช้ฟังก์ชัน Kutools...
คุณสมบัติยอดนิยม: ค้นหา เน้น หรือระบุรายการที่ซ้ำกัน   |  ลบแถวว่าง   |  รวมคอลัมน์หรือเซลล์โดยไม่สูญเสียข้อมูล   |   รอบโดยไม่มีสูตร ...
การค้นหาขั้นสูง: VLookup หลายเกณฑ์    VLookup หลายค่า  |   VLookup ข้ามหลายแผ่น   |   การค้นหาที่ไม่ชัดเจน ....
รายการแบบเลื่อนลงขั้นสูง: สร้างรายการแบบหล่นลงอย่างรวดเร็ว   |  รายการแบบหล่นลงขึ้นอยู่กับ   |  เลือกหลายรายการแบบหล่นลง ....
ผู้จัดการคอลัมน์: เพิ่มจำนวนคอลัมน์เฉพาะ  |  ย้ายคอลัมน์  |  สลับสถานะการมองเห็นของคอลัมน์ที่ซ่อนอยู่  |  เปรียบเทียบช่วงและคอลัมน์ ...
คุณสมบัติเด่น: กริดโฟกัส   |  มุมมองการออกแบบ   |   บาร์สูตรใหญ่    สมุดงานและตัวจัดการชีต   |  ห้องสมุดทรัพยากร (ข้อความอัตโนมัติ)   |  เลือกวันที่   |  รวมแผ่นงาน   |  เข้ารหัส/ถอดรหัสเซลล์    ส่งอีเมลตามรายการ   |  ซุปเปอร์ฟิลเตอร์   |   ตัวกรองพิเศษ (กรองตัวหนา/ตัวเอียง/ขีดทับ...) ...
ชุดเครื่องมือ 15 อันดับแรก12 ข้อความ เครื่องมือ (เพิ่มข้อความ, ลบอักขระ, ... )   |   50 + แผนภูมิ ประเภท (แผนภูมิ Gantt, ... )   |   40+ ใช้งานได้จริง สูตร (คำนวณอายุตามวันเกิด, ... )   |   19 การแทรก เครื่องมือ (ใส่ QR Code, แทรกรูปภาพจากเส้นทาง, ... )   |   12 การแปลง เครื่องมือ (ตัวเลขเป็นคำ, การแปลงสกุลเงิน, ... )   |   7 ผสานและแยก เครื่องมือ (แถวรวมขั้นสูง, แยกเซลล์, ... )   |   ... และอื่น ๆ

เพิ่มพูนทักษะ Excel ของคุณด้วย Kutools สำหรับ Excel และสัมผัสประสิทธิภาพอย่างที่ไม่เคยมีมาก่อน Kutools สำหรับ Excel เสนอคุณสมบัติขั้นสูงมากกว่า 300 รายการเพื่อเพิ่มประสิทธิภาพและประหยัดเวลา  คลิกที่นี่เพื่อรับคุณสมบัติที่คุณต้องการมากที่สุด...

รายละเอียด


แท็บ Office นำอินเทอร์เฟซแบบแท็บมาที่ Office และทำให้งานของคุณง่ายขึ้นมาก

  • เปิดใช้งานการแก้ไขและอ่านแบบแท็บใน Word, Excel, PowerPoint, ผู้จัดพิมพ์, Access, Visio และโครงการ
  • เปิดและสร้างเอกสารหลายรายการในแท็บใหม่ของหน้าต่างเดียวกันแทนที่จะเป็นในหน้าต่างใหม่
  • เพิ่มประสิทธิภาพการทำงานของคุณ 50% และลดการคลิกเมาส์หลายร้อยครั้งให้คุณทุกวัน!
Comments (48)
No ratings yet. Be the first to rate!
This comment was minimized by the moderator on the site
INVOICE DATE TOTAL
01-09-2021 19817
02-09-2021 44791
03-09-2021 26780
03-09-2021 58500
03-09-2021 2029

04-09-2021 79260
04-09-2021 2120
04-09-2021 9187
04-09-2021 5698
04-09-2021 1400
04-09-2021 1900
04-09-2021 7500
04-09-2021 830


i have above data in one sheet and i need date wise total value as below in another sheet,01-09-2021 19817
02-09-2021 44791
03-09-2021 87309
04-09-2021 107895

pls give formula details for itsanjay
This comment was minimized by the moderator on the site
Hi Jett,
You can use the SUMIFS function to sum by multiple criteria simultaneously.
=SUMIFS(sum_range, criteria_range1, criteria1, criteria_range2, criteria2,…, criteria_rangeN, criteriaN)
This comment was minimized by the moderator on the site
What if there are multiple columns to sum up like one for interest, one for penalty, and one for principal amount? and it still need to be between two dates
This comment was minimized by the moderator on the site
hi i have a question related to your topic,if the case is like thisDATE AMOUNT17 SEP 70.000 60.00018 SEP 30.00019 SEP 20.000 10.000IF i use sum if between date 17 sept to 19 sept the 60.000 & 10.000 can't be include in the total.what formulas should i use to include the 60.000 and 10.000 in the total?
This comment was minimized by the moderator on the site
Hi, i have a question related to sumifs:

want to calculate a sum between two dates e.g. start of date and end of date, but at times there are payments which were made in a new month but connected to the expense month, For example if a payment date is Oct 5th but the payment is for September and I would like to show this payment for the month of September, the formula should ignore the Oct 5th date and consider the payment in September. How do i do that
This comment was minimized by the moderator on the site
Help! I can only get this formula to work if I convert to a MM/DD/YYYY format but all of my data is DD/MM/YYYY. The cells are formatted correctly but the formula doesn't work unless I change from eg. 14/01/2020 to 01/14/2020.
This comment was minimized by the moderator on the site
Hi,

can you help me to calculate two working experiences in excel.

Ex: 12 Yeas 3 Months 5 Days - CDB Finance company

9 Years 4 Months 7 Days - Commercial Bank

These are two working experiences in two working places of one person. how to sum these two experiences as a total experience in excel. Please help me.
This comment was minimized by the moderator on the site
Hi Ayesha,
We can suppose the start is 1900/1/0, and add the two date periods to get the end date, and then get the difference between the start date and end date as attached image shown.
Two formulas used:
In Cell B7: =DATE(YEAR(0)+B4+B5,MONTH(0)+C4+C5,DAY(0)+D4+D5)
In Cell B9: =DATEDIF(B1,B7,"Y")&" Years, "&DATEDIF(B1,B7,"YM")&" Months, "&DATEDIF(B1,B7,"MD")&" Days"
This comment was minimized by the moderator on the site
Hi all,

What if one would like to make a date range non-mandatory?

Meaning, let's say that I have two cells with dates in them that are used as my beginning and end date threshold, but when those cells aren't populated, the sum for all dates is pulled from the data set.

My formula (below) has two match criteria with the date ranges at the back of the formula. What I'm trying to do is only filter the sum by the date range if a condition is met (ideally a cell that acts as select Yes or No on "Do you want to limit the sum to a specific date range?"

=SUMIFS(BURN_DATA!$S:$S,BURN_DATA!$R:$R,$A12,BURN_DATA!$H:$H,I$3,BURN_DATA!O:O,">="&I9,BURN_DATA!O:O,"<="&J9)


THANKS IN ADVANCE!
This comment was minimized by the moderator on the site
Aloha, I'm trying to figure out how to sum another column of units, when one column of dates is sequential. Example: I have rows with dates, Mar 1, Mar 2, mar3, then marc 6,7, then march 10.
I need to sum the corresponding units in of another column for mar 1-3, mar 6-7 and mar 10.
This comment was minimized by the moderator on the site
Hi David,
You can use methods introduced in this webpage to sum each period one by one.
Or you can add a helper column before the date column as attached image shown, and then apply the Subtotal feature.
This comment was minimized by the moderator on the site
I am trying to create a holiday calendar to calculate the following information:

Start Date:
End Date (if there is one, otherwise calculate on the entire holiday year_
No of Holidays
Holiday year runs from 01/04 to 31/03 with an entitlement of 20 days plus bank holidays

any help is much appreciated
There are no comments posted here yet
Load More
Please leave your comments in English
Posting as Guest
×
Rate this post:
0   Characters
Suggested Locations