Bỏ qua nội dung chính

Làm thế nào để tính toán tỷ lệ phần trăm giữa hai ngày trong Excel?

Giả sử, tôi có một danh sách các nhiệm vụ với ngày bắt đầu và ngày kết thúc, bây giờ, tôi muốn tính toán tỷ lệ phần trăm hoàn thành nhiệm vụ dựa trên ngày hôm nay như ảnh chụp màn hình sau. Làm thế nào bạn có thể giải quyết công việc này trong Excel?

Tính phần trăm hoàn thành giữa hai ngày với công thức


Tính phần trăm hoàn thành giữa hai ngày với công thức

Để tính toán phần trăm hoàn thành nhiệm vụ giữa hai ngày, vui lòng áp dụng công thức dưới đây:

1. Nhập công thức này vào một ô trống mà bạn muốn nhận kết quả:

=(DATEDIF(B2,TODAY(),"d")+1)/(DATEDIF(B2,C2,"d")+1)

Chú thích: Trong công thức này, B2 là ô ngày bắt đầu và C2 là ô ngày kết thúc.

2. Sau đó, kéo chốt điền xuống các ô bạn muốn áp dụng công thức này và bạn sẽ nhận được kết quả như hình minh họa bên dưới:

3. Tiếp tục chọn các ô công thức, sau đó bấm Kiểu phần trăm theo Trang Chủ tab trong Con số nhóm và bạn sẽ nhận được giá trị phần trăm như ảnh chụp màn hình sau:


Các bài báo phần trăm tương đối khác:

  • Tính giá gốc từ phần trăm chiết khấu
  • Thông thường, trong cuộc sống hàng ngày của chúng ta, có một số sản phẩm, được giảm giá trong trung tâm mua sắm. Nếu bạn có giá chiết khấu và phần trăm chiết khấu như ảnh chụp màn hình sau đây, làm cách nào bạn có thể tính giá gốc của sản phẩm đó trong Excel?
  • Tính phần trăm năm hoặc tháng đã qua
  • Giả sử, bạn có một danh sách ngày trong một trang tính, bây giờ, bạn muốn nhận phần trăm năm hoặc tháng đã trôi qua hoặc còn lại dựa trên ngày đã cho. Làm thế nào bạn có thể giải quyết công việc này trong Excel?
  • Tính phần trăm Có và Không từ một danh sách
  • Làm thế nào bạn có thể tính toán tỷ lệ phần trăm văn bản có và không từ danh sách các ô phạm vi trong trang tính Excel? Có thể bài viết này sẽ giúp bạn giải quyết công việc.
  • Tạo một biểu đồ với cả phần trăm và giá trị
  • Thật dễ dàng để chúng tôi thêm phần trăm hoặc giá trị vào biểu đồ thanh hoặc cột, nhưng, bạn đã bao giờ cố gắng tạo biểu đồ cột hoặc biểu đồ thanh với cả phần trăm và giá trị được hiển thị trong Excel chưa?
  • Countif để tính phần trăm trong Excel
  • Ví dụ, tôi có một báo cáo tóm tắt của một bài báo nghiên cứu, và có ba phương án A, B, C, bây giờ tôi muốn tính tỷ lệ phần trăm của ba phương án này. Có nghĩa là, tôi cần biết phương án A chiếm tỷ lệ phần trăm trong tất cả các phương án. Bài viết này, tôi sẽ nói về cách lấy phần trăm của một tùy chọn cụ thể trong một phạm vi.

  • Thanh siêu công thức (dễ dàng chỉnh sửa nhiều dòng văn bản và công thức); Bố cục đọc (dễ dàng đọc và chỉnh sửa số lượng ô lớn); Dán vào Dải ô đã Lọchữu ích. Cảm ơn !
  • Hợp nhất các ô / hàng / cột và Lưu giữ dữ liệu; Nội dung phân chia ô; Kết hợp các hàng trùng lặp và Tổng / Trung bình... Ngăn chặn các ô trùng lặp; So sánh các dãyhữu ích. Cảm ơn !
  • Chọn trùng lặp hoặc duy nhất Hàng; Chọn hàng trống (tất cả các ô đều trống); Tìm siêu và Tìm mờ trong Nhiều Sổ làm việc; Chọn ngẫu nhiên ...
  • Bản sao chính xác Nhiều ô mà không thay đổi tham chiếu công thức; Tự động tạo tài liệu tham khảo sang Nhiều Trang tính; Chèn Bullets, Hộp kiểm và hơn thế nữa ...
  • Yêu thích và Chèn công thức nhanh chóng, Dãy, Biểu đồ và Hình ảnh; Mã hóa ô với mật khẩu; Tạo danh sách gửi thư và gửi email ...
  • Trích xuất văn bản, Thêm Văn bản, Xóa theo Vị trí, Xóa không gian; Tạo và In Tổng số phân trang; Chuyển đổi giữa nội dung ô và nhận xéthữu ích. Cảm ơn !
  • Siêu lọc (lưu và áp dụng các lược đồ lọc cho các trang tính khác); Sắp xếp nâng cao theo tháng / tuần / ngày, tần suất và hơn thế nữa; Bộ lọc đặc biệt bằng cách in đậm, in nghiêng ...
  • Kết hợp Workbook và WorkSheets; Hợp nhất các bảng dựa trên các cột chính; Chia dữ liệu thành nhiều trang tính; Chuyển đổi hàng loạt xls, xlsx và PDFhữu ích. Cảm ơn !
  • Nhóm bảng tổng hợp theo số tuần, ngày trong tuần và hơn thế nữa ... Hiển thị các ô đã mở khóa, đã khóa bởi các màu sắc khác nhau; Đánh dấu các ô có công thức / tênhữu ích. Cảm ơn !
tab kte 201905
  • Cho phép chỉnh sửa và đọc theo thẻ trong Word, Excel, PowerPoint, Publisher, Access, Visio và Project.
  • Mở và tạo nhiều tài liệu trong các tab mới của cùng một cửa sổ, thay vì trong các cửa sổ mới.
  • Tăng 50% năng suất của bạn và giảm hàng trăm cú nhấp chuột cho bạn mỗi ngày!
officetab dưới cùng
Comments (24)
No ratings yet. Be the first to rate!
This comment was minimized by the moderator on the site
Hello - Is there a way to combine both these options?

So that the calculation will show O instead of #NUM! if the date is in the future AND stay at 100% if the end date has passed.

That would be the ideal thing.
This comment was minimized by the moderator on the site
Is there a way to incorporate both these items? I would like it to stay at 100% once the date passes and that it shows 0% instead of the #NUM! error if the date is in the future?
This comment was minimized by the moderator on the site
I am using the formula:

=MIN(1, (DATEDIF(B2,TODAY(),"d")+1)/(DATEDIF(B2,C2,"d")+1))

which is working great and leaves the percentage at 100% once the end date has passed.
This comment was minimized by the moderator on the site
How can you calculate a date difference in days using a percentage in excel?

Basically, I'm looking to implement a start date for an activity based on the fraction of 15/52. The idea is that an activity starts 3 weeks from a kick-off date.

However, a series of projects have variable durations. As such I want to represent 15 weeks out of 52 weeks in a formula I can use across all projects to work on the same principle.

The idea is to use a start date and project into the future using a percentage to define the next start date for another activity to commence.
This comment was minimized by the moderator on the site
Qual a formula para não dar mais que cem e menos de zero?
This comment was minimized by the moderator on the site
И как быть, если дата начала не определена, а дата окончания известна. В этом случае по формуле пишет 100%. А хочется чтобы писал 0 или ничего.
This comment was minimized by the moderator on the site
Привет! Спасибо за формулы!

Что добавить в формулу, чтобы не ругался, если дата начала и окончания совпадают? (предполагается, что задача выполняется в теч. дня.
This comment was minimized by the moderator on the site
Привет! Спасибо за формулы!! Весь интернет перерыла, нашла только у вас.
Ругается "параметр 2 не может равняться нулю", когда дата начала и дата окончания одна и та же (заложено, что задача делается в течении дня). Что добавить в формулу?
This comment was minimized by the moderator on the site
kenapa jika tepat waktu hasil nya menjadi tidak 100%?
This comment was minimized by the moderator on the site
Hello,
Gald to help. Please use this formula: =MIN(1, (DATEDIF(B2,TODAY(),"d")+1)/(DATEDIF(B2,C2,"d")+1)).
It will maintain it at 100% instead of 100 over percent if today date is exceed the end date. Please see the screenshots. In cell D2, I use the formula in the article, and the result is 156.25%. In cell E2, I use the new formula I offered in this comment, and the result is 100%. Hope it can solve your problem. Have a nice day.
Sincerely,
Mandy
This comment was minimized by the moderator on the site
Thank you for this, help me a lot. But how to show blank if one of the date is not input yet? Because it keep shows 100%.
This comment was minimized by the moderator on the site
waktunya habis jam 12 tgh malam..jadi 12.01 baru akan bertukar kepada 100%. harap membantu
This comment was minimized by the moderator on the site
Hello,
Gald to help. Please use this formula: =MIN(1, (DATEDIF(B2,TODAY(),"d")+1)/(DATEDIF(B2,C2,"d")+1)). 
It will maintain it at 100% instead of 100 over percent if today date is exceed the end date. Please see the screenshots. In cell D2, I use the formula in the article, and the result is 156.25%. In cell E2, I use the new formula I offered in this comment, and the result is 100%. Hope it can solve your problem. Have a nice day.
Sincerely,
Mandy
This comment was minimized by the moderator on the site
Hi Mandy,
I am trying to exeute =MIN(1, (DATEDIF(B2,TODAY(),"d")+1)/(DATEDIF(B2,C2,"d")+1)) but it gives me always an error.
I am using a MAC, but I don't think is matter of OS.
THANKS
This comment was minimized by the moderator on the site
thank you for the formula, when i use it for a dates in the future it returns #NUM!. is there a way to get it to return a 0.00 or some sort of text return like "Not Started"? it would be cleaner and more informative and i have other formulas based on the response so having the option to return a 0.00 (and or text options) would be greatly appreciated. thanks!
This comment was minimized by the moderator on the site
Hi, Jeff,To solve your problem, please apply the below formula:=IFERROR((DATEDIF(B2,TODAY(),"d")+1)/(DATEDIF(B2,C2,"d")+1),"Not start").
Please try, hope it can help you!

This comment was minimized by the moderator on the site
Hi skyyang, very helpful this one. How about if today date is exceed the end date, how to maintain it at 100% instead of 100 over percent.
This comment was minimized by the moderator on the site
Hello,Gald to help. Please use this formula: =MIN(1, (DATEDIF(B2,TODAY(),"d")+1)/(DATEDIF(B2,C2,"d")+1)). It will maintain it at 100% instead of 100 over percent if today date is exceed the end date. Please see the screenshots. In cell D2, I use the formula in the article, and the result is 156.25%. In cell E2, I use the new formula I offered in this comment, and the result is 100%. Hope it can solve your problem. Have a nice day.Sincerely,Mandy
This comment was minimized by the moderator on the site
Hi skyyang, very helpfull this one. How about if today date is exceed the end date, how to maintain it at 100% instead of 100 over percent.
This comment was minimized by the moderator on the site
Hello,
Gald to help. Please use this formula: =MIN(1, (DATEDIF(B2,TODAY(),"d")+1)/(DATEDIF(B2,C2,"d")+1)). It will maintain it at 100% instead of 100 over percent if today date is exceed the end date. Please see the screenshots. In cell D2, I use the formula in the article, and the result is 156.25%. In cell E2, I use the new formula I offered in this comment, and the result is 100%. Hope it can solve your problem. Have a nice day.
Sincerely,
Mandy
This comment was minimized by the moderator on the site
same here.
This comment was minimized by the moderator on the site
Hello,
Gald to help. Please use this formula: =MIN(1, (DATEDIF(B2,TODAY(),"d")+1)/(DATEDIF(B2,C2,"d")+1)).

It will maintain it at 100% instead of 100 over percent if today date is exceed the end date. Please see the screenshots. In cell D2, I use the formula in the article, and the result is 156.25%. In cell E2, I use the new formula I offered in this comment, and the result is 100%. Hope it can solve your problem. Have a nice day.
Sincerely,
Mandy
This comment was minimized by the moderator on the site
how do i find a 62% percentage date between two dates
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