Share via

Headings with multiple columns

Anonymous
2024-07-24T22:34:25+00:00

Hi, are you able to help me solve this problem of sorting this data in a power query please? I wish to analyse the data associated with each heading under the words "Route Hazards" however there are several rows to merge and several columns with the same headings for data relating to individual rows (see Reference ID).

Route hazards Route hazards Route hazards
Poor sight lines or visibility of oncoming traffic problems on this route are adequately controlled? Drop off or pick up locations and bus stops, including school sites, have sufficient space for the safe loading and unloading of passengers? There is a safe approach distance (at least 26.0m) between parked vehicles or other structures and the Bus Stop Flag.
Reference Id Date Started (Computer Generated) Answer Score Comment Attachments Answer Score Comment Actions Answer Score Comment
HAZ0508 2024-07-03 • Yes 2 No Issues found • Yes 2 No Issues found • Yes 2 No Issues found
HAZ0509 2024-07-03 • Yes 2 No Issues found • No 0 Stop 5 (PM) School Rd bushes need pruning on side of road. 1 • Yes 2 No Issues found
Microsoft 365 and Office | Excel | For business | Other

Locked Question. This question was migrated from the Microsoft Support Community. You can vote on whether it's helpful, but you can't add comments or replies or follow the question.

0 comments No comments

Answer accepted by question author

Andreas Killer 144.1K Reputation points Volunteer Moderator
2024-07-26T12:01:29+00:00

Sample file changed.

Open the file

Open the queries pane
https://support.microsoft.com/en-us/office/manage-queries-power-query-76f93a6d-37d9-46b5-bc40-d5f2162401f5

Edit the Import query

Select the Source step and change the path to the file on your PC:

Close the PQ editor

Data \ Refresh All

Andreas.

Was this answer helpful?

1 person found this answer helpful.
0 comments No comments

4 additional answers

Sort by: Most helpful
  1. Anonymous
    2024-07-26T09:16:45+00:00

    Hi Andreas,

    Thanks again, I was not successful so I have attached all the data and blanked out names. I guess I can replace that data. I would very much appreciate your help once again. I hope this link works.

    Headings with multiple columns.xlsx

    Thank you.

    Was this answer helpful?

    0 comments No comments
  2. Andreas Killer 144.1K Reputation points Volunteer Moderator
    2024-07-26T07:07:39+00:00

    Copy the data into my file into the Data tab.

    Expand the named range "Data" to include the new data.

    Click Data \ Refresh all

    If that doesn't work you have to edit the query and adjust the steps.

    If you need further help, I need to see your file.
    Why a sample file is important for troubleshooting. How to do it. - Microsoft Community

    Andreas.

    Was this answer helpful?

    0 comments No comments
  3. Anonymous
    2024-07-26T06:17:23+00:00

    HI Andreas,

    Thankyou so much it looks great, however can you help me a little more please because there are more columns and rows attached to the original worksheet. How can I add this data please?

    Many thanks

    Was this answer helpful?

    0 comments No comments