I
I
Ilya Magdenko2019-09-18 13:58:44
Visual Basic
Ilya Magdenko, 2019-09-18 13:58:44

How to transpose such a structure in Excel 2007?

Hello,
There was a situation such that I need to repeat one of my dynamic tables from the database in Excel 2007. And something doesn’t work out how to do it right in it. Now I will show how it is implemented in excel office 365 with power query.
I take the columns I need -
1) ProcedureId - This is the user ID
2) TokenValue - This is the question ID
3) HtmlValue - This is the answer or answer ID
The questionnaire is the same for all users.
5d82094e702a0222067275.png
Next, I write fx and get the structure I need -

.                      Вопрос 1     Вопрос 2       Вопрос 3 
Айди пользователя 1    Ответ 1      Ответ 2        Ответ 3
Айди пользователя 2    Ответ 1      Ответ 2        Ответ 3

= Table.Pivot(#"Removed Other Columns", List.Distinct(#"Removed Other Columns"[TokenValue]), "TokenValue", "HtmlValue")

5d8209ccda4be011511970.png
So, now the problem itself is with excel 2007.
Here is a separate sheet from which data from the database is displayed. When creating a new sheet, I cannot repeat the previous code.
5d820ca64c0d2931853375.png
I'm trying using this
=TRANSPOSE(Sheet1!A17736:C18550)
. But it's stupid, because you need the user's designation to remain in the column.
How can I correctly do the same as the example above only in Excel 2007? Again, the data is dynamic.
Thanks in advance for your reply!

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question