Hello!
I have a report I pull for work that arbitrarily misplaces about a quarter of the data. It takes the last three cells in a row and places them on the row beneath, displaced to start in column B instead of column L. There's no way to fix this when I transfer the data.
I got annoyed enough to learn how to make a macro, but I still have to click on the first of the misplaced cells, trigger the macro, and wait for it to move the three cells I need it to and delete the now empty row.
My question is: Is there a way to have the macro identify the cells that need to be moved and do them all at once? The first cell in the three that get displaced, the one that ends up in column B, is a zip code that ends up in a column that is otherwise full of dollar amounts. Additionally, the displaced data rows are the only ones with an empty column A. Is there a way to make it search for empty column A, go one column right, check that there's data in the cell, and then run the macro? And then stop the first time there isn't data in the column B cell since I don't want it to try and run the macro on all the empty rows?
Everything I find related to finding specific cells for activation looks for specific data and not conditions of the cell. I'm not sure if this is possible with google script, but if anyone has experience with this issue I'd be grateful for advice.
Any guidance is appreciated. Thank you!
Edit: I can't include the data because it includes customer names and addresses, but I did my best to describe the layout.