Skip to main content

Conas an céatadán idir dhá dháta in Excel a ríomh?

Ag ceapadh, tá liosta tascanna agam le dáta tosaigh agus dáta deiridh, anois, ba mhaith liom an céatadán de chríochnú an taisc a ríomh bunaithe ar dháta an lae inniu mar a thaispeántar an pictiúr seo a leanas. Conas a d’fhéadfá an post seo a réiteach in Excel?

Ríomh céatadán an chríochnaithe idir dhá dháta leis an bhfoirmle


Ríomh céatadán an chríochnaithe idir dhá dháta leis an bhfoirmle

Chun an céatadán de chríochnú an tasc idir dhá dháta a ríomh, cuir an fhoirmle thíos i bhfeidhm:

1. Iontráil an fhoirmle seo i gcill bhán inar mian leat an toradh a fháil:

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

nótaí: San fhoirmle seo, B2 is é an cille dáta tosaigh, agus C2 Is é an cill dáta deiridh.

2. Ansin, tarraing an láimhseáil líonta síos go dtí na cealla a theastaíonn uait an fhoirmle seo a chur i bhfeidhm, agus gheobhaidh tú an toradh mar atá thíos ar an scáileán:

3. Coinnigh ort ag roghnú na gcealla foirmle, agus ansin cliceáil Stíl Céatadáin faoi ​​na Baile tab sa Uimhir grúpa, agus gheobhaidh tú an luach céatadáin mar a thaispeántar an scáileán a leanas:


Earraí céatadáin níos coibhneasta:

  • Ríomh an Praghas Bunaidh ón Lascaine Céatadáin
  • De ghnáth, inár saol laethúil, bíonn roinnt táirgí ann, a ndéantar lascainiú orthu sa ionad siopadóireachta. Má tá an praghas lascainithe agus an lascaine céatadáin agat mar a thaispeántar ar an scáileán a leanas, conas a d’fhéadfá bunphraghas an táirge sin a ríomh in Excel?
  • Ríomh Céatadán na Bliana nó na Míosa a Ritheadh
  • Ag ceapadh, tá liosta dáta agat i mbileog oibre, anois, ba mhaith leat an céatadán bliana nó míosa atá caite nó fágtha a fháil bunaithe ar an dáta áirithe. Conas a d’fhéadfá an post seo a réiteach in Excel?
  • Countif Chun an Céatadán in Excel a Ríomh
  • Mar shampla, tá tuarascáil achomair agam ar pháipéar taighde, agus tá trí rogha A, B, C ann, anois ba mhaith liom céatadán gach tráchtais trí rogha a ríomh. Is é sin le rá, ní mór dom a bheith ar an eolas faoi rogha A cuntas ar chéatadán na roghanna go léir. An t-alt seo, labhróidh mé faoi conas an céatadán de rogha ar leith a fháil i raon.

  • Barra Foirmle Super (cuir línte iolracha téacs agus foirmle in eagar go héasca); Leagan Amach Léitheoireachta (líon mór cealla a léamh agus a chur in eagar go héasca); Greamaigh go dtí an Raon Scagtha...
  • Cumaisc Cealla / Sraitheanna / Colúin agus Sonraí a Choinneáil; Ábhar Cealla Scoilt; Comhcheangail Sraitheanna Dúblacha agus Suim / Meán... Cill Dúblach a Chosc; Déan comparáid idir Ranganna...
  • Roghnaigh Dúblach nó Uathúil Sraitheanna; Roghnaigh Blank Rows (tá na cealla uile folamh); Aimsigh Super agus Fuzzy Aimsigh i go leor Leabhar Oibre; Roghnaigh go randamach ...
  • Cóip Díreach Cealla Il gan tagairt fhoirmle a athrú; Tagairtí Cruthaigh Auto chuig Bileoga Il; Cuir Urchair isteach, Boscaí Seiceála agus go leor eile ...
  • Foirmlí is Fearr agus Cuir isteach go tapa, Ranganna, Cairteacha agus Pictiúir; Cealla a Chriptiú le pasfhocal; Cruthaigh Liosta Ríomhphoist agus seol ríomhphoist ...
  • Sliocht Téacs, Cuir Téacs leis, Bain de réir Poist, Bain Spás; Subtotals Paging a chruthú agus a phriontáil; Tiontaigh Idir Ábhar Cealla agus Tráchtanna...
  • Scagaire Super (scéimeanna scagaire a shábháil agus a chur i bhfeidhm ar bhileoga eile); Ard-Sórtáil de réir míosa / seachtaine / lae, minicíocht agus níos mó; Scagaire Speisialta le cló trom, iodálach ...
  • Comhcheangail Leabhair Oibre agus Bileoga Oibre; Cumaisc Táblaí bunaithe ar eochaircholúin; Roinn Sonraí i Ilbhileoga; Baisc Tiontaigh xls, xlsx agus PDF...
  • Grúpáil Tábla Pivot de réir uimhir na seachtaine, lá na seachtaine agus níos mó ... Taispeáin Cealla Díghlasáilte, Faoi Ghlas de réir dathanna éagsúla; Aibhsigh Cealla a bhfuil Foirmle / Ainm orthu...
cluaisín kte 201905
  • Cumasaigh eagarthóireacht agus léamh tabbed i Word, Excel, PowerPoint, Foilsitheoir, Rochtain, Visio agus Tionscadal.
  • Oscail agus cruthaigh cáipéisí iolracha i gcluaisíní nua den fhuinneog chéanna, seachas i bhfuinneoga nua.
  • Méadaíonn do tháirgiúlacht 50%, agus laghdaíonn sé na céadta cad a tharlaíonn nuair luch duit gach lá!
bun officetab
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