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

ExcelでID番号から年齢を計算する方法は?

13桁の数字を含むID番号のリストがあり、最初の6つの数字が生年月日であるとします。 たとえば、ID番号9808020181286は、生年月日が1998/08/02であることを意味します。 Excelですばやく表示される次のスクリーンショットのように、ID番号から年齢を取得するにはどうすればよいですか?

ID1からのドキュメント年齢

式を使用してID番号から年齢を計算します


矢印青い右バブル 式を使用してID番号から年齢を計算します

ID番号から年齢を計算するには、次の式が役立ちます。 このようにしてください:

次の式を入力します。

=DATEDIF(DATE(IF(LEFT(A2,2)>TEXT(TODAY(),"YY"),"19"&LEFT(A2,2),"20"&LEFT(A2,2)),MID(A2,3,2),MID(A2,5,2)),TODAY(),"y") 年齢を計算する空白のセルに入力し、塗りつぶしハンドルをこの数式を適用するセルまでドラッグすると、ID番号から年齢が一度に計算されます。スクリーンショットを参照してください。

ID2からのドキュメント年齢

注意:

1.上記の式では、 A2 セルには、年齢を計算するためのID番号が含まれています。

2.上記の式では、年が現在の年よりも小さい場合は20と見なされ、年が現在の年よりも大きい場合は19と見なされます。たとえば、今年が2016の場合、ID番号 1209132310091の生年月日は 2012/09/13; ID番号 3902172309334の生年月日は 1939/02/17.

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

🤖 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 (9)
No ratings yet. Be the first to rate!
This comment was minimized by the moderator on the site
What if the person in born in 1912? Surely you cant say 2012.
This comment was minimized by the moderator on the site
Hello, Mthembu

Yes, if the year in ID number is less that current year it will be considered as 20, if year is greater than current year will be considered as 19.
For example, this year is 2022, ID number 1009132310091’s birth date is 2010/09/13, the ID number 6802172309334’s birth date is 1968/02/17.

Thank you!
This comment was minimized by the moderator on the site
I also have the similar issue. Is there a way to distinguish between such scenario?
This comment was minimized by the moderator on the site
I think you are missing the point. If a person was born in 1920 (102 years old) , their ID would start with 20. A child born in 2020 (2 years old) will also start with 20. How do you determine now if the person is 102 or 2 years old by looking at the first 2 digits ?
This comment was minimized by the moderator on the site
Esta fórmula no funciona con Excel en español... Necesito la fórmula en español!! please
This comment was minimized by the moderator on the site
Cuál es la formula en español???
This comment was minimized by the moderator on the site
U are so cool. Can get two ic for we
This comment was minimized by the moderator on the site
very cool, works
This comment was minimized by the moderator on the site
mierda en españon
There are no comments posted here yet
Please leave your comments in English
Posting as Guest
×
Rate this post:
0   Characters
Suggested Locations