0
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?

More than 1 year has passed since last update.

【VBA】Format関数とNumberFormat関数の違いとは

Last updated at Posted at 2023-09-30

以外に気づいていないかもしれません。
VBAの関数の違い。それはFormat関数とNumberFormat関数です。
プログラミング言語やソフトウェアによって異なるかもしれませんが、
一般的な概念に基づいて以下のような違いがあります。

用途:

Format関数: 通常、文字列の書式設定に使用されます。日付や数値などのデータを指定された形式に整形するのに使われます。例えば、日付を「年-月-日」の形式に整形する場合に使えます。
NumberFormat関数: 通常、数値の書式設定に使用されます。数値を指定された形式に整形し、小数点の桁数や千の位区切りなどを設定するのに使われます。

使い方を間違うと、プログラムは動きません
注意が必要です

0
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
0
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?