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

開いていない/閉じているExcelブックファイルの値を参照またはリンクするにはどうすればよいですか?

通常、他のブックからセル値を参照する場合は、最初にブックを開く必要があります。 閉じたワークブックからセル値を直接参照するのはどうですか? この記事では、開いていないブックファイルの特定のワークシートからセル値を参照する方法を説明します。

式を使用して開いていない/閉じたExcelファイルからの参照値
Kutools for Excelを使用して、開いていない/閉じているExcelファイルから特定のワークシートのすべてのデータを挿入します


式を使用して開いていない/閉じたExcelファイルからの参照値

testという名前の閉じたブックがコンピューターのパスE:\ Excel file \にあり、この閉じたブックのSheet2からセルA2の値を参照するとします。 次のようにしてください。

1.空白のセルを選択して参照セル値を配置し、数式バーに数式を入力して、を押します。 入力します キー。 スクリーンショットを参照してください:

=INDEX('E:\Excel file\[test.xlsx]Sheet2'!A:A,2,1)

ノート:

1)。 式では、 E:\ Excelファイル\ 未開封のブックの完全なファイルパスです。 テスト.xlsx はワークブックの名前、Sheet2は参照する必要のあるセル値を含むシート名、A:A、2,1はセルA2が閉じたワークブックで参照されることを意味します。 必要に応じて変更できます。
2)。 参照するワークシートを手動で選択する場合は、以下の式を適用してください。 式を適用した後、 シートを選択 ダイアログボックスが表示されます。ワークシートを選択して、[OK]ボタンをクリックしてください。 次に、このワークシートの特定のセル値がすぐに参照されます。

=INDEX('E:\Excel file\[test.xlsx]sheetname'!A:A,2,1)


Kutools for Excelを使用して、開いていない/閉じているExcelファイルから特定のワークシートのすべてのデータを挿入します

閉じたExcelファイルからワークシートのコンテンツ全体を挿入する場合は、ここで カーソル位置にファイルを挿入 の有用性 Kutools for Excel。 それを行うには、以下の手順に従ってください。

申請する前に Kutools for Excelについては 最初にダウンロードしてインストールします.

1.参照するワークシートを開始する空白のセルを選択し、をクリックします クツールズプラス > インポート・エクスポート > カーソル位置にファイルを挿入

2。 の中に カーソル位置にファイルを挿入 ダイアログボックスで ブラウズ

3。 の中に セルカーソル位置に挿入するファイルを選択します ダイアログボックスで、参照する閉じたブックを見つけて選択し、を押します。 Open ボタン。 スクリーンショットを参照してください:

4.挿入に戻ります カーソル位置のファイル ダイアログボックスでは、いずれかをチェックできます 値のみ(数式なし) & フォーマットを転送しないでください 必要に応じてオプションをクリックし、 OK ボタン。 次のポップアップで ワークシートを選択する ダイアログボックスでワークシートを指定し、 OK ボタン。 スクリーンショットを参照してください:

これで、指定した未開封のブックの選択したワークシートのコンテンツ全体が現在のワークシートで参照されます。

Note:未開封のブックから値を参照するだけでなく、このユーティリティを使用して未開封のTxtまたはCSVファイルから値を参照することもできます。

  このユーティリティの無料トライアル(30日)が必要な場合は、 クリックしてダウンロードしてください、次に、上記の手順に従って操作を適用します。


関連記事:

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

🤖 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
The Kutools solution to this is useless. It inserts the entire file and not a range or specific cells. What a waste. If Kutools wanted to make a useful tool, they could write something to overcome the Index(Indirect limitation, allowing for dynamic content sourcing without writing VBA
This comment was minimized by the moderator on the site
Hi CJ,
Thank you for your advice.
This comment was minimized by the moderator on the site
I have a worksheet for logging shipments. I want to retrieve the freight costs captured on shipping documents in different workbooks without VBA, whether the workbooks are opened or closed, and have the results returned to my shipping log per the respective shipment. I've manually typed the following path using the "Index" function and it works.

Ex #1: =IF(AND($G5>0,$I5>0,INDEX('V:\Operations\Shipping Log\Argentina\CY 2018\[AR18001_Order# 123456_Customer Name.xlsx]Shipping Document'!$AA:$AA,2,1),0)

The challenge I have is the country, calendar year, log number, order number and customer name are subject to change per shipment. To account for this I used the "Concatenate" function to build the path and replace the manually input information referenced above based on certain fields the user populates in the Shipping Log. First, I tested the "Concatenate" function to build the path and it worked for the consecutive rows. Next, I combined the "Concatenate" function with the "Index" function (to access the closed workbook) and received the text result of the path instead of the value of the desired cell. What am I missing?


Ex #2:=IF(AND($G5>0,$I5>0,INDEX(CONCATENATE("'V:\Operations\Shipping Log\",$C5,"\","CY 20",SUM($JK$2:$NG$2),"\","[",$D5,"_",$I5,"_",$G5,".xlsx]Shipping Document'!$AA:AA,2,1),0)"),"")

$C5 retrieves the country

$JK$2:$NG$2 retrieves the suffix of the calendar year

$D5 retrieves the shipping log number

$I5 retrieves the order number

$G5 retrieves the customer name

AA2 houses the desired value


I also tried "VLOOKUP" function instead of "Index" but received a "#VALUE!" error message.


Ex #3: =IF(AND($G5>0,$I5>0,VLOOKUP("Freight",(CONCATENATE("'V:\Operations\Shipping Log\",$C5,"\","CY 20",SUM($JK$2:$NG$2),"\","[",$D5,"_",$I5,"_",$G5,".xlsx]Shipping Document'!$AA:$AA"),2,FALSE),"")
This comment was minimized by the moderator on the site
Gray, I think I found a solution for you. Please contact me if you are still looking: dons(at )premierconstructionspreadsheets(dot )com
This comment was minimized by the moderator on the site
Same thing happened to me. Exactly the same. Did you find a solution?
This comment was minimized by the moderator on the site
Same thing happened to me. Exactly the same. Did you find a solution?
This comment was minimized by the moderator on the site
Dear Gray,
Do you mind uploading your related workbooks?
There are no comments posted here yet
Please leave your comments in English
Posting as Guest
×
Rate this post:
0   Characters
Suggested Locations