+ Reply to Thread
Results 1 to 4 of 4

Using data from worksheets with similar names

  1. #1
    Registered User
    Join Date
    10-22-2013
    Location
    Houston, TX
    MS-Off Ver
    Excel 2007
    Posts
    13

    Using data from worksheets with similar names

    I have a workbook with multiple worksheets whose names start with "Observation" (Observation (1), Observation (2), etc). Each sheets layout is exactly the same, however there can be a variable number of these sheets at any given time.
    In the workbook there is also a summary sheet with a cell where I need to take a single value from each "Observation" worksheet and average them. As far as I know I cannot use a formula since the number of "Observation" sheets changes, so I figured VBA would be the best way to achieve this if it's possible. But I'm very new to VBA so my knowledge is minimal. Any help is appreciated.

  2. #2
    Forum Guru
    Join Date
    08-28-2014
    Location
    USA
    MS-Off Ver
    Excel 2019
    Posts
    17,659

    Re: Using data from worksheets with similar names

    There is at least one way to do this by formula. Put a dummy sheet, perhaps called 'Start', in front of the first 'Observation' sheet and another, perhaps called 'End', behind the last Observation sheet. Lets say that you want to take an average of all of the values that are in cell B2 on all of your 'Observation' sheets. The formula would be =AVERAGE(Start:End!B2). AVERAGE ignores blanks so the blank B2 cells in the 'Start' and 'End' sheets won't matter.
    Let us know if you have a questions.
    Consider taking the time to add to the reputation of everybody that has taken the time to respond to your query.

  3. #3
    Registered User
    Join Date
    10-22-2013
    Location
    Houston, TX
    MS-Off Ver
    Excel 2007
    Posts
    13

    Re: Using data from worksheets with similar names

    One day I'll start thinking outside the box, I hope!

    Worked Perfectly. Even with the Start and End sheets hidden.

    Thank you!

  4. #4
    Forum Guru
    Join Date
    08-28-2014
    Location
    USA
    MS-Off Ver
    Excel 2019
    Posts
    17,659

    Re: Using data from worksheets with similar names

    You're Welcome. Thank You for the feedback and for marking the thread as 'Solved'. I hope that you have a blessed day.

+ 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. Copying data to tabs with similar names
    By Jacobg38 in forum Excel General
    Replies: 1
    Last Post: 01-10-2017, 08:02 PM
  2. Copying data to tabs with similar names
    By Jacobg38 in forum Excel General
    Replies: 0
    Last Post: 01-10-2017, 04:54 PM
  3. Replies: 1
    Last Post: 08-19-2016, 03:29 PM
  4. Removing similar names from a data
    By cksrules in forum Excel Programming / VBA / Macros
    Replies: 9
    Last Post: 06-29-2011, 05:23 AM
  5. Removing similar names from a data
    By cksrules in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 06-27-2011, 06:42 AM
  6. [SOLVED] Import data from two workbooks with similar names
    By John in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 09-06-2005, 09:05 PM
  7. [SOLVED] Comparing data in two similar worksheets
    By HiRllr21 in forum Excel General
    Replies: 0
    Last Post: 02-02-2005, 01:06 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