Przejdź do głównej zawartości

Jak wyodrębnić lub pobrać rok, miesiąc i dzień z listy dat w programie Excel?

W przypadku listy dat, czy wiesz, jak wyodrębnić lub uzyskać numer roku, miesiąca i dnia? Zobacz zrzut ekranu poniżej. W tym artykule pokażemy formuły uzyskiwania numeru roku, miesiąca i dnia oddzielnie od listy dat w programie Excel.


Wyodrębnij / pobierz rok, miesiąc i dzień z listy dat w programie Excel

Weź poniższą listę dat jako przykład, jeśli chcesz uzyskać numer roku, miesiąca i dnia z tej listy, wykonaj następujące czynności krok po kroku.

Wyodrębnij numer roku

1. Wybierz pustą komórkę do zlokalizowania numeru roku, na przykład komórkę B2.

2. Skopiuj i wklej wzór = ROK (A2) do paska formuły, a następnie naciśnij Wchodzę klucz. Przeciągnij uchwyt wypełnienia w dół do zakresu, którego potrzebujesz, aby uzyskać numer całego roku z listy.

Wyodrębnij numer miesiąca

Ta sekcja przedstawia formułę pobierania numeru miesiąca z listy.

1. Wybierz pustą komórkę, skopiuj i wklej formułę = MIESIĄC (A2) do paska formuły i naciśnij Wchodzę klawisz.

2. Przeciągnij uchwyt wypełnienia w dół do wymaganego zakresu.

Następnie otrzymasz numery miesięcy z listy dat.

Wyodrębnij numer dnia

Formuła otrzymywania numeru dnia jest tak prosta, jak powyższe wzory. Wykonaj następujące czynności.

Skopiuj i wklej formułę = DZIEŃ (A2) do pustej komórki D2 i naciśnij Wchodzę klucz. Następnie przeciągnij uchwyt wypełnienia w dół do zakresu, aby wyodrębnić numery wszystkich dni z listy dat, do których się odwołuje.

Teraz numery roku, miesiąca i dnia są wyodrębniane z listy dat, jak pokazano na powyższym zrzucie ekranu.


Łatwo zmieniaj formatowanie daty w wybranym zakresie dat w programie Excel

Kutools dla programu Excel's Zastosuj formatowanie daty narzędzie pomaga łatwo zmienić cały format daty na określony format daty w wybranym zakresie dat w programie Excel.
Pobierz teraz pełną funkcję 30-dniową darmową ścieżkę Kutools dla programu Excel!

Najlepsze narzędzia biurowe

🤖 Pomocnik AI Kutools: Zrewolucjonizuj analizę danych w oparciu o: Inteligentne wykonanie   |  Wygeneruj kod  |  Twórz niestandardowe formuły  |  Analizuj dane i generuj wykresy  |  Wywołaj funkcje Kutools...
Popularne funkcje: Znajdź, wyróżnij lub zidentyfikuj duplikaty   |  Usuń puste wiersze   |  Łącz kolumny lub komórki bez utraty danych   |   Okrągły bez wzoru ...
Super wyszukiwanie: Wiele kryteriów VLookup    Wiele wartości VLookup  |   Przeglądanie pionowe na wielu arkuszach   |   Wyszukiwanie rozmyte ....
Zaawansowana lista rozwijana: Szybko twórz listę rozwijaną   |  Zależna lista rozwijana   |  Lista rozwijana wielokrotnego wyboru ....
Menedżer kolumn: Dodaj określoną liczbę kolumn  |  Przesuń kolumny  |  Przełącz stan widoczności ukrytych kolumn  |  Porównaj zakresy i kolumny ...
Polecane funkcje: Fokus siatki   |  Widok projektu   |   Duży pasek formuły    Menedżer skoroszytów i arkuszy   |  Biblioteka zasobów (Automatyczny tekst)   |  Selektor dat   |  Połącz arkusze   |  Szyfruj/odszyfruj komórki    Wysyłaj e-maile według listy   |  Super filtr   |   Specjalny filtr (filtruj pogrubienie/kursywa/przekreślenie...) ...
15 najlepszych zestawów narzędzi12 Tekst Tools (Dodaj tekst, Usuń znaki, ...)   |   50 + Wykres rodzaje (Wykres Gantta, ...)   |   40+ Praktyczne Wzory (Oblicz wiek na podstawie urodzin, ...)   |   19 Wprowadzenie Tools (Wstaw kod QR, Wstaw obraz ze ścieżki, ...)   |   12 Konwersja Tools (Liczby na słowa, Przeliczanie walut, ...)   |   7 Połącz i podziel Tools (Zaawansowane wiersze łączenia, Podział komórki, ...)   |   ... i więcej

Zwiększ swoje umiejętności Excela dzięki Kutools for Excel i doświadcz wydajności jak nigdy dotąd. Kutools dla programu Excel oferuje ponad 300 zaawansowanych funkcji zwiększających produktywność i oszczędzających czas.  Kliknij tutaj, aby uzyskać funkcję, której najbardziej potrzebujesz...

Opis


Karta Office wprowadza interfejs z zakładkami do pakietu Office i znacznie ułatwia pracę

  • Włącz edycję i czytanie na kartach w programach Word, Excel, PowerPoint, Publisher, Access, Visio i Project.
  • Otwieraj i twórz wiele dokumentów w nowych kartach tego samego okna, a nie w nowych oknach.
  • Zwiększa produktywność o 50% i redukuje setki kliknięć myszką każdego dnia!
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