Spacing weird after downloading csv file

When I download the csv file made from the tag historian data there are blank spaces that show in excel that I cant get rid of.

I’m not sure I entirely understand the issue. Each row has a value for at least 1 of the columns. If there was no history for that tag at that time then the value would be blank.

But when I change the time range this same pattern follows. If I move the start time to where all of the columns have data in this picture there is data missing in the same spots when it is exported.