I have a table that comes to us in descending order on both the x-axis and y-axis. We need both the rows and columns in ascending order, both starting with 0,0
X-axis comes to us as 16,15,14...0
y-axis comes to us as 85,84,83,82...0
We need 0-16 on the x-axis and 0-85 on y
So, not a straight transpose and we receive this via Excel and would be working with it in Excel. Is there a simple way to do this, as the transpose option to paste only swaps the x and y axis.
Your knowledge of Excel is obviously far beyond mine.
Good luck.
Your knowledge of Excel is obviously far beyond mine.
Good luck.
You can first sort in ascending order based on the first column, as a normal sort. Then sort again based on the first row, which I don't think I was aware existed as an option. The end result, though, requires me to cut the new last column and paste it as the first column with the row headers.
I was hoping for a formula and/or 1-step solution that doesn't require further interaction with the date (i.e. cut and paste).
BLANK 16 15 14...0
85 100 99 99 85
84 99 99 98 84
83 99 99 98 84
82 98 98 98 83
.
.
.
0 15 15 14 0
How we need the data:
BLANK 0 1 2 3 ...16
0 0 2 3 5 15
1 2 4 5 7 17
2 3 5 7 9 18
3 5 7 9 10 20
.
.
.
85 85 87 88 90 100
Once the helper column is there
1. Sort ascending by your helper column
2. Transpose the data
3. Sort by ascending order of your helper row that is now your column
4. Transpose again
5. Remove helper column and row if you want
This is why I like Sheets better. I can put this in a formula once and take care of it.
Once the helper column is there
1. Sort ascending by your helper column
2. Transpose the data
3. Sort by ascending order of your helper row that is now your column
4. Transpose again
5. Remove helper column and row if you want
This is why I like Sheets better. I can put this in a formula once and take care of it.
Create a new tab if there isn't a sheet 2.
In Sheet 2, paste the following in cell A1 ...
=query(transpose(query(query(arrayformula(value(query(transpose(query({Sheet1!A:EC},"Select * where Col2 is not null Order By Col1 asc",1)),"Select * where Col2 is not null Order by Col1 asc",1))),"Select * where Col2 is not null Order by Col1 asc",1),"Select * Offset 1",0)),"Select * Offset 1",0)
This should give you what you want. Let me know if it works.
Create a new tab if there isn't a sheet 2.
In Sheet 2, paste the following in cell A1 ...
=query(transpose(query(query(arrayformula(value(query(transpose(query({Sheet1!A:EC},"Select * where Col2 is not null Order By Col1 asc",1)),"Select * where Col2 is not null Order by Col1 asc",1))),"Select * where Col2 is not null Order by Col1 asc",1),"Select * Offset 1",0)),"Select * Offset 1",0)
This should give you what you want. Let me know if it works.
Also, are the headers the helper columns? It would be easier if I can see it. I purposely took out the helper row/column.
Also, are the headers the helper columns? It would be easier if I can see it. I purposely took out the helper row/column.
A1=BLANK, B1=16, C1 = 15, D1 = 14,...R1 = 0
COLUMN A are the ROW "Headers":
A1=BLANK
A2 = 85
A3 = 84
A4 = 93
.
.
.
A87 = 0
Quote:
You said you have help a help column and row. What are they?
Also, are the headers the helper columns? It would be easier if I can see it. I purposely took out the helper row/column.
Row 1 is the column headers:
A1=BLANK, B1=16, C1 = 15, D1 = 14,...R1 = 0
COLUMN A are the ROW "Headers":
A1=BLANK
A2 = 85
A3 = 84
A4 = 93
.
.
.
A87 = 0