VBA help for autosorting rows, moving blank function rows to bottom (not delete), & consolidating 4 sheets to another sheet

Jason Chan

New Member
Joined
Jul 17, 2015
Messages
27
I run a tuition center and at the moment, I only have 10 students. The center offers three subjects only - ENGLISH, MATH and HISTORY. Scores are aggregated by test components, there are total of seven components in my center. Each subject utilizes a portion of the test components which accords scores for every test taken to each student (ENG – 4 comps, MATH – 4 comps, HIST – 2 comps). The three subjects share one to two test components so some components are retaken with altered questions. All students enroll into ENG, but not all students enroll into MATH and HIST.

SHEET1 is the manual main tests data entry worksheet and has about twenty columns covering all components scores for all ENG, MATH. HIST. SHEET2 is the voluntary work from students’ own practical work which do not add to their overall scores, but provide a reference for my end of semester award. I have to manually enter each student’s scores in all ENG, MATH and HIST components test scores into SHEET1 after every test I give them, as well as SHEET2 after some of them offer to get together to form smaller voluntary projects.

Then, I create SHEETS 3,4,5 to automatically populate with a simple =IF(…,ELSE,””) function pasting them into rows 1 to 1000 in each of these three sheets 3,4,5 (1000 is the temporary number of rows that I estimate my tuition may grow to need for the foreseeable years). SHEET3, SHEET4 and SHEET5 are for auto-populating from SHEET1, filling only rows who meet certain criteria. I do not plan to manually enter anything into SHEETs 3,4,5. After they self-populate every time, my 1st problem is, I need each sheets 3,4,5 to all be instantly auto-sorted ascendingly by the date column in column C, all rows consolidated (no blank rows in-between the 1st and last filled rows) and rows that although look blank but with function to automatically go beneath the last filled row, but not eliminating or deleting those blanks with functions.

Finally, comes SHEET6, which is my 2nd problem, I need to automatically populate continuously by consolidating and merging ALL rows from SHEETs 2,3,4,5 via VBA, then continuously auto-sorting all these rows on SHEET6 whenever a new entry is made in SHEET1 or SHEET2, sorted by the students’ ID in column B. So, the total no.of rows in SHEET6 would be the total combined of all rows in SHEETs 2,3,4,5.

Sadly, I have tried some depressing attempts on my own and a couple of assisted ones, but none have really helped me. For instance, I tried a code to sort the auto-populate sheets, but my function rows that are still blank, all get sorted to the top, while still showing blank. Some people offered me codes, but those codes delete my functions rows that return blanks. I don't want those blanks deleted. I need the filled function rows that are despite not populated, to just be sorted to the bottom, while the filled names and scores rows to the top. And, I have not gotten any help so far for sorting & consolidating the auto-populated sheets to SHEET6 yet. I’m not VBA fluent. I will appreciate if there are any kind expert out here who could help me with a VBA code to complete the above requests for my SHEETs 3,4,5,6?

I have created a cropped miniature sample workbook (of my actual workbook) but I can't find any location here to upload. Please let me know if needed and how to show you.


Waiting for the kind expert at my center,
Jason .
 

Excel Facts

Waterfall charts in Excel?
Office 365 customers have access to Waterfall charts since late 2016. They were added to Excel 2019.
Hi Jason,
there is no way to upload anything here, but a dropbox/google drive link would be very helpfull :).
Cheers,
Koen
 
Upvote 0
Jason Chan,

1. What version of Excel, and, Windows are you using?

2. Are you using a PC or a Mac?


To start off, and, so that we can get it right on the first try:

The following is a free site:

You can upload your workbook to (the BLUE link-->) Box Net ,

sensitive data changed

mark the workbook for sharing

and provide us with a link to your workbook.
 
Upvote 0
Hi Koen,
I have managed to sign-up and Uploaded my sample workbook to BOX.Net as kindly recommended by hiker95. Now, how do I direct you & hiker95 to that file ? Please excuse my dummies question, I've never used a cloud upload service before. Let's see if hiker95 can tell me how (user: Jason Chan, is there any way I can direct the workbook's url to you?)

Jason.

Hi Jason,
there is no way to upload anything here, but a dropbox/google drive link would be very helpfull :).
Cheers,
Koen
 
Upvote 0
Hi hiker95,

1. EXCEL 2010
2. Win7 on PC

I have managed to sign-up and Uploaded my sample workbook to BOX.Net as you recommended. But , I don't know how to direct you to that file ? If you give me a direction, I will quickly let you see the workbook (user: Jason Chan, workbook name: Jastuition.XLSX)

Jason.

Jason Chan,

1. What version of Excel, and, Windows are you using?

2. Are you using a PC or a Mac?


To start off, and, so that we can get it right on the first try:

The following is a free site:

You can upload your workbook to (the BLUE link-->) Box Net ,

sensitive data changed

mark the workbook for sharing

and provide us with a link to your workbook.
 
Upvote 0
Hi hiker95,
I've managed to use GoogleDrive:
Here's the link , pls see if you can understand what I need,

https://drive.google.com/file/d/0B9qNrKP2qYj2R1ZMRWQxYUFuTnc/view?usp=sharing


cheers,
Jason.

Jason Chan,

1. What version of Excel, and, Windows are you using?

2. Are you using a PC or a Mac?


To start off, and, so that we can get it right on the first try:

The following is a free site:

You can upload your workbook to (the BLUE link-->) Box Net ,

sensitive data changed

mark the workbook for sharing

and provide us with a link to your workbook.
 
Upvote 0
Jason Chan,

Thanks for the workbook/worksheets.

Please manually complete worksheet 6 - Final MERGE 2345 with the results that you are looking for.

Then post the workbook again.
 
Upvote 0
Hi Hiker95,

I have filled in Sheet 6, this is what I need the merged sheet to be.
https://drive.google.com/file/d/0B9qNrKP2qYj2RDUwaUcySnF0TTA/view?usp=sharing

The key critical need is to get sheets 2,3,4,5 to come together (all rows and fields) and all rows be arranged by first ID, then by DATE in an autosorted, auto-consolidated, yet separately-rowed displaying each of their origin sheet's data (purple data representing sheet2, blue data representing sheet3, red data representing sheet4 and green data representing sheet5).

I've also been wanting for sheets 2,3,4,5 to be autosorted, auto-consolidated but moving all blank functions (unfilled functions rows) to beneath the last filled row of ea sheet, everytime somethng is changed or entered in sheets 1 and 2.

Please see what you can do?
Jason.


Jason Chan,

Thanks for the workbook/worksheets.

Please manually complete worksheet 6 - Final MERGE 2345 with the results that you are looking for.

Then post the workbook again.
 
Upvote 0
ps. i don't need the color coding in my actual workbook, i just used the colors just to show you better what i meant. All texts in black on all sheets is just fine.
 
Upvote 0

Forum statistics

Threads
1,223,911
Messages
6,175,335
Members
452,636
Latest member
laura12345

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top