1
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

【Power Apps】Text関数とは、使い方

Posted at

Text関数の概要と活用例

数値フォーマットや日付フォーマットの活用例を含むText関数の解説です。

この記事は Microsoft Power Apps Advent Calendar 2024 シリーズ3 12月8日の記事です。

関数説明・構文

数値や日付/時刻の値を、指定した形式の文字列に変換します。

公式より引用

Text(値, 形式 [, 言語])

使い方

数値フォーマット

数値を通貨や割合など、様々な形式で表示できます。0埋め(ゼロパディング)や3桁ごとにカンマ区切りして見やすい形式にできます。

image.png
image.png
image.png

数値フォーマットで使用できる主な書式指定文字:

0: 数値がない場合は0を表示
#: 数値がない場合は表示しない
.: 小数点
,: 桁区切り

日付フォーマット

日付や日時の値を年月日や曜日の表示形式をフォーマットできます。

image.png
image.png
image.png

日付フォーマットで使用できる主な書式指定文字:

d: 日(1-31)
dd: 日(01-31)
m: 月(1-12)
mm: 月(01-12)
mmm: 月(Jan-Dec)
mmmm: 月(January-December)
yy: 年(00-99)
yyyy: 年(2000-2099)
h: 時(1-12)
hh: 時(01-12)
n: 分(0-59)
nn: 分(00-59)
s: 秒(0-59)
ss: 秒(00-59)

元記事

1
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?