Forum

Notifications
Clear all

Extracting data from multiple Excel files

17 Posts
4 Users
0 Reactions
373 Views
(@eight08)
Posts: 9
Active Member
Topic starter
 

My company uses an excel sheet to create quality alerts. The data I need to extract from all of these alerts is in different cells with no headers. The data IS in the same cell for each alert (date, non-conformance, machine number, etc.) Some of the data cells are merged Is it possible to extract this data into one basic sheet with headers so I can create a dashboard?

 
Posted : 29/07/2024 3:21 pm
(@eight08)
Posts: 9
Active Member
Topic starter
 

Quality Alert

 
Posted : 29/07/2024 9:01 pm
Riny van Eekelen
(@riny)
Posts: 1185
Member Moderator
 

Please upload a file (or files) that demonstrate the actual structure (or lack thereof) of the data. Without that, it's difficult to help.

 
Posted : 30/07/2024 12:41 am
(@eight08)
Posts: 9
Active Member
Topic starter
 

Here you go. 

 
Posted : 30/07/2024 12:22 pm
Riny van Eekelen
(@riny)
Posts: 1185
Member Moderator
 

Thanks for the file. But now please explain what you want to do with it/them.

Say, you have 10 of these sheets what data would have to be extracted to your dashboard?

 
Posted : 31/07/2024 1:45 am
(@eight08)
Posts: 9
Active Member
Topic starter
 

Rows 4 and 5 (shift, author, date, location, equipment, kanban, and part number) and rows 22 through 24 which are merged and use a dropdown menu to select the non-conformance.

Thank you very much for your help!

 
Posted : 31/07/2024 10:32 am
(@eight08)
Posts: 9
Active Member
Topic starter
 

Any suggestionss?

 
Posted : 02/08/2024 3:02 pm
Riny van Eekelen
(@riny)
Posts: 1185
Member Moderator
 

I didn't notice your post number 6 until now.

Sorry for being ignorant, but I don't know what you mean. what would you want to extract and how should the end result look like?

 
Posted : 03/08/2024 2:12 am
(@eight08)
Posts: 9
Active Member
Topic starter
 

I want to use power query to make this attachment.....

 
Posted : 03/08/2024 12:35 pm
(@eight08)
Posts: 9
Active Member
Topic starter
 

Look like this attachment. I have hundreds of them to pull. I am concerned about the "SPLIT" field because it is merged cells.

 
Posted : 03/08/2024 10:03 pm
(@eight08)
Posts: 9
Active Member
Topic starter
 

Come on dude. You ain't even trying on this one. Send an administrator.

 
Posted : 04/08/2024 1:31 am
Riny van Eekelen
(@riny)
Posts: 1185
Member Moderator
 

I'm afraid PQ can't create a schedule like you attached to post nr 9. It's a formatted report with boarders, colors, a picture, checkboxes, data validation etc. PQ loads data back to Excel in a tabular format, which would then be the basis for further analysis.

You could use PQ to pick-up all the data from separate files (like the example.xlsx) and create one large table. Then I would consider to use Mail Merge in Word to create the forms you need. Just an idea.

And as a general note on merged cells. These do more harm then good and should be avoided as much as possible.

 

PS: Please don't call me 'dude'!!

 
Posted : 04/08/2024 1:51 am
Anders Sehlstedt
(@sehlsan)
Posts: 968
Prominent Member
 

Hello,

I assume you want something like the attached file. It's just a quick fix solution that might work with your real data.

In this example I saved your 58314-0A020-split-07-11-24.xlsx three times as 1.xlsx, 2.xlsx and 3.xlsx to C:Temp1 folder. Did some minor changes in 2 and 3 files just to have some differences.

As always, it is better to adjust so that the reported data is entered in a correct format than to try to correct it later on.

Any way, I hope this gives some help on your way forward.

Br,
Anders

 
Posted : 04/08/2024 9:56 am
Riny van Eekelen
(@riny)
Posts: 1185
Member Moderator
 

Makes sense Anders! I totally misread the OP's intentions. Tack så mycket!!

 
Posted : 04/08/2024 10:49 am
(@eight08)
Posts: 9
Active Member
Topic starter
 

Anders,

Thank you very much! Your example shows exactly what I want to do. I need to query hundreds of these Quality Alerts. I did more research and learned a bit about removing merged cells when transforming as I was worried about the merged cells in rows 22-24. For this Quality Alert, it resulted in both the shift and the unmerged "SPLIT" cell being in the same column.

 

Best regards,

Bradley

 
Posted : 04/08/2024 5:29 pm
Page 1 / 2
Share: