+ Reply to Thread
Results 1 to 3 of 3

How to change the Tab reference in a forumla multiple times

  1. #1
    Registered User
    Join Date
    12-24-2015
    Location
    Ottawa, Canada
    MS-Off Ver
    10
    Posts
    2

    How to change the Tab reference in a forumla multiple times

    Hi,

    I am NEWBIE so please excuse my ignorance. I have searched the form for this issue and was only able to fine one reference and that was not very clear.

    http://www.excelforum.com/excel-gene...t-numbers.html


    I am trying to change the "#MN0001" to #MN0002, #MN0003, #MN0004.... etc. by dragging the formula I have to change this 48 times and in 8 different tabs! so if there is a formula that can help me do that It would be great.

    Here is my current formula: =IF(OR(ISBLANK('#MN0001'!$B$6)), "", '#MN0001'!$B$6)

    So if can just change the '#MN0001' to '#MN0002' (twice in the formula as stated above) that would be very very very helpful

    Please help !!! and Marry Christmas and Happy Holidays to all

  2. #2
    Forum Expert ben_hensel's Avatar
    Join Date
    01-26-2012
    Location
    Northeast USA
    MS-Off Ver
    Office 365
    Posts
    2,043

    Re: How to change the Tab reference in a forumla multiple times

    Can you just mass-replace with Replace (CTRL+H)?

    If you want it draggable I think you need something like this:

    Please Login or Register  to view this content.
    (I removed the superfluous OR statement)

    How that works is, it concatenates three strings together:
    '#MN
    TEXT( ROW(A1), "0000")
    '!B6

    Where the middle line is the number of row A1 (so, it's 1) and because it's a relative reference it will pull down to A2, A3, etc.
    Meanwhile, the TEXT function forces the format to be a four-digit number with leading zeros:
    0001, 0002, ... , 0011, etc.

    Then INDIRECT tells excel to read that directly as a positional reference, so it will go look for cell B6 on sheet #MN0001 or whatever.
    Click the [* Add Reputation] Button to thank people for help!
    Post Attachment: Click [Go Advanced] under the reply box; then click [Manage Attachments] to launch the attachments dialogue.
    Mark Thread Solved: Go to the top of the first post; Select [Thread Tools] dropdown; Pick the [Mark thread as Solved] option.

  3. #3
    Registered User
    Join Date
    12-24-2015
    Location
    Ottawa, Canada
    MS-Off Ver
    10
    Posts
    2

    Re: How to change the Tab reference in a forumla multiple times

    Thanks a lot. Much appreciated sir.

+ 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. [SOLVED] Need to change a forumla to look at multiple columns against a drop down selection.
    By john dalton in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 04-25-2014, 09:05 AM
  2. [SOLVED] VBA - Compare and replace multiple times based on matched reference numbers
    By Rabbitoh in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 03-17-2014, 04:27 PM
  3. [SOLVED] Formula Fill to Cells: Only change certain cell references in a multi-reference forumla
    By deldalton in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 11-08-2013, 11:45 AM
  4. [SOLVED] Puzzled by a simple forumla to sum times based on date criteria
    By lsteinbach in forum Excel Formulas & Functions
    Replies: 14
    Last Post: 06-10-2013, 02:58 PM
  5. [SOLVED] copy template multiple times and change a cell on each
    By freebird_wr in forum Excel Programming / VBA / Macros
    Replies: 9
    Last Post: 08-24-2012, 12:38 PM
  6. VBA to change chart Source Data multiple times
    By woolen in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 08-19-2011, 01:58 PM
  7. [SOLVED] Is there a forumla to link an absolute cell reference in multiple.
    By Thomas in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 02-05-2005, 01:06 PM

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