+ Reply to Thread
Results 1 to 2 of 2

Thread: Replace Tab in formula - Excel does not find new tab and start opening files!!

  1. #1
    Registered User
    Join Date
    12-13-2011
    Location
    London
    MS-Off Ver
    Excel 2007
    Posts
    12

    Replace Tab in formula - Excel does not find new tab and start opening files!!

    =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

  2. #2
    Forum Guru NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    32,636

    Re: Replace Tab in formula - Excel does not find new tab and start opening files!!

    Try putting the date that corresponds to the tab you want in a separate cell, say A1.

    then change formula to:

    =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)))
    Then all you need to do is update the date cell, A1 to have the formula look at corresponding tab.

    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.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.2.0