I tried adding that but hasn't done anything.
Sub MacroTaxi()
Sheets("Working").Visible = True
Sheets("Working 2").Visible = True
Sheets("Working").Select
Rows("1:62160").Select
Range("A62160").Activate
Rows("1:62160").EntireRow.AutoFit
Columns("A:R").Select
Application.CutCopyMode = True
Sheets("TAXI DATA").Select
Columns("D:U").Select
Application.CutCopyMode = True
Selection.Copy
Sheets("Working").Select
Range("A1").Select
ActiveSheet.Paste
'Define variables
Dim n As Integer
Dim x As Integer
'Count number of entries in spreadsheet
n = Worksheets("Working").Range("I:I").Cells.SpecialCells(xlCellTypeConstants).Count
'Start For Loop
For x = 1 To x = n
Qx = Worksheets("Working").Range("Q" & x)
If I * x = I * (x + 1) Then
Qx = "Blank"
End If
Next x
'Sheets("Working").Select
'Columns("A:R").Select
'Application.CutCopyMode = True
'Selection.Copy
'Sheets("Working 2").Select
'Range("A1").Select
'ActiveSheet.Paste
'Range("A1:R2060").Select
'Selection.Sort Key1:=Range("Q1"), Order1:=xlDescending, Header:= _
'xlGuess, OrderCustom:=1, MatchCase:=False, Orientation:=xlTopToBottom, _
'DataOption1:=xlSortNormal
'Sheets("Working 2").Select
'Columns("F:F").Select
'Application.CutCopyMode = True
'Selection.Copy
'Sheets("Top 20 Taxis by Volume").Select
'Range("B1").Select
'ActiveSheet.Paste
'Sheets("Working 2").Select
'Columns("H:I").Select
'Application.CutCopyMode = True
'Selection.Copy
'Sheets("Top 20 Taxis by Volume").Select
'Range("C1").Select
'ActiveSheet.Paste
'Sheets("Working 2").Select
'Columns("M:R").Select
'Application.CutCopyMode = True
'Selection.Copy
'Sheets("Top 20 Taxis by Volume").Select
'Range("E1").Select
'ActiveSheet.Paste
'Sheets("Working").Select
'ActiveWindow.SelectedSheets.Visible = False
'Sheets("Working 2").Select
'ActiveWindow.SelectedSheets.Visible = False
End Sub
Heres my coide in full have made the bottom half into comments to try and find out where its going wrong. Im trying to get unique data because I have a count column which counts the number of journeys each person has taken but then if someone has made four journeys ther will be four fours so am trying to make it so theres just one.