Skip to main content

Conas gach taifead a bhaint idir dhá dháta in Excel?

Seo raon sonraí in Excel, agus sa chás seo, ba mhaith liom gach taifead sraitheanna a bhaint idir dhá dháta mar atá thíos den ghrianghraf a thaispeántar, an bhfuil aon smaointe agat an post seo a láimhseáil go tapa gan sonraí a lorg agus iad a bhaint ceann ar cheann de láimh?

taifead sliocht doc idir dátaí 1 saighead lámhaigh ar dheis taifead sliocht doc idir dátaí 2

Sliocht na taifid go léir idir dhá dháta de réir foirmlí

Sliocht na taifid go léir idir dhá dháta le Kutools le haghaidh Excelsmaoineamh maith3


Sliocht na taifid go léir idir dhá dháta de réir foirmlí

Chun na taifid go léir a bhaint idir dhá dháta in Excel, ní mór duit iad seo a dhéanamh:

1. Cruthaigh bileog nua, Bileog2, agus clóscríobh an dáta tosaigh agus an dáta deiridh in dhá chill, mar shampla, A1 agus B1. Féach an pictiúr:
taifead sliocht doc idir dátaí 3

2. Sa C1 i mBileog 2, clóscríobh an fhoirmle seo, =SUMPRODUCT((Sheet1!$A$2:$A$22>=A2)*(Sheet1!$A$2:$A$22<=B2)), brúigh Iontráil eochair chun líon iomlán na sraitheanna meaitseála a chomhaireamh. Féach an pictiúr:
taifead sliocht doc idir dátaí 4

Nóta: san fhoirmle, is é Bileog 1 an bhileog ina bhfuil na sonraí bunaidh ar mhaith leat a bhaint astu, $ A $ 2: $ A $ 22 an raon sonraí, is iad A2 agus B2 an dáta tosaigh agus an dáta deiridh.

3. Roghnaigh cill bhán a chuirfidh tú na sonraí eastósctha, clóscríobh an fhoirmle seo =IF(ROWS(A$5:A5)>$C$2,"",INDEX(Sheet1!A$2:A$22,SMALL(IF((Sheet1!$A$2:$A$22>=$A$2)*(Sheet1!$A$2:$A$22<=$B$2),ROW(Sheet1!A$2:A$22)-ROW(Sheet1!$A$2)+1),ROWS(A$5:A5)))), brúigh Shift + Ctrl + Iontráil eochracha, agus tarraing láimhseáil Auto líonta thar cholúin agus sraitheanna chun na sonraí go léir a bhaint go dtí go mbíonn cealla bána nó luachanna nialasacha le feiceáil. Féach an pictiúr:
taifead sliocht doc idir dátaí 5

4. Bain na nialais, agus roghnaigh na dátaí a thaispeánann mar uimhreacha 5 dhigit, téigh chuig Baile tab, agus roghnaigh Dáta Gearr sa liosta anuas Ginearálta chun iad a fhormáidiú i bhformáidiú dáta. Féach an pictiúr:
taifead sliocht doc idir dátaí 6


Sliocht na taifid go léir idir dhá dháta le Kutools le haghaidh Excel

Más mian leat an post seo a láimhseáil níos éasca, is féidir leat triail a bhaint as an ngné Roghnaigh Cealla Sonracha de Kutools le haghaidh Excel.

Kutools le haghaidh Excel, le níos mó ná 300 feidhmeanna úsáideacha, déanann sé do phoist níos éasca. 

Tar éis a shuiteáil Kutools for Excel, déan mar atá thíos le do thoil:Download Kutools Íoslódáil saor in aisce do Excel Anois!)

1. Roghnaigh na sonraí a theastaíonn uait a bhaint astu, cliceáil Kutools > Roghnaigh > Roghnaigh Cealla Sonracha. Féach an pictiúr:
taifead sliocht doc idir dátaí 7

2. Sa Roghnaigh Cealla Sonracha dialóg, seiceáil Sraith iomlán rogha, agus roghnaigh Níos fearr ná agus Níos lú ná ó na liostaí anuas, clóscríobh an dáta tosaigh agus an dáta deiridh sna boscaí téacs, cuimhnigh seiceáil agus. Féach an pictiúr:
taifead sliocht doc idir dátaí 8

3. cliceáil Ok > OK. Agus roghnaíodh na sraitheanna a mheaitseálann na dátaí. Brúigh Ctrl + C chun na sraitheanna a chóipeáil, agus cill bhán a roghnú agus brúigh Ctrl + V chun é a ghreamú, féach an pictiúr:
taifead sliocht doc idir dátaí 9

Uirlisí Táirgiúlachta Oifige is Fearr

🤖 Kutools AI Aide: anailís sonraí a réabhlóidiú bunaithe ar: Forghníomhú Chliste   |  Gin Cód  |  Cruthaigh Foirmlí Saincheaptha  |  Anailís a dhéanamh ar Sonraí agus Cairteacha a Ghin  |  Feidhmeanna Kutools a agairt...
Gnéithe Coitianta: Faigh, Aibhsigh nó Aithnigh Dúblaigh   |  Scrios Sraitheanna Bána   |  Comhcheangail Colúin nó Cealla gan Sonraí a Chailleadh   |   Babhta gan Foirmle ...
Cuardaigh Super: Ilchritéir VLookup    VLookup Illuachanna  |   VLookup Trasna Ilbhileoga   |   Amharc doiléir ....
Liosta anuas Casta: Go tapa Cruthaigh Liosta Anuas   |  Liosta anuas Cleithiúnach   |  Liosta Buail Isteach Ilroghnacha ....
Bainisteoir Colún: Cuir Líon Sonrach Colún leis  |  Colúin Bog  |  Scoránaigh Stádas Infheictheachta na gColún Ceilte  |  Déan comparáid idir Raonta & Colúin ...
Gnéithe Réadmhaoin: Fócas Eangaí   |  Amharc Dearaidh   |   Barra Mór na Foirmle    Leabhar Oibre & Bainisteoir Bileog   |  Leabharlann Acmhainní (Uaththéacs)   |  Piocálaí Dáta   |  Comhcheangail Bileoga Oibre   |  Criptigh/Díchriptigh Cealla    Seol Ríomhphost trí Liosta   |  Scagaire Super   |   Scagaire Speisialta (scagaire trom/iodálach/stailc tríd...) ...
Barr 15 Uirlisí12 Téacs uirlisí (Cuir Téacs, Bain Carachtair,...)   |   50 + Cairt cineálacha (Cairt Gantt,...)   |   40+ Praiticiúil Foirmlí (Ríomh aois bunaithe ar lá breithe,...)   |   19 Insertion uirlisí (Cuir isteach Cód QR, Ionsáigh Pictiúr ón gCosán,...)   |   12 Tiontú uirlisí (Uimhreacha le Focail, Comhshó Airgeadra,...)   |   7 Cumaisc & Scoilt uirlisí (Sraitheanna Comhcheangail Casta, Cealla Scoilt,...)   |   ... agus eile

Supercharge Do Scileanna Excel le Kutools le haghaidh Excel, agus Éifeachtúlacht Taithí Cosúil Ná Roimhe. Kutools le haghaidh Excel Tairiscintí Níos mó ná 300 Ardghnéithe chun Táirgiúlacht a Treisiú agus Sábháil Am.  Cliceáil anseo chun an ghné is mó a theastaíonn uait a fháil ...

Tuairisc


Tugann Tab Oifige comhéadan Tabbed chuig Office, agus Déan Do Obair i bhfad Níos Éasca

  • 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á!
Comments (19)
No ratings yet. Be the first to rate!
This comment was minimized by the moderator on the site
Hi, this formula worked ok, except it only returned one data set for each date in the range. Is there an adjustment to allow for multiple entries with the dame date value?
This comment was minimized by the moderator on the site
This formula works awesome thanks, I need some extra help though. I have 200 employees, each with certification that expires on different dates. The heading for each certification is at the top with their expiry dates below. I want to extract the rows that with all info if there is an expiry reached and throw them into a new sheet. Exactly like the example above just dated from multiple columns.
This comment was minimized by the moderator on the site
Hi, Christiaan82, could you upload the a screenshot about you workhsheet, or give me more details about the information of sheet format, only with your description, I do not get it clearly.
This comment was minimized by the moderator on the site
All sorted. Instead of trying to retrieve the rows from multiple columns, I added a new hidden sheet where all the info populates the info on top of each other. So the information only needs to be retrieved from one column, as per your example above.
Thank you Sunny
This comment was minimized by the moderator on the site
"drag Auto fill handle over columns and rows to extract all data until blank cells or zero values appear."
This doesn't seem to be working for me. The first row gives me the dates but the same gets repeated in the next two rows.
This comment was minimized by the moderator on the site
Hi, Neha, could you check if your auto calculate is turn on? Click Formulas > Calcuations Options > Automatic.
This comment was minimized by the moderator on the site
it worked well for single sheet. can u pls help me to get the same from multiple sheets of similar data. first 4 sheets contain similar data. i need all records of same 'date' in sheet5.
This comment was minimized by the moderator on the site
Can you extend the formula to check for dates that encompass more than one day? For example, using the same start and end dates from 1/1/15-12/31/16, but the data in sheet 1 have start and end dates too rather than just existing for a singular date.
This comment was minimized by the moderator on the site
This formula worked brilliantly. I was concerned as I have multiple date duplicates and there was no mention of how it handles those; no issues. It returned all relevant data.
Stoked.
This comment was minimized by the moderator on the site
Thanks for your support, you can combined the duplicate dates cells after extracting.
This comment was minimized by the moderator on the site
The trouble I am having because I need to find dates that run through the date range specified. So I want anything that runs through something like 1/2016 to 12/2017, however it needs to include start dates that may be before the range so I can identify the records I need to look at.
This comment was minimized by the moderator on the site
I used this code and it is pulling up dates outside of the window... how do I fix it?
This comment was minimized by the moderator on the site
Which code Kayla? Do you mean the formula?
This comment was minimized by the moderator on the site
I recreated this example in Excel 2010, and the result was that the first row of data would show up, but everything underneath had a number error.
This comment was minimized by the moderator on the site
Same thing happens to me n Excel 2010. Something in the formula doesn't work correctly.
This comment was minimized by the moderator on the site
Have you pressed Shift + Ctrl + Enter keys?
This comment was minimized by the moderator on the site
I see what's wrong. You have to press the shift + CTRL + Enter keys while still in edit mode.
I was hitting those keys after entering the formula and hitting ENTER.
I wish it would have been clearer.
This comment was minimized by the moderator on the site
Yes, brian, after typing the formula and still in edit mode, directly press Shift + Ctrl + Enter keys (the keys instead of Enter key), to get the correct result.
This comment was minimized by the moderator on the site
Still doesnt work for me? I am doing exactly as above and still returning the NUM error? Any other ideas?
There are no comments posted here yet
Please leave your comments in English
Posting as Guest
×
Rate this post:
0   Characters
Suggested Locations