+ Reply to Thread
Results 1 to 3 of 3

Extract (only non blank cell + highest value) data from multiple tabs

  1. #1
    Registered User
    Join Date
    03-25-2019
    Location
    Tangerang
    MS-Off Ver
    2019
    Posts
    2

    Extract (only non blank cell + highest value) data from multiple tabs

    Hi guys...Please help me with my workbook (attached)

    In the workbook there are four tabs i.e. Cumulative, Data1, Data2, Data3. Tabs Data1, Data2, and Data3 contain information of student performance in each semester.

    My question is: how to extract automatically informations from Data1, Data2, and Data3 and put it all on Cumulative with these two additional conditions:
    • I only want to extract all non BLANK cell of B5:C9 from each Data1, Data2, and Data3
    • If there are subject that retaken, I want to extract data with the highest grade. (as you can see in Data1, Data2, and Data3 there is one subject that always appeared i.e. BIO1201, this subject was retaken twice with highest grade is B).

    I am sorry for my bad english, i hope you can understand my question. Thank you so much!
    Attached Images Attached Images
    Attached Files Attached Files
    Last edited by alitob; 03-26-2019 at 04:56 PM. Reason: restructure my question

  2. #2
    Forum Expert dflak's Avatar
    Join Date
    11-24-2015
    Location
    North Carolina
    MS-Off Ver
    365
    Posts
    7,926

    Re: Extract (only non blank cell + highest value) data from multiple tabs

    Here is my take on it. I am a believer of making the spreadsheet do as much the work as it can and use VB only to tie things together and to clean things up.

    This spreadsheet works by copying in all the data from each semester. It then deletes those rows where the grade point is not the maximum for the course and then goes back and deletes any duplicates.

    I changed the data range on the Cumulative Sheet to an Excel Table. Excel Tables duplicate formulas down automatically and I use this feature. I also added helper columns to do calculations rather than try to do them in the code.

    The helper columns are:
    Grade Point - this is a VLOOKUP from the Grade / Grade Point table to get a numeric value for the letter grade.
    Max - this is an array formula: =MAX(IF([@Code]=[Code],[Grade Point],FALSE))- it gets the maximum grade point for a subject.
    Keep has the formula: =[@[Grade Point]]=[@Max] - this is true if the score on that row is the maximum.
    Duplicate has the formula: =MATCH([@Code],[Code],0)=ROW()-4 - this is true for the first occurrence of a Course Code.

    These helper columns may be hidden so the sheet looks like the original.
    Attached Files Attached Files
    One spreadsheet to rule them all. One spreadsheet to find them. One spreadsheet to bring them all and at corporate, bind them.

    A picture is worth a thousand words, but a sample spreadsheet is more likely to be worked on.

  3. #3
    Registered User
    Join Date
    03-25-2019
    Location
    Tangerang
    MS-Off Ver
    2019
    Posts
    2

    Re: Extract (only non blank cell + highest value) data from multiple tabs

    Awesome, worked perfectly!
    Thank you so much for your reply and help!

+ 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. Extract Data from Multiple Tabs
    By brncfan7 in forum Excel General
    Replies: 2
    Last Post: 06-06-2017, 04:54 PM
  2. using drop down to extract data from multiple tabs?
    By SAHEBDIN in forum Excel General
    Replies: 1
    Last Post: 08-25-2015, 10:03 AM
  3. [SOLVED] Extract Data from multiple tabs in one workbook to a summary tab
    By iceplant in forum Excel Programming / VBA / Macros
    Replies: 10
    Last Post: 10-24-2014, 12:36 PM
  4. Extract Data from multiple tabs in one workbook to a summary tab
    By iceplant in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 10-23-2014, 02:30 AM
  5. [SOLVED] Extract data from a workbook with multiple tabs, into a workbook with corresponding tabs
    By krackaberr in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 02-28-2013, 11:54 AM
  6. VBA to extract data from multiple workbooks into another- problem with blank cells
    By NeilBat in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 04-20-2012, 11:22 PM
  7. Excel 2007 : Extract rows from highest value data
    By sunil31 in forum Excel General
    Replies: 0
    Last Post: 12-11-2009, 04:56 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