• Hi All

    Please note that at the Chandoo.org Forums there is Zero Tolerance to Spam

    Post Spam and you Will Be Deleted as a User

    Hui...

  • When starting a new post, to receive a quicker and more targeted answer, Please include a sample file in the initial post.

Indirect formula

Rodrigues

Member
All
I'm using below formula on A & B 5 cells:
='[Prod Log Days 161115.xls]A - M'!A4 and does work fine;
I'm trying to use INDIRECT on cell A4 but doesn't work.
Can someone help please?
Thanks
R
 

Attachments

Hi Rodrigues ,

The following works , but it is cumbersome to use this construct since the address has to be manually entered for every cell.

=INDIRECT("'" & BasePath & "[Prod Log Days " & CurrentDate & ".xls]A - M'!$B$4")

How can you use INDIRECT on A4 , since A4 contains a value ?

Or do you want to lookup the value in A4 in the other file ? If so , then the formula will need to be just a VLOOKUP , as in :

=IFERROR(VLOOKUP(A5,INDIRECT("'" & BasePath & "[Prod Log Days " & CurrentDate & ".xls]A - M'!$A$4:$B$6"),2,FALSE),0)

Narayan
 
Narayan
On Book1 Columns A & B is a copy of columns A & B from Prod Log Days 161115, then I have others formulas on other cells (book1) looking at what is displaying on book1 from cells A22 to B1000 and extract what \I need. So column A has values and column B has alphanumeric.
The first formula "indirect" does work, it's hard as I have to change the cell ref one by one, but hopefully it will keep the formulas for each cell if saved a s a master.
Do you have/know any other way to look at Prod Log Days copy columns A and B and past them onto book1 using defined names?
Thanks for your help.
 
I'd do something like following. Assuming data from previous date/sheets don't change.

Use formula like below to get data from closed workbook.
=IF('C:\Yourpath\[filename.xslx]Sheetname'!A4="","END",'C:\Yourpath\[filename.xslx]Sheetname'!A4)
Copy down until you see blank (IE."END").

Once data is pulled, paste over all formula as value, with exception of the "END" row at bottom.

Next day, just use Ctrl+F and change the blank row's formula and copy down.
 
Thanks Chihiro, the problem is that, date changes daily, that's why I'm using define name to make it easier. Thanks anyway.
 
Back
Top