I am attempting to automatically plot scatter plots on each tab in an excel workbook. I wanted some help in scanning each worksheet to see if data is present, then plot the scatter plot based on the number of valid data found. For example, in this spreadsheet:
Screenshot 2021-01-14 134044.png
There is 2 valid data sets. The data is always in the same type of format. Each dataset is separated by 5 columns....in this example, the first data set is at A and then G. This worksheet should produce 2 plots on the graph using Amp1 and Amp 2 as the x and y data respectively. The plot should look like this:
Screenshot 2021-01-14 135339.png
Once Row 1 separated by 5 columns have an entry, that is considered a valid plot. From the table presented, A28:A41 is the first x data and B28:B41 as the first y data, then switch to Plot 2 as column G1 has data using G28:G41 as the second x data and H28:H41 as the corresonding second y data.
Other worksheets may have a different number of valid data. Sheet 1 may have 4 sets, Sheet 2 may have just 1.
How to accomplish this task of plotting the scatter plots for each tab with different number of plots?
I was only able to come up with hard coding the plotting: