Generate cell pairs based on first row and column

anon8723879278

Given a spreadsheet like this:

x | pressure | distance | height
pressure
distance
height

I would like an output like this:

pressure pressure
pressure distance
pressure height
distance pressure
distance distance
distance height
height pressure
height distance
height height
PeterH

Assuming your data is in A1,

Then in C1 enter the below as an array formula, hold CTRL + SHIFT + ENTER after entering

{=INDEX($A$1:$A$3,CEILING(ROWS($B$1:B1)/(SUM(1/COUNTIF($A$1:$A$3,$A$1:$A$3))),1),1)}

then in D1 enter the below:

=INDEX($A$1:$A$3,COUNTIF($C$1:C1,C1),1)

Then drag them both down until you get a REF error in column C.

Change $A$1:$A$3 in both formulas to suit your range of original data.

Collected from the Internet

Please contact [email protected] to delete if infringement.

edited at
0

Comments

0 comments
Login to comment

Related

From Dev

How to find table cell value based on condition provided in column and row?

From Dev

Table - size first column based on largest cell

From Dev

How to duplicate a row based on column or cell value

From Dev

Deleting entire row based on first 2 cell values in Excel

From Dev

Generate new pairs based on a string

From Dev

How can I extract row from a second dataframe based on data-pairs from first dataframe?

From Dev

How to subtract second row from first row and generate a output column in mysql

From Dev

Different background-color for each cell of the first row and first column in a CSS table

From Dev

Excel VBA Find column name of first blank cell in row

From Dev

How to update pandas column cell values based on similarity of some elements with other column names on row level

From Dev

Pandas- Finding first occurence in a row based on column values

From Dev

How do i lookup a row on one dataframe based on the column cell value and append that to a row on another dataframe?

From Dev

Format cells in row conditionally based on the first cell

From Dev

Formatting a cell based on perpendicular row/column values

From Dev

Highlight a row based on its first cell date value

From Dev

Delete Row Based on Active Cell

From Dev

Table - size first column based on largest cell

From Dev

Moving the data from the upper left cell to each row of the first column

From Dev

Conditional formating of excel row based on the value of the first cell of the row

From Dev

sum up cells based on cell indices (row and column NUMBERS)

From Dev

Return value pairs based on first row and column

From Dev

How to subtract second row from first row and generate a output column in mysql

From Dev

wpf DataGrid disable cell edit for specific row except first column

From Dev

Find out Excel column character from name of cell in first row

From Dev

R add column where cell values based on values in a different row

From Dev

Excel VBA - Cut and Paste cell to new cell location based on row/ column condition

From Dev

Generate words based on cell values

From Dev

Mysql query to only return rows based on column of first row

From Dev

generate a new column based on values of previous row in a different column and current row of the same column, with awk

Related Related

  1. 1

    How to find table cell value based on condition provided in column and row?

  2. 2

    Table - size first column based on largest cell

  3. 3

    How to duplicate a row based on column or cell value

  4. 4

    Deleting entire row based on first 2 cell values in Excel

  5. 5

    Generate new pairs based on a string

  6. 6

    How can I extract row from a second dataframe based on data-pairs from first dataframe?

  7. 7

    How to subtract second row from first row and generate a output column in mysql

  8. 8

    Different background-color for each cell of the first row and first column in a CSS table

  9. 9

    Excel VBA Find column name of first blank cell in row

  10. 10

    How to update pandas column cell values based on similarity of some elements with other column names on row level

  11. 11

    Pandas- Finding first occurence in a row based on column values

  12. 12

    How do i lookup a row on one dataframe based on the column cell value and append that to a row on another dataframe?

  13. 13

    Format cells in row conditionally based on the first cell

  14. 14

    Formatting a cell based on perpendicular row/column values

  15. 15

    Highlight a row based on its first cell date value

  16. 16

    Delete Row Based on Active Cell

  17. 17

    Table - size first column based on largest cell

  18. 18

    Moving the data from the upper left cell to each row of the first column

  19. 19

    Conditional formating of excel row based on the value of the first cell of the row

  20. 20

    sum up cells based on cell indices (row and column NUMBERS)

  21. 21

    Return value pairs based on first row and column

  22. 22

    How to subtract second row from first row and generate a output column in mysql

  23. 23

    wpf DataGrid disable cell edit for specific row except first column

  24. 24

    Find out Excel column character from name of cell in first row

  25. 25

    R add column where cell values based on values in a different row

  26. 26

    Excel VBA - Cut and Paste cell to new cell location based on row/ column condition

  27. 27

    Generate words based on cell values

  28. 28

    Mysql query to only return rows based on column of first row

  29. 29

    generate a new column based on values of previous row in a different column and current row of the same column, with awk

HotTag

Archive