+ Reply to Thread
Results 1 to 6 of 6

Search multiple sheets within a report and then find the average of the result

  1. #1
    Forum Contributor
    Join Date
    03-19-2014
    Location
    Perth, Australia
    MS-Off Ver
    Excel 2010
    Posts
    101

    Search multiple sheets within a report and then find the average of the result

    Average.xlsxHi

    I have changed the attachment to use CSV's

    I am trying to create a report that I can enter the codes I am looking for and the formula will search the sheets within the report and once the results are found then find the average of those results.


    What I am trying to do is search the codes from Sheet 1 under Outlet and ESA(in Blue) in sheet A,B and C. The problem is the ESA code seen in column I of A,B,C is only used when column L is empty in A,B,C.

    Once the relevant codes are found I then need to look for the KPI's seen in sheet 1 B4, B6 and B8, they can be found in A,B,C in column R. then the result comes from column S in A,B or C.

    Once the result is found for each code I want to find the average of them, with the answer to populate in yellow in sheet 1

    I want the formula to be able to handle more or less codes as well as adjust the formula so I can add more sheets(possible D,E,F,G etc)

    Hope this makes sense.

    Thanks

    Average.xlsx
    Last edited by Beach Walker; 06-07-2014 at 05:03 AM. Reason: Change to CSV files in the report

  2. #2
    Valued Forum Contributor
    Join Date
    08-06-2013
    Location
    Detroit, Michigan
    MS-Off Ver
    Excel 2013
    Posts
    671

    Re: Search multiple sheets within a report and then find the average of the result

    Here's my attempt for just 1 sheet and 1 of the KPIs. If I'm on the right track, I'm sure you can extend my logic.
    A couple notes: 1. Do you really need multiple sheets? You could put them on 1 sheet and you could have a column for which "sheet" that record is from. It would make things easier, especially if you'll be needing more sheets in the future.
    2. Merged cells are a headache. If possible, avoid them.
    3. You have a lot of blanks in your data and it doesn't have headers. This makes it difficult to understand what is being represented.
    Attached Files Attached Files
    1. Include a sample workbook with an example of the result you want
    2. Use [CODE] and [FORMULA] wrappers for your VBA code or excel formulas
    3. If your question has been answered, mark the thread as SOLVED and click on the "Add Rep" star to thank whoever helped you.

  3. #3
    Forum Contributor
    Join Date
    03-19-2014
    Location
    Perth, Australia
    MS-Off Ver
    Excel 2010
    Posts
    101

    Re: Search multiple sheets within a report and then find the average of the result

    Hi K64

    Thanks for looking at it, I have set it up like you have in the past. I am sure there is a combination of formulas in one cell that can achieve the result, I just cant crack it.

    Yes the merged cells are a pain, I will look to see if I can access the data in a CSV format.

    The Blanks and missing headings have been removed to protect that data, I have just left what is necessary for the calculation, I understand this may make understanding what I am trying to achieve harder

    Thanks again



    Quote Originally Posted by k64 View Post
    Here's my attempt for just 1 sheet and 1 of the KPIs. If I'm on the right track, I'm sure you can extend my logic.
    A couple notes: 1. Do you really need multiple sheets? You could put them on 1 sheet and you could have a column for which "sheet" that record is from. It would make things easier, especially if you'll be needing more sheets in the future.
    2. Merged cells are a headache. If possible, avoid them.
    3. You have a lot of blanks in your data and it doesn't have headers. This makes it difficult to understand what is being represented.

  4. #4
    Forum Expert
    Join Date
    05-30-2012
    Location
    The Netherlands
    MS-Off Ver
    Office 365
    Posts
    14,987

    Re: Search multiple sheets within a report and then find the average of the result

    Please Login or Register  to view this content.
    Why did you change it?

    Working in just one tab makes all analyzes a lot easier.

    I should have solved this (then) with an pivot table.
    Notice my main language is not English.

    I appreciate it, if you reply on my solution.

    If you are satisfied with the solution, please mark the question solved.

    You can add reputation by clicking on the star * add reputation.

  5. #5
    Forum Contributor
    Join Date
    03-19-2014
    Location
    Perth, Australia
    MS-Off Ver
    Excel 2010
    Posts
    101

    Re: Search multiple sheets within a report and then find the average of the result

    I need the multiple tabs because it makes it easier to handle the reports I save into them, one long tab would be hard for me to manage. I have a possible 20 tabs to be filled.

    I have changed the attachment to CSV's so no merged cells

    Quote Originally Posted by oeldere View Post
    Please Login or Register  to view this content.
    Why did you change it?

    Working in just one tab makes all analyzes a lot easier.

    I should have solved this (then) with an pivot table.

  6. #6
    Valued Forum Contributor
    Join Date
    08-06-2013
    Location
    Detroit, Michigan
    MS-Off Ver
    Excel 2013
    Posts
    671

    Re: Search multiple sheets within a report and then find the average of the result

    In my experience, it is much easier to make on "Data" tab and then make other tabs pull whatever info you need from there. Having multiple tabs pull from 1 = easy. Having 1 tab pull from multiple = hard.

+ 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] Search for multiple rows from multiple sheets by criteria & show result in userform
    By ANDREAAS in forum Excel Programming / VBA / Macros
    Replies: 9
    Last Post: 06-07-2014, 11:29 AM
  2. [SOLVED] Find same result on multiple sheets
    By stojko89 in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 10-08-2013, 07:45 AM
  3. [SOLVED] VBA code to search for #REF, #VALUE, #N/A within multiple excel sheets and produce report
    By nadiar in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 10-02-2013, 01:56 PM
  4. [SOLVED] looking value in multiple sheets and find result with vlookup
    By amarjeet.it in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 09-14-2013, 07:37 AM
  5. [SOLVED] How do you search through multiple sheets to find a specific value?
    By bean29 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 02-05-2013, 10:07 AM

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