Search code examples
excelexcel-formulaexcel-2010excel-2007

How to convert field values to columns in excel? (No transpose)


In Excel, I have below table, with columns 1, 2, 3 as the ranks of the keywords in search engine.

enter image description here

How can I convert the above table into the following format

enter image description here


Solution

  • Use SUMPRODUCT() formula like below. Drag and drop down and right as needed.

    =SUMPRODUCT(($B$1:$D$1)*($A$2:$A$4=$A8)*($B$2:$D$4=B$7))
    

    enter image description here