I am trying to learn to use VBA, but am struggling with finding the correct syntax (?) for an office project.
We receive data that comes all in one column. There are generally 3 rows of actual information and then a blank line. This pattern repeats. Some datasets may only have a 25 or so "sets". Others can have over 1,000 sets.
Challenge #1: Determine the last populated row (dataset contains blank rows). I can use a MATCH("zzz",A:A) formula to find the last row.
Challenge #2: Transpose each "group", on a new worksheet.
A very nice person on here helped me with a DROP(WRAPROWS) formula which uses the range found in Challenge #1. Ex: A1:A51. That same formula also "drops" the blank row/cell once the data is transposed.
Challenge #3: Format the transposed data so that it becomes easier to read.
Summary:
Transpose all data from column A (with the last row always being a variable) on one sheet over to a 2nd sheet, add column headers and possibly convert the table to a range (or add borders) just to make the information easier to read.
I feel like there is no single formula (or nested formulas) that will do all of that and that we probably need to use VBA to accomplish all of these things, but I am not experienced enough to write all of this.
If anyone has time to help, it would be much appreciated.
Thanks in advance.
Bookmarks