ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Worksheet Functions (https://www.excelbanter.com/excel-worksheet-functions/)
-   -   Reference (https://www.excelbanter.com/excel-worksheet-functions/5311-reference.html)

starfighter61

Reference
 
Hi
I am using this formula to get value from other workbook
=INDIREKT("'[Franvaro" & E2 & "v" & K2 & C5 & ".xls]Sammandrag'!$B$201")

but lets say that workbook don´t exist
then i get a #REFERENCE in the cell
Is it possible to get a 0 instead

Frank Kabel

Hi
try
=IF(ISERROR(INDIRECT(...)),0,INDIRECT(...))

"starfighter61" wrote:

Hi
I am using this formula to get value from other workbook
=INDIREKT("'[Franvaro" & E2 & "v" & K2 & C5 & ".xls]Sammandrag'!$B$201")

but lets say that workbook don´t exist
then i get a #REFERENCE in the cell
Is it possible to get a 0 instead


Govind

Hi,

Use

=IF(ISERROR(INDIREKT("'[Franvaro" & E2 & "v" & K2 & C5 &
".xls]Sammandrag'!$B$201")),0,INDIREKT("'[Franvaro" & E2 & "v" & K2 & C5
& ".xls]Sammandrag'!$B$201"))

Btw, the formula has been spelt as "INDIREKT" instead of "INDIRECT".Is
that a different language version of excel or a typo error?

Regards

Govind


starfighter61 wrote:
Hi
I am using this formula to get value from other workbook
=INDIREKT("'[Franvaro" & E2 & "v" & K2 & C5 & ".xls]Sammandrag'!$B$201")

but lets say that workbook don´t exist
then i get a #REFERENCE in the cell
Is it possible to get a 0 instead



starfighter61

Thanks

"Frank Kabel" skrev:

Hi
try
=IF(ISERROR(INDIRECT(...)),0,INDIRECT(...))

"starfighter61" wrote:

Hi
I am using this formula to get value from other workbook
=INDIREKT("'[Franvaro" & E2 & "v" & K2 & C5 & ".xls]Sammandrag'!$B$201")

but lets say that workbook don´t exist
then i get a #REFERENCE in the cell
Is it possible to get a 0 instead



All times are GMT +1. The time now is 03:00 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com