Issue in reading data from Excel

A

ASH

Hi All,
I have 3 excel files with me. say,Test.xlsx, saved.xls and
original.xls.

Here Test.xlsx has got reference to saved.xls and original.xls and
displays values from both files. But the cells referring to data from
Original.xls shows #N/A in Test.xlsx where as data from Saved.xls
shows the correct values. (I am using the formula: =HLOOKUP(A5,'D:
\Testing\[Original.xls]Output'!$A$1:$CQ$2,2,FALSE)

Here, saved.xls and original.xls has got same columns and same data,
but if i check the files size of both, they are different.
size of Saved.xls is 26 KB and the size of Original.xls file is 17
KB.

Now the interesting work around for this is, if i keep the file
original.xls open and then open Test.xlsx it will bring the expected
values just like saved.xls does.
Or if I just open original.xls and hit save (and close it) and then
open Test.xlsx it works fine. Also i noted that once i save
original.xls, it's file size increases to 26KB from 17KB

These files were generated programatically and I would like to know
why I am not getting values from Original.xls initially and how can I
fix this issue without doing the above mentioned workarounds.

Thank you
ANR
 
A

ASH

Hi All,
I have 3 excel files with me. say,Test.xlsx, saved.xls and
original.xls.

Here Test.xlsx has got reference to saved.xls and original.xls and
displays values from both files. But the cells referring to data from
Original.xls shows #N/A in Test.xlsx where as data from Saved.xls
shows the correct values. (I am using the formula: =HLOOKUP(A5,'D:
\Testing\[Original.xls]Output'!$A$1:$CQ$2,2,FALSE)

Here, saved.xls and original.xls has got same columns and same data,
but if i check the files size of both, they are different.
size of Saved.xls is 26 KB and the size of Original.xls file is 17
KB.

Now the interesting work around for this is, if i keep the file
original.xls open and then open Test.xlsx it will bring the expected
values just like saved.xls does.
Or if I just open original.xls and hit save (and close it) and then
open Test.xlsx it works fine. Also i noted that once i save
original.xls, it's file size increases to 26KB from 17KB

These files were generated programatically and I would like to know
why I am not getting values from Original.xls initially and how can I
fix this issue without doing the above mentioned workarounds.

Thank you
ANR
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top