How to stop Repeating Rows

bb84ss454

New Member
Joined
Jul 30, 2008
Messages
15
I'm working with a Fuel injection controller. It generates a .csv file for the output of all the different sensors.
The problem is that there are labels in the top row (not the issue) that repeat every other row.(this is the problem)
What it should do is spread the labels across the top row and then all the data falls into columns below the labels.
What I'm getting is a mess. I have to go in and delete every other row just to look at it.
 

Attachments

  • Messed up File.JPG
    Messed up File.JPG
    137.9 KB · Views: 8
  • The way it should work.JPG
    The way it should work.JPG
    81.1 KB · Views: 8

Excel Facts

Highlight Duplicates
Home, Conditional Formatting, Highlight Cells, Duplicate records, OK to add pink formatting to any duplicates in selected range.
If you just want to delete those rows, try
VBA Code:
Sub bb84ss()
   Range("A2:A" & Rows.Count).SpecialCells(xlConstants,xlTextValues).EntireRow.Delete
End Sub
 
Upvote 0
I contacted the company and they said it was a setting in Excel, that I needed to set it up for columns. I'm lost.
 
Upvote 0
If you open the csv in notepad, do you still see the extra headers?
 
Upvote 0
In that case it's to do with the way the csv is created & nothing to do with Excel.
 
Upvote 0

Forum statistics

Threads
1,214,646
Messages
6,120,717
Members
448,985
Latest member
chocbudda

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top