excel-indirect

excel function INDIRECT()

ぐ巨炮叔叔 提交于 2019-12-11 13:03:51
问题 I have this excel function INDIRECT($D$2&"!A:A") which returns me a real number. What I don't get is the "!A:A". $D$2& refers to worksheet name, so what kind of mathematical formula does it do to the column A of this worksheet ? 回答1: The formula A:A returns the value in column A that's on the same row as the formula. So, if your formula is in B6 , then INDIRECT($D$2&"!A:A") will return A6 from the sheet referenced in D2 来源: https://stackoverflow.com/questions/18584417/excel-function-indirect

Dynamic INDIRECT formula with range

流过昼夜 提交于 2019-12-11 03:32:31
问题 I have some dynamic input, in my case, the name of the month in cell I25. Based on the month the function in cell H32 should reference a sheet with the name of the month and cell A18 within that sheet. Now this I can handle and have made it possible through the INDIRECT function. The issue I'm having is with dynamic range. For example, I would like cell H33 to reference cell A19 within the worksheet "February". The closest I got to it was =INDIRECT($I$25"&"!A18:A200") . And it seems to be

Is it possible to use Excel functions to evaluate the result of a function?

笑着哭i 提交于 2019-12-08 09:50:22
问题 I have a formula in I2 : = "=" & "'" & $H2 & $I2 & E2 & "'!" & "$C$2" It combines the directory, filename, sheet name, and cell location. Now I'd like to evaluate the result of that formula in J2 . Is it possible to do so without VBA or with just a bit of VBA? I need to be able to fill down I2 to I1000 and I personally prefer a non-VBA approach. For example, let's say the result of I2 is: ='R:\20180220\[Test.xlsb]'!$C$2 Is there a way to actually show the value of that cell in J2 ? Note that

Using “INDIRECT” function in the “SUMPRODUCT” formula for True/False Cell Reference

爷,独闯天下 提交于 2019-12-02 18:51:47
问题 This is the formula that I am currently using: =SUMPRODUCT((INDIRECT("A2"):INDIRECT("A"&(ROW()-1))=A359)*1) It works great, but I would like to use this instead: =SUMPRODUCT((INDIRECT("A2"):INDIRECT("A"&(ROW()-1))=INDIRECT("A"&(ROW())))*1) Unfortunately I get a #VALUE! . What am I doing wrong? Both INDIRECT("A"&ROW(())) and A359 return the same value, so I'm not sure why this won't work. The reason I am not using a simple COUNTIF function is because I stripped my formula of all unnecessary

Using “INDIRECT” function in the “SUMPRODUCT” formula for True/False Cell Reference

荒凉一梦 提交于 2019-12-02 09:45:26
This is the formula that I am currently using: =SUMPRODUCT((INDIRECT("A2"):INDIRECT("A"&(ROW()-1))=A359)*1) It works great, but I would like to use this instead: =SUMPRODUCT((INDIRECT("A2"):INDIRECT("A"&(ROW()-1))=INDIRECT("A"&(ROW())))*1) Unfortunately I get a #VALUE! . What am I doing wrong? Both INDIRECT("A"&ROW(())) and A359 return the same value, so I'm not sure why this won't work. The reason I am not using a simple COUNTIF function is because I stripped my formula of all unnecessary components and only left the part that I am having trouble with (i.e. I need to use the SUMPRODUCT

How to code Excel VBA equivalent of INDIRECT function?

允我心安 提交于 2019-11-29 14:26:02
I have many uses of the INDIRECT function in my workbook, and it is causing performance issues. I need to replace them with something that will give me the same results. All the INDIRECTS recalculate anytime anything is changed, causing the workbook to lag. I was wondering if there is a way to code INDIRECT in VBA without actually using the INDIRECT function, and take away the volatility of the function in the code. =INDIRECT("'" & $AC$9 & "'!" & AC26) This is an example. I need to remove INDIRECT but get the same results for this cell. Is there a way to accomplish this in VBA? You can try

How to code Excel VBA equivalent of INDIRECT function?

走远了吗. 提交于 2019-11-28 08:57:18
问题 I have many uses of the INDIRECT function in my workbook, and it is causing performance issues. I need to replace them with something that will give me the same results. All the INDIRECTS recalculate anytime anything is changed, causing the workbook to lag. I was wondering if there is a way to code INDIRECT in VBA without actually using the INDIRECT function, and take away the volatility of the function in the code. =INDIRECT("'" & $AC$9 & "'!" & AC26) This is an example. I need to remove

Dynamic chart range using INDIRECT: That function is not valid (despite range highlighted)

邮差的信 提交于 2019-11-26 22:11:02
I'm trying to create a chart with a range built dynamically using the INDIRECT function. Excel does recognize the range I am creating using INDIRECT as it highlights the corresponding range on the sheet: However when saving the chart, I get an error message saying the function is not valid: Does anybody know what the problem is / how to create a dynamic chart range from a specific start to specific end point? PS: You can download the above spreadsheet here . The formula I was using: =INDIRECT("sheet!"&E2&":"&E3) Mine is similar to Sean's excellent answer, but allows a start and end day. First

Dynamic chart range using INDIRECT: That function is not valid (despite range highlighted)

情到浓时终转凉″ 提交于 2019-11-26 08:13:03
问题 I\'m trying to create a chart with a range built dynamically using the INDIRECT function. Excel does recognize the range I am creating using INDIRECT as it highlights the corresponding range on the sheet: However when saving the chart, I get an error message saying the function is not valid: Does anybody know what the problem is / how to create a dynamic chart range from a specific start to specific end point? PS: You can download the above spreadsheet here. The formula I was using: =INDIRECT