+ Reply to Thread
Results 1 to 3 of 3

finding average between values from different workbooks

  1. #1
    Registered User
    Join Date
    01-13-2014
    Location
    Ελλάδα
    MS-Off Ver
    Excel 2003
    Posts
    13

    finding average between values from different workbooks

    Hello to everyone!

    I need your help! I have 100 workbooks named Value_1 to Value_100.. In a specific cell W2 in sheet (named Model) in all workbooks there is some value (that comes as a formula result).
    I would like to write a vba code that finds the average of these 100 values and saves it in another workbook, sheet2, cell O2..
    Can anyone help me please? I tried many things, but i'm an absolute beginner and nothing works...

    Thanks in advance!

  2. #2
    Forum Expert mrice's Avatar
    Join Date
    06-22-2004
    Location
    Surrey, England
    MS-Off Ver
    Excel 2013
    Posts
    4,967

    Re: finding average between values from different workbooks

    Try this macro

    Please Login or Register  to view this content.
    Open up the VBA editor by hitting ALT F11

    Insert a new module by hitting Insert - Module

    Paste the macro into the empty sheet

    Hit ALT F11 to get back to the worksheet.

    Run the macro by going to tools-macro in Excel 2003 or the view ribbon in Excel 2007/2010.

  3. #3
    Registered User
    Join Date
    01-13-2014
    Location
    Ελλάδα
    MS-Off Ver
    Excel 2003
    Posts
    13

    Re: finding average between values from different workbooks

    mrice,

    thanks a lot!! you made everything easy for a beginner like me..
    Thanks for the detailed explanation! My problem is solved now!

+ 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] Finding the average of the last 4 non zero values in each row on a selected sheet
    By GavJ in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 09-26-2013, 10:33 PM
  2. [SOLVED] Finding matching cells in 2 different workbooks and copying cell values
    By lavinius in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 08-01-2013, 11:59 AM
  3. Error Handling #N/A with AVERAGE Function - Average of values in Row
    By Don Guillett in forum Excel Formulas & Functions
    Replies: 26
    Last Post: 09-06-2005, 11:05 AM
  4. Error Handling #N/A with AVERAGE Function - Average of values in Row
    By Don Guillett in forum Excel Formulas & Functions
    Replies: 39
    Last Post: 09-06-2005, 04:05 AM
  5. [SOLVED] Error Handling #N/A with AVERAGE Function - Average of values in Row
    By Sam via OfficeKB.com in forum Excel Formulas & Functions
    Replies: 13
    Last Post: 07-31-2005, 11:05 AM

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