Preskoči na glavno vsebino

Kako izvleči ali pridobiti leto, mesec in dan s seznama datumov v Excelu?

Ali za seznam datumov veste, kako izvleči ali dobiti številko leta, meseca in dneva? Oglejte si spodnji posnetek zaslona. V tem članku vam bomo prikazali formule za pridobivanje leta, meseca in dneva številko ločeno od seznama datumov v Excelu.


Izvlecite / dobite leto, mesec in dan s seznama datumov v Excelu

Za primer vzemite spodnji seznam datumov. Če želite s tega seznama pridobiti številke leta, meseca in dneva, po korakih naredite naslednje.

Izvlecite številko leta

1. Izberite prazno celico za iskanje številke leta, na primer celice B2.

2. Kopirajte in prilepite formulo = LETO (A2) v vrstico formule, nato pritisnite Vnesite tipko. Povlecite ročico za polnjenje navzdol do obsega, ki ga potrebujete, da dobite številko celotnega leta s seznama.

Izvlecite številko meseca

V tem razdelku je prikazana formula za pridobitev številke meseca s seznama.

1. Izberite prazno celico, kopirajte in prilepite formulo = MESEC (A2) v vrstico formule in pritisnite Vnesite ključ.

2. Povlecite ročico za polnjenje navzdol do želenega obsega.

Nato boste dobili mesečne številke seznama datumov.

Izvlecite številko dneva

Formula za pridobivanje številke dneva je tako preprosta kot zgornje formule. Naredite naslednje.

Kopirajte in prilepite formulo = DAN (A2) v prazno celico D2 in pritisnite Vnesite tipko. Nato povlecite ročico za polnjenje navzdol do obsega, da iz seznama referenčnih datumov izvlečete vse dnevne številke.

Zdaj so številke leta, meseca in dneva izpisane s seznama datumov, kot je prikazano zgoraj.


Preprosto spremenite oblikovanje datuma v izbranem časovnem obdobju v Excelu

Kutools za Excel's Uporabi oblikovanje datuma pripomoček vam pomaga enostavno spremeniti celotno obliko datuma v določeno obliko datuma v izbranem časovnem obdobju v Excelu.
Prenesite celotno 30-dnevno brezplačno pot Kutools za Excel zdaj!

Najboljša pisarniška orodja za produktivnost

🤖 Kutools AI Aide: Revolucionirajte analizo podatkov na podlagi: Inteligentna izvedba   |  Ustvari kodo  |  Ustvarite formule po meri  |  Analizirajte podatke in ustvarite grafikone  |  Prikličite funkcije Kutools...
Priljubljene funkcije: Poiščite, označite ali identificirajte dvojnike   |  Izbriši prazne vrstice   |  Združite stolpce ali celice brez izgube podatkov   |   Krog brez formule ...
Super iskanje: Več kriterijev VLookup    Multiple Value VLookup  |   VLookup na več listih   |   Nejasno iskanje ....
Napredni spustni seznam: Hitro ustvarite spustni seznam   |  Odvisni spustni seznam   |  Večkrat izberite spustni seznam ....
Upravitelj stolpcev: Dodajte določeno število stolpcev  |  Premakni stolpce  |  Preklop stanja vidnosti skritih stolpcev  |  Primerjaj obsege in stolpce ...
Predstavljene funkcije: Mrežni fokus   |  Pogled oblikovanja   |   Velika vrstica formule    Upravitelj delovnih zvezkov in listov   |  Knjižnica virov (Samodejno besedilo)   |  Izbirnik datuma   |  Združite delovne liste   |  Šifriranje/dešifriranje celic    Pošljite e-pošto po seznamu   |  Super filter   |   Poseben filter (filter krepko/ležeče/prečrtano ...) ...
15 najboljših kompletov orodij12 Besedilo Orodja (dodajanje besedila, Odstrani znake,...)   |   50 + Graf Vrste (Gantt Chart,...)   |   40+ Praktično Formule (Izračunajte starost glede na rojstni dan,...)   |   19 vstavljanje Orodja (Vstavite kodo QR, Vstavi sliko s poti,...)   |   12 Pretvorba Orodja (Številke v besede, Pretvorba valut,...)   |   7 Spoji in razdeli Orodja (Napredne kombinirane vrstice, Razdeljene celice,...)   |   ... in več

Napolnite svoje Excelove spretnosti s Kutools za Excel in izkusite učinkovitost kot še nikoli prej. Kutools za Excel ponuja več kot 300 naprednih funkcij za povečanje produktivnosti in prihranek časa.  Kliknite tukaj, če želite pridobiti funkcijo, ki jo najbolj potrebujete...

Opis


Kartica Office prinaša vmesnik z zavihki v Office in poenostavi vaše delo

  • Omogočite urejanje in branje z zavihki v Wordu, Excelu, PowerPointu, Publisher, Access, Visio in Project.
  • Odprite in ustvarite več dokumentov v novih zavihkih istega okna in ne v novih oknih.
  • Poveča vašo produktivnost za 50%in vsak dan zmanjša na stotine klikov miške za vas!
Comments (16)
No ratings yet. Be the first to rate!
This comment was minimized by the moderator on the site
EN MI CASO QUE TIENE 2022-07-01T00:00:01-06:00 PERO YO LO UNICO QUE NECESITO ES EL AÑO EL MES Y EL DIA

COMO PODRIA APLICAR A LA FORMULA
This comment was minimized by the moderator on the site
Hola Cesar22,

Lo que podes hacer es lo siguiente:
Si la informacion esta en A1
-=TEXT(LEFT(A1,10),"dd mm yyyy")

Esto saca la fecha de toda la otra informacion y te da el dia (dd), el mes (mm) y el año (yy).

Buena suerte
This comment was minimized by the moderator on the site
Hi, i have tried and these formulas do not seem to working for what i intend or understand. I need to extract the day and month from a cell.

Ex. 1955-03-08 (current data) to 8 Mar (required data)

Please could someone assist.
This comment was minimized by the moderator on the site
Hi Ansonica Campher,
The following formula can do you a favor. Please give it a try.
=TEXT(A1,"dd mmm")
This comment was minimized by the moderator on the site
HELP. I have a list of Payment dates, (8/1/16, 9/1/16, 10/1/16, + 30 years). How do I find the current month/year? Im trying to have my formula find the current month/year and grab the data from a different column from the row that the current month is in.
This comment was minimized by the moderator on the site
Hi Brittany,
Supposing all dates are in column B and the current date is in F1. You need to create a helper column, enter the following formula into the first cell of that column (the cell should be in the same row as the first date in column B), press Enter to get the first result. Then drag its AutoFill Handle down to get the rest of the results.
If the result comes TRUE, it means that the date is the same month and year as the current date.
=MONTH(B1)&YEAR(B1)=MONTH($F$1)&YEAR($F$1)
This comment was minimized by the moderator on the site
this website help me to find what ive been searching all this time.. many thanks..
This comment was minimized by the moderator on the site
This is stupid. Anyone who comes to this website wants the day of the month to populate into a cell! Anyone can plug in a random number into cell A2 and the click into cell B2 and insert the formula =A2. That's not what anyone is looking for that comes to this page. People want the cell to populate with the DAY OF THE MONTH!!!! This information and website is USELESS!!!
This comment was minimized by the moderator on the site
You wanted the actual day of the week or month?? Day of the week would be...

=TEXT(B2,"dddd") for full day

=TEXT(B704,"ddd") for 3 letter day like Mon, Tue, Wed etc
This comment was minimized by the moderator on the site
That's amazing, thanks Charles, did not really seen this one coming.
This comment was minimized by the moderator on the site
i got what i need from this text function. Thank you
This comment was minimized by the moderator on the site
Did you actually read the site? The formula =DAY(A2) would extract the day of the month from whatever date you had entered in cell A2. How is that not what you're asking for?
This comment was minimized by the moderator on the site
No, that would extract the day number, not the actual day. I believe frank means he wants to see MON, TUE, WED etc.
This comment was minimized by the moderator on the site
=MONTH(A2) drops the leading zero for single digit months. Having that cell formatted as Text does not solve. How to keep the leading zero?
This comment was minimized by the moderator on the site
=text(A2, "mmm") for month name in abbreviations


=text(A2, "mmmm") for full month name
This comment was minimized by the moderator on the site
Thank u Sonu, u answered my question as well..
There are no comments posted here yet
Please leave your comments in English
Posting as Guest
×
Rate this post:
0   Characters
Suggested Locations