Excelで定義された名前を数式内の条件として指定してみる

  • 2022年7月31日
  • 2022年7月29日
  • Tips

数式の条件に名前を使う場合、検索してみると大概『範囲』指定となり、式の中での指定が有効にならない場合が多いようです。

今回、『COUNTIF文の条件』として使ってみたく、色々試してみたところうまく行ったので、自分用メモとして遺しておきます。

解法

★条件式にCONCATENATE文で比較演算子と定義された名前を繋いで記載する

普通に範囲名を書いてしまう(『>=収容人数』等としてしまう)と、思ったような結果が得られません。

以下の図のように、

+COUNTIF(検索範囲,CONCATENATE("条件式",定義名))

としてみてください。

以上です。

This website stores cookies on your computer. These cookies are used to provide a more personalized experience and to track your whereabouts around our website in compliance with the European General Data Protection Regulation. If you decide to to opt-out of any future tracking, a cookie will be setup in your browser to remember this choice for one year.

Accept or Deny