Excel: Refreshing Runs into error with finding column since the column names are changed daily - excel

I am grabbing a table from this site (https://cleaningtheglass.com/stats/league/fourfactors?season=2022&seasontype=regseason&start=02/1/2023&end=10/15/2023&venue=home#) and I can load it etc but it won't refresh the next day with updated stats. The reason I believe the error is appearing is because the data provides averages within the column names so the next day the column name changes on the site.
The error that appears is '[Expression.Error] The columns 'W 3.6' of the table wasn't found. It doesn't appear for any other column, but I think because it stops trying to refresh the data once it runs into a problem.
I simply want to refresh the data so I can get up to date stats to experiment with. Above is what my sheet looks like and the info I want to refresh daily. excel sheet with error
I have tried removing columns with unnecessary info while uploading data, changed columns names, and I went into Properties> "Overwrite existing cells with new data, clear unused cells and none of them have worked".
Any ideas on how to get around this? I don't find any value in the averages provided on the site so if we need to rid them that would be better also. Please let me know if more information is needed! Thanks in advance!

Related

how to insert a date stamp into a table when a row is added automatically

I am wanting to update a table we have for outstanding issue in one of our projects so the date of issue being raised field is prepopulated when a new row is inserted in the table. the reason for doing this is I'm aware users occasionally will miss this field when adding data to the table and when going back it is hard to remember when you you raised the issue in the first place.
VBA is not my strong suit but I understand just about enough to get by and know the code I need for inserting the timestamp into a cell and just need to work out how to direct it to the right part of the table but that shouldn't just need to point it to the last row of the table and the column can be feed by its header.
What I'm more stuck on is how I get this done without having the user notice so no need for a macro button to add rows etc. I believe this should be doable using the change event handler but I just don't know enough about how I'd set this up. any advice would be appreciated
if you require any sample code I'm working or a mock up of the table let me know and i'll pull something together.

Keep suggestions in Excel column even when original entry deleted?

I have a workbook where several people enter values. Regularly values are deleted by another script.
I want the users to have shown suggestions of other historical values from the specific column.

MS Flow Excel Business Delete Row Error 409

I have built an Excel File on Sharepoint that technicians enter data into. Now I am trying to use Power Automate to move old records (rows) to an Archive sheet. I can get the data to copy over to the other sheet just fine but when the flow gets to Delete Row in the non-Archive Sheet it errors out.
When this first happened I found that it didn't work when Excel had a filter so I removed that. It worked for 2 times before the issue came back. Searching around everyone keeps talking about having multiple tables on one sheet. I only have 1 table on a sheet and multiple sheets in the file. I am also using a UID (unique identifier) to make sure the correct row is being deleted. Any help would be greatly appreciated.
My only request is that answers focus on Deleting a Row. I have seen many posts for the 409 issue with inserting a row and those are just not helping since they seem to have a common theme of not enough space or effecting another table on the sheet.
My Flow with the Error
MS Flow Error Details
Thank you!

Check For Matches And Import Data Into Specific Cells From An External Source

We are trying to track some online marketing metrics and I'm having some trouble. I have 2 tables in different tabs (one imports data from several external data sources, ultimately we want this to be a series of google sheets) and one is the working table.
I have rows on the imported data with month and other attributes defining the data and in the working data these are columns. The working data has a lot of other cells too that are not there with calculations, etc.
What I need to do is to check on the working sheet which month (for example) we are in, then go to the working data and scan all the data for matches with that month. Then I want to consolidate each of the data parameters into the working sheet. Ideally I wouldn't even have to import all the external data into a tab on the working spreadsheet, if I could find a way to work where it would check the external documents for the matches that would be great. The structure of the data in the external documents is the same as displayed here fore the imported data.
Note that in this case it is month but it could be anything random so DATE functions wouldn't work.
So I want to pickup the data from the external source above, and insert in the relevant places. But while the months will not change, other data can change the order in which is imported so we need to check that the headers from picture 2 match the row labels from the imported data.
I hope that makes sense. I would really appreciate any help. Was up until 4 AM trying to figure this out and I would hate to go back to my boss saying he's gonna need to get someone else to do this as I can't. :/
Thank you.
So I resolved this with a INDEX(array, MATCH(),MATCH()) function. First I selected the answer array from the cells with the info I wanted then used the MATCH Function to match the row and the columns I wanted in the matrix.
This created another problem where no answer existed as it threw an error so I had to envelop the whole expression in an IFERROR function.
The final solution was like this:
=IFERROR(INDEX(Table_Query_from_Excel_Files,MATCH(!H1:I1&A1,INDEX(Table_Query_from_Excel_Files[Month]&Table_Query_from_Excel_Files[User location],,),0),MATCH(!A1,Table_Query_from_Excel_Files[#Headers],0)), 0)

Set specific height for all existing/new rows of a table

I have used Excel for quite some time now but only using traditional formulas. Now I am trying to create a more elaborated document for my business using VBA coding to expand my possibilities.
I have done some research and started practicing but found something that I can’t understand how to do yet.
I have a worksheet with a table on it. Since this is a fresh document it has nothing but the header and a blank row below it. What I always did when writing the information was type text in any of the columns that belong to the row immediately below the table (without actually inserting a new row myself). This creates a new row for the table where most of its format is kept, such as text size and formulas. However, I noticed that the row height doesn’t automatically change to that of the previous rows of the table, and changing it manually for each new row is very time consuming.
I would really appreciate it if anyone could share me the necessary Excel VBA code to fix this issue. I have thought of two possible approaches. The first one is a code that automatically sets all the rows of the table to a height of 20 (I want all rows to be the same size so no problem with that), supposing this would also affect new rows as I add them the way I mentioned. The second one would be a code that automatically sets every new row of the table to a size of 20. It doesn’t matter which one you choose, the easiest will be just fine. Thanks in advance.

Resources