如何在 OFFSET 函數中使用 CELL 函數? (How to use CELL function inside OFFSET function?)


問題描述

如何在 OFFSET 函數中使用 CELL 函數? (How to use CELL function inside OFFSET function?)

I am trying below formula:

OFFSET(CELL("address"), 0, ‑2, 1, 1)

Instead this works:

OFFSET($P$20, 0, ‑2, 1, 1)

I do not have the cell reference and so have to compute in formula itself. How to do it?

Thanks in advance!

Niraj

‑‑‑‑‑

參考解法

方法 1:

If you want to replace $P$20 by a string you compute, use

.... INDIRECT(function) ....

where function returns an A1‑style or R1C1‑style address (in the latter case you specify a second arg FALSE

(by Niraj NawanitMikeD)

參考文件

  1. How to use CELL function inside OFFSET function? (CC BY‑SA 3.0/4.0)

#excel #excel-formula






相關問題

Metode yang efisien untuk menghapus baris dalam spreadsheet (Efficient method of deleting rows in a spreadsheet)

Памылка дадання даты пры адніманні ад 0:00 (Dateadd error when subtracting from 0:00)

Nhấn OK trên cửa sổ cảnh báo bật lên qua VBA (Press OK on pop-up alert window via VBA)

使用 excel 2010 更新批處理文件中的變量 (use excel 2010 to update variables in batch file)

VBA - 根據標準匹配來自另一個工作表的數據 (VBA - Match Data from another Worksheet based on Criteria)

使用活動單元格查找範圍名稱 (Find Range Name Using Active Cell)

Excel vlookup 與地址 (Excel vlookup versus address)

檢查整行是否具有值 0 (Check if an entire row has value 0)

如何提取 DateTimeIndex 以在新列中使用? (How do I extract a DateTimeIndex for use in a new column?)

如何啟用靜態時間但仍有動態日期? (How do I enable a static time but still have dynamic date?)

VBA Selenium Chrome:如何更改鏈接 (VBA Selenium Chrome : How to Change Link)

使用切片器時 Excel 顏色變化 (Excel Color Change When Using Slicer)







留言討論