+ Reply to Thread
Results 1 to 13 of 13

changed the name of tabs and formulas wont work anymore?

  1. #1
    Registered User
    Join Date
    07-21-2006
    Location
    Hull, England
    MS-Off Ver
    2007
    Posts
    99

    changed the name of tabs and formulas wont work anymore?

    Hi all,
    I have the following formula and it won't work any more.
    =SUMIFS(INDIRECT("'"&$F$4&"'!G:G"),INDIRECT("'"&$F$4&"'!C:C"),$E13,INDIRECT("'"&$F$4&"'!A:A"),$E$4)
    all I did was change the names of the tabs
    Can anyone help
    Thanks
    loopiloo

  2. #2
    Valued Forum Contributor Naveed Raza's Avatar
    Join Date
    11-04-2012
    Location
    India, Hyderabad
    MS-Off Ver
    Excel, Access 2007/2010
    Posts
    1,338

    Re: changed the name of tabs and formulas wont work anymore?

    sorry to say I unable to get your query, could u plz explain what exactly u want in output
    Thanks - Naveed
    -----------------------------
    If the suggestion helps you, then Click * to Add Reputation
    To Attach File: Go Advanced>>Manage Attachments>>Add Files (In Top Right Corner)>>SelectFiles>>.........Locate Your File(s)>>Upload Files>>Done (In Bottom Right)
    1. Use [code] code tags [\code]. It keeps posts clean, easy-to-read, and maintains VBA formatting.
    2. If you are happy with a solution to your problem, mark the thread as [SOLVED] using the tools at the top.

  3. #3
    Valued Forum Contributor
    Join Date
    10-10-2012
    Location
    New York
    MS-Off Ver
    Excel 2007/2010
    Posts
    337

    Re: changed the name of tabs and formulas wont work anymore?

    In using the Indirect function, you are referencing the value/string in cell $F$4 (in your example) of the current tab/worksheet. If the value in cell F4 is not the name of a tab/worksheet in your workbook, you will receive an error.
    Don't just use the answers provided for you. Try to understand how it works by reverse engineering or asking about it.

    Please mark the thread as [SOLVED] (Thread Tools->Mark thread as Solved) when answered.
    If you're happy with an answer given, please click the * under the person's name to boost their reputation.

  4. #4
    Forum Expert Tony Valko's Avatar
    Join Date
    12-31-2011
    Location
    Pittsburgh
    MS-Off Ver
    2002, 2007:2013
    Posts
    18,890

    Re: changed the name of tabs and formulas wont work anymore?

    What does "won't work any more" mean?

    Do you get an error? An incorrect result? Something else?

    If you changed the sheet (tab) name did you also make the appropriate change to cell F4?
    Biff
    Microsoft MVP Excel
    Keep It Simple Stupid

    Let's Go Pens. We Want The Cup.

  5. #5
    Registered User
    Join Date
    07-21-2006
    Location
    Hull, England
    MS-Off Ver
    2007
    Posts
    99

    Re: changed the name of tabs and formulas wont work anymore?

    Thanks for reply's and sorry for delay in getting back to you...
    I really haven't changed the names of the tabs I simply moved them around
    ie names of tabs before change D11, D12, D13, D14, D15
    names of tabs after change D12, D13, D14, D15, D16
    Got me stumped why this should stop the formula from working?
    Any help would be great
    Thanks
    loopiloo

  6. #6
    Registered User
    Join Date
    07-21-2006
    Location
    Hull, England
    MS-Off Ver
    2007
    Posts
    99

    Re: changed the name of tabs and formulas wont work anymore?

    Thanks for reply's and sorry for delay in getting back to you...
    I really haven't changed the names of the tabs I simply moved them around
    ie names of tabs before change D11, D12, D13, D14, D15
    names of tabs after change D12, D13, D14, D15, D16
    Got me stumped why this should stop the formula from working?
    Any help would be great
    Thanks
    loopiloo
    PS: i change F4 value relating to the sheet i want the formula to take data
    Last edited by loopiloo; 05-27-2015 at 04:54 PM.

  7. #7
    Forum Expert Tony Valko's Avatar
    Join Date
    12-31-2011
    Location
    Pittsburgh
    MS-Off Ver
    2002, 2007:2013
    Posts
    18,890

    Re: changed the name of tabs and formulas wont work anymore?

    Quote Originally Posted by loopiloo View Post
    Got me stumped why this should stop the formula from working?
    You still haven't explained what that means.

    Quote Originally Posted by Tony Valko View Post
    What does "won't work any more" mean?

    Do you get an error? An incorrect result? Something else?
    You may need to post the file (or a sample file) that demonstrates the problem you're having.

  8. #8
    Registered User
    Join Date
    07-21-2006
    Location
    Hull, England
    MS-Off Ver
    2007
    Posts
    99

    Re: changed the name of tabs and formulas wont work anymore?

    No it does not show any error code, it just shows 0, as though there is no data to collect.
    The other thing is that if I change the tab names back to what they were originally it works just fine

  9. #9
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    53,048

    Re: changed the name of tabs and formulas wont work anymore?

    Changing the order/sequence of the sheets, should not affect that formula, please upload a small (clean) sample workbook (not a pic) of what you are working with, and what your expected outcome would look like.
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools
    3. Click on the star if you think someone helped you

    Regards
    Ford

  10. #10
    Registered User
    Join Date
    07-21-2006
    Location
    Hull, England
    MS-Off Ver
    2007
    Posts
    99

    Re: changed the name of tabs and formulas wont work anymore?

    Attached is the example file...
    I change the number in E4 which will give the correct reference matching the tab name (you will see when you open the example)
    I tried changing the tab name from D12 to D13 in the attached file and again the same problem of it not displaying any data
    Hope you can help me
    Attached Files Attached Files

  11. #11
    Forum Expert Tony Valko's Avatar
    Join Date
    12-31-2011
    Location
    Pittsburgh
    MS-Off Ver
    2002, 2007:2013
    Posts
    18,890

    Re: changed the name of tabs and formulas wont work anymore?

    The problem is due to cell F4 not automatically updating when you change the sheet name.

    If you change cell E4 then cell F4 updates with the correct sheet name.

    What you could do is on the D(whatever) sheets enter a formula that returns the sheet name then refer to that cell in your formula.

    For example, this formula entered on sheet D12 in cell Z1:

    =MID(CELL("filename",A1),FIND("]",CELL("filename",A1))+1,31)

    Then, on sheet DYear enter this formula in F4:

    ='D12'!Z1

    Then your other formulas will work.

  12. #12
    Registered User
    Join Date
    07-21-2006
    Location
    Hull, England
    MS-Off Ver
    2007
    Posts
    99

    Re: changed the name of tabs and formulas wont work anymore?

    Ok seems to work fine with that... thanks for your help...

  13. #13
    Forum Expert Tony Valko's Avatar
    Join Date
    12-31-2011
    Location
    Pittsburgh
    MS-Off Ver
    2002, 2007:2013
    Posts
    18,890

    Re: changed the name of tabs and formulas wont work anymore?

    You're welcome. Thanks for the feedback!

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Can't see my tabs anymore in excel
    By NikkiLi in forum Excel General
    Replies: 25
    Last Post: 08-19-2015, 05:18 PM
  2. Excel: I can't see the worksheet tabs on my screen anymore. HELP!
    By Jon Thompson in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 04-28-2014, 11:50 AM
  3. Replies: 3
    Last Post: 08-25-2009, 03:41 AM
  4. Formulas don't work anymore (SP2)
    By spoefi in forum Excel General
    Replies: 2
    Last Post: 06-07-2007, 09:35 AM
  5. formulas don't work anymore
    By john in forum Excel General
    Replies: 3
    Last Post: 11-18-2005, 12:15 PM

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.6.0 RC 1