+ Reply to Thread
Results 1 to 2 of 2

How to include worksheets 3 and 4 in formula below

  1. #1
    Registered User
    Join Date
    11-05-2013
    Location
    Leeds
    MS-Off Ver
    Excel 2010
    Posts
    33

    How to include worksheets 3 and 4 in formula below

    I have been kindly given this formula with an explanation on how it works:

    Insert this formula into the cell `B4` of the sheet "Cases":

    Please Login or Register  to view this content.
    Copy the formula to the other cells in the worksheet; the relative addresses will adjust automatically.

    ----

    The formula works like this:

    1. Check if there is content in 1st. If yes, copy it.
    2. If no, find out how many entries there are in 1st in total. (This is done by using the `COUNTA` function on the whole B column in 1st and subtracting the number of non-empty cells above the actual case data.) Use this information together with the current cells's number to find out the location of the cell that has to be copied from 2nd.
    3. Create the address of the cell and use the `ISBLANK` function on the `INDIRECT` function with that address to check if the cell is empty.
    4. If it is not, use the `INDIRECT` function again to display it. If it is empty, just display an empty string.

    ----

    Now this works fine when I have only 2 sheets. But lets say I want to include a third and fourth sheet (name as 3rd and 4th respectively), then what and should I put the formula for this in the formula above? There are actually 31 sheets but if I know how to add 3rd and 4th sheet in the formula, then I can figure out how to do the rest.

    Thanks

  2. #2
    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
    52,972

    Re: How to include worksheets 3 and 4 in formula below

    Its hard to offer a suggestion without seeing what that formula relates to, and how it would need to be added to/adjusted to meet your new needs
    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

+ 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] Expanding a formula to include multiple worksheets/tabs
    By Raidon in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 10-12-2012, 12:46 PM
  2. Replies: 1
    Last Post: 12-22-2010, 09:08 AM
  3. Formula to Include Same Cell in Separate Worksheets
    By kaluwi in forum Excel General
    Replies: 1
    Last Post: 06-09-2009, 08:24 PM
  4. Include Worksheets From Workbooks into ONE new Workbook
    By tcgaines in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 12-15-2005, 03:50 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