Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
私はコスト計算機を作成していますが、値の範囲に基づいて変換された値を表示するセルが必要です。例: 値が > 100mb の場合、セルに $25.00 を表示し、> 200mb の場合、セルに $50.00 を表示します。
A1セルに mb 値があると仮定すると、次のようなものはどうですか
A1
=FLOOR((A1 - 1) / 100, 1) * 25
それはあなたに与えるでしょう(あなたの要件とまったく同じように> 100)
A1 B1 -------- 99 0 100 0 101 25 200 25 201 50
=FLOOR(A1 / 100, 1) * 25
それはあなたを与えるでしょう(> = 100)
A1 B1 -------- 99 0 100 25 101 25 200 50 201 50