メインコンテンツへスキップ

ExcelでXNUMXつの日付の間のすべてのレコードを抽出するにはどうすればよいですか?

これがExcelのデータの範囲です。この場合、下のスクリーンショットに示すように、XNUMXつの日付の間のすべての行レコードを抽出したいと思います。データを探して手動でXNUMXつずつ抽出することなく、このジョブをすばやく処理するアイデアはありますか?

日付1の間のドキュメント抽出レコード 右矢印を撃った 日付2の間のドキュメント抽出レコード

数式によってXNUMXつの日付の間のすべてのレコードを抽出します

Kutools forExcelでXNUMXつの日付の間のすべてのレコードを抽出します良いアイデア3


数式によってXNUMXつの日付の間のすべてのレコードを抽出します

ExcelでXNUMXつの日付の間のすべてのレコードを抽出するには、次のようにする必要があります。

1.新しいシートSheet2を作成し、開始日と終了日を1つのセル(A1とBXNUMXなど)に入力します。 スクリーンショットを参照してください:
日付3の間のドキュメント抽出レコード

2. Sheet1のC2に、次の式を入力します。 =SUMPRODUCT((Sheet1!$A$2:$A$22>=A2)*(Sheet1!$A$2:$A$22<=B2))、 押す 入力します 一致する行の総数をカウントするためのキー。 スクリーンショットを参照してください:
日付4の間のドキュメント抽出レコード

注: 数式で、Sheet1は抽出する元のデータを含むシート、$ A $ 2:$ A $ 22はデータの範囲、A2とB2は開始日と終了日です。

3.抽出したデータを配置する空白のセルを選択し、この数式を入力します =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))))、 押す Shift + Ctrl + Enter キーを押し、自動入力ハンドルを列と行にドラッグして、空白のセルまたはゼロ値が表示されるまですべてのデータを抽出します。 スクリーンショットを参照してください:
日付5の間のドキュメント抽出レコード

4.ゼロを削除し、5桁の数字として表示されている日付を選択して、に移動します。 ホーム タブ、および選択 短い日付 [一般]ドロップダウンリストで、日付形式でフォーマットします。 スクリーンショットを参照してください:
日付6の間のドキュメント抽出レコード


Kutools forExcelでXNUMXつの日付の間のすべてのレコードを抽出します

このジョブをより簡単に処理したい場合は、Kutools forExcelの[特定のセルの選択]機能を試してみてください。

Kutools for Excel, 以上で 300 便利な機能は、あなたの仕事をより簡単にします。 

インストールした後 Kutools for Excel、以下のようにしてください:(今すぐExcel用のKutoolsを無料でダウンロードしてください!)

1.抽出するデータを選択し、をクリックします クツール > 選択 > 特定のセルを選択。 スクリーンショットを参照してください:
日付7の間のドキュメント抽出レコード

2。 の中に 特定のセルを選択 ダイアログ、チェック 行全体 オプション、および選択 越える & 以下 ドロップダウンリストから、テキストボックスに開始日と終了日を入力します。必ずチェックしてください。 。 スクリーンショットを参照してください:
日付8の間のドキュメント抽出レコード

3。 クリック Ok > OK。 そして、日付に一致する行が選択されました。 押す Ctrlキー+ C 行をコピーするには、空白のセルを選択してを押します Ctrlキー+ V 貼り付けるには、スクリーンショットを参照してください。
日付9の間のドキュメント抽出レコード

最高のオフィス生産性向上ツール

🤖 Kutools AI アシスタント: 以下に基づいてデータ分析に革命をもたらします。 インテリジェントな実行   |  コードを生成  |  カスタム数式の作成  |  データを分析してグラフを生成する  |  Kutools関数を呼び出す...
人気の機能: 重複を検索、強調表示、または識別する   |  空白行を削除する   |  データを失わずに列またはセルを結合する   |   数式なしのラウンド ...
スーパールックアップ: 複数の基準の VLookup    複数の値の VLookup  |   複数のシートにわたる VLookup   |   ファジールックアップ ....
詳細ドロップダウン リスト: ドロップダウンリストを素早く作成する   |  依存関係のドロップダウン リスト   |  複数選択のドロップダウンリスト ....
列マネージャー: 特定の数の列を追加する  |  列の移動  |  Toggle 非表示列の表示ステータス  |  範囲と列の比較 ...
注目の機能: グリッドフォーカス   |  デザインビュー   |   ビッグフォーミュラバー    ワークブックとシートマネージャー   |  リソースライブラリ (自動テキスト)   |  日付ピッカー   |  ワークシートを組み合わせる   |  セルの暗号化/復号化    リストごとにメールを送信する   |  スーパーフィルター   |   特殊フィルター (太字/斜体/取り消し線をフィルター...) ...
上位 15 のツールセット12 テキスト ツール (テキストを追加, 文字を削除する、...)   |   50+ チャート 種類 (ガントチャート、...)   |   40+ 実用的 (誕生日に基づいて年齢を計算する、...)   |   19 挿入 ツール (QRコードを挿入, パスから画像を挿入、...)   |   12 変換 ツール (数字から言葉へ, 通貨の換算、...)   |   7 マージ&スプリット ツール (高度な結合行, 分割セル、...)   |   ... もっと

Kutools for Excel で Excel スキルを強化し、これまでにない効率を体験してください。 Kutools for Excelは、生産性を向上させ、時間を節約するための300以上の高度な機能を提供します。  最も必要な機能を入手するにはここをクリックしてください...

説明


Officeタブは、タブ付きのインターフェイスをOfficeにもたらし、作​​業をはるかに簡単にします

  • Word、Excel、PowerPointでタブ付きの編集と読み取りを有効にする、パブリッシャー、アクセス、Visioおよびプロジェクト。
  • 新しいウィンドウではなく、同じウィンドウの新しいタブで複数のドキュメントを開いて作成します。
  • 生産性を 50% 向上させ、毎日何百回もマウス クリックを減らすことができます!
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