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

Excelで数式を結果または値に置き換える方法は?

数式をセル内の計算値に置き換える必要がある場合は、もちろん、手動でXNUMXつずつ置き換えることができます。 ただし、多くのものを交換する場合は、多くの時間を浪費します。 簡単な方法はありますか? はい、次のトリッキーな方法は、選択範囲内の数式を計算値にすばやく簡単に置き換えるのに役立ちます。

たとえば、さまざまな数式があり、次のスクリーンショットに示すように、数式をセルの値に置き換える必要があります。


矢印青い右バブル [形式を選択して貼り付け]コマンドを使用して、数式を結果または値に置き換えます

MicrosoftExcelの 貼り付け コマンドを使用すると、すべての数式を削除できますが、計算値はセルに残ります。

Step1:使用する範囲を選択します。

Step2:を押す Ctrlキー + C 選択したセルをコピーするためのキー。

Step3:選択したセルを右クリックし、 値を貼り付け 下のボタン 貼り付けオプション.
doc-convert-formulas-to-values3

これで、選択範囲内のすべての数式が一度に計算値に置き換えられました。


矢印青い右バブル 数式を結果に、値をVBAに置き換えます

Microsoft Excelの経験豊富なユーザーにとって、VBAマクロは、数式を計算値にすばやく置き換えるためのもうXNUMXつの良い選択です。

Step1:を長押しします 他の + F11 Excelでキーを押すと、 アプリケーション向け Microsoft Visual Basic 窓。

Step2:クリック インセット > モジュール、モジュールウィンドウに次のマクロを貼り付けます。

数式を計算値に置き換えるためのVBA:

Sub DisplayedToActual()
'Updateby20131126
Dim Rng As Range
Dim WorkRng As Range
On Error Resume Next
xTitleId = "KutoolsforExcel"
Set WorkRng = Application.Selection
Set WorkRng = Application.InputBox("Range", xTitleId, WorkRng.Address, Type:=8)
Application.ScreenUpdating = False
For Each Rng In WorkRng
    Rng.Value = Rng.Text
Next
Application.ScreenUpdating = True
End Sub

Step3:を押す F5 このマクロを実行するためのキー。 実際の値に変換する範囲を選択するためのダイアログが表示されます。スクリーンショットを参照してください。

Step4: OK。 次のような結果が表示されます。


矢印青い右バブル数式を結果または値に置き換えるKutoolsfor Excel

あなたが持っている場合 Kutools for Excel、 その 実際に表示 ツールを使用すると、選択したセルの値または数式をフォーマットされた方法にすばやく変換できます。

Kutools for Excel, 以上で 300 便利な機能は、あなたの仕事をより簡単にします。 

無料インストール Kutools for Excel、以下のようにしてください:

Step1:使用する範囲を選択します。

Step2: クリック クツール > 実際に、スクリーンショットを参照してください:

実際のドキュメント1 
 下向き矢印
 実際のドキュメント2


次に、選択した式が表示された値に変換されます。

この機能の詳細については、次のWebサイトをご覧ください。 実際に表示.

矢印青い右バブル実際に-数式を表示値に置き換えます



矢印青い右バブル Excel用のKutoolsによって数式をテキストに置き換えます

数式をテキストに置き換えたい場合は、 Kutools for Excelさん 数式をTexに変換する数式をテキストに一度に変換するユーティリティ。

インストールした後 Kutools for Excel、以下のようにしてください:(今すぐExcel用のKutoolsを無料でダウンロードしてください!)

数式を選択して、 クツール > コンテンツ > 数式をテキストに変換する。 スクリーンショットを参照してください:
docは数式をテキストに置き換えます3

dockutoolsは数式をテキスト2に変換します

次に、数式がテキストに変換されます。数式に戻す場合は、をクリックするだけです。 クツール > コンテンツ > テキストを数式に変換する.

矢印青い右バブル 数式をテキストに置き換える



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

🤖 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 (7)
No ratings yet. Be the first to rate!
This comment was minimized by the moderator on the site
Hi, Will it be possible to get a Macro that does what the above macro does but for the entire workbook all at once? would be of great help if you can write a macro that can.
This comment was minimized by the moderator on the site
Bah.. nothing new. Already knew all of hose tricks. In fact, I've been using paste special for quite a while. Unfortunately none of those options works for me. I would like to just set my spreadsheets on auto and let Excel do the trick on its own. I was looking to see if the folks at Microsoft have finally left the stone age by coming up with something more creative, more automated than paste special and VBA. Something that does not require cell selection or any other intervention by the user. For instance, it would be handy if there was a way to allow Excel to automatically kill the equations that are no longer needed but without eliminating the values or cell contents. That would be truly awesome. But I guess such a trick is not out of the cave yet so I'll have to live with 'paste special>values' option until we leave Excel prehistory behind.
This comment was minimized by the moderator on the site
Hello Friend,

Can you please make 2 vb code to convert all the linked formula to value
embedded within the formula. And the next to convert to formula again back to
normal with linked path. Like pack unpack option.

I make report in excel file which is linked to various other excel file and
then I have send this report to management but I don't want this to paste
special everytime. I just want to pack the formula and then unpack it when I
need to work on the same file.

I hope you understand my need.

Regards

Saysha
This comment was minimized by the moderator on the site
Can it be possible to apply this macro to specific formula in the range. i.e If we want to convert only vlookup formula to values but not sum formula in the selected range.
This comment was minimized by the moderator on the site
Please contact me at We welcome all questions, feedback and bug reports. If you're having an issue, we usually need the following information: A brief description of the issue and how it can be replicated (if applicable). Your Operating system (Windows 8, Windows 7, etc) and the version information of your Microsoft Office. Screenshots that illustrate the problem
This comment was minimized by the moderator on the site
I want to know or to apply script shown in your example but unable to understand about ---- "how to numbering in excel column or row having some cell single and some are merged". Please help me with pdf tutorials with complete explanation or how can i use your tool with complete explanation. Thanks Rakesh Upreti
This comment was minimized by the moderator on the site
THIS IS A LIFE SAVER... THANK YOU!!
There are no comments posted here yet
Please leave your comments in English
Posting as Guest
×
Rate this post:
0   Characters
Suggested Locations