A family of Microsoft spreadsheet software with tools for analyzing, charting, and communicating data.
I notice that all the yellow cells are negative numbers.
This macro will sort rows left to right which puts all the negative numbers in column A.
Sub Sort_Across_Columns()
'Tom Ogilvy macro
Dim r As Long
Dim lrow As Long
Dim lCol As Long
Application.ScreenUpdating = False
Application.Calculation = xlCalculationManual
lrow = ActiveSheet.Cells(Rows.Count, "A").End(xlUp).Row
lCol = ActiveSheet.Cells(ActiveCell.Row, _
Columns.Count).End(xlToLeft).Column
For r = 1 To lrow
With Cells(r, 1).Resize(1, lCol)
.Sort Key1:=Cells(r, 2), Order1:=xlAscending, _
Header:=xlGuess, _
Orientation:=xlLeftToRight, _
DataOption1:=xlSortNormal
End With
Next r
Application.ScreenUpdating = True
Application.Calculation = xlCalculationAutomatic
End Sub
Gord