=IF(ISERROR(VLOOKUP($B6,'09.12.11'!$B$3:$D$17,3,0)),0,(VLOOKUP($B6,'09.12.11'!$B$3:$D$17,3,0)))
Hi there,
Please help if you can! And accept my apologies if this has already been posted but am pretty new on this forum.
I have a file wirth one main tab and other data tabs that I add daily.
On my main tab, all I do is copying the formula of the last column and I need to change the tab name in the formula, '09.12.11' by '12.12.11' for example.
Precision, all my tabs are in the same file next to each other!!
But if I change the tab name, manually or using the find&replace, Excel start to get crazy and wants to open other files!
I don't understand what the problem is, why make it complicated when it is simple?
Is there an option I need to change if my Excel?
Many thanks!
Mayya
Try putting the date that corresponds to the tab you want in a separate cell, say A1.
then change formula to:
Then all you need to do is update the date cell, A1 to have the formula look at corresponding tab.=IF(ISERROR(VLOOKUP($B6,INDIRECT("'"&TEXT(A1,"dd.mm.yy")&"'!$B$3:$D$17"),3,0)),0,(VLOOKUP($B6,INDIRECT("'"&TEXT(A1,"dd.mm.yy")&"'!$B$3:$D$17"),3,0)))
BTW, if you have Excel 2007, you can shorten it to
=IFERROR(VLOOKUP($B6,INDIRECT("'"&TEXT(A1,"dd.mm.yy")&"'!$B$3:$D$17"),3,0),0)
Microsoft MVP - Excel
Where there is a will there are many ways. Pick One!
Please read the Forum Rules
If you are happy with the results, please add to the contributor's reputation by clicking the reputation icon (star icon) below
Please also mark the thread as Solved once it is solved. Check the FAQ's to see how.
Preferred Charities: Lupus Canada and Sick Kids Foundation.
Feel Free to Donate if you want to, for the assistance you received today.
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks