Importing data from one workbook to another

valkyrn

New Member
Joined
May 31, 2019
Messages
4
Hi all,

Sorry if this has been covered before but i cannot find the answer to my question...

Right, here is my scenario...

One workbook gets sent out everyday from production, the values change but the structure of the workbook stay intact. This data i would like to get imported into another excel workbook where we produce graphs from the production data.

e.g. The workbook that we use to populate the graphs lists all the failure modes in column A. The dates are listed horizontally where we would input all data from the production file on a daily basis.

Would anyone help me with a solution to do the following: -


  1. Import data using a file dialog screen to select the appropriate file.
  2. Transfer values from specific failure modes from production workbook to metrics workbook. This must go in a new column without altering the format.

Hopefully i have explained good enough! If you need more information, just ask :)

Example xlsx

Thanks in advance!
 

Excel Facts

Highlight Duplicates
Home, Conditional Formatting, Highlight Cells, Duplicate records, OK to add pink formatting to any duplicates in selected range.
Forgot to mention - My example contains only one workbook, i have used tabs to try and get my point across instead of creating multiple files i.e. tab 1 = production and tab 2 = metrics.
 
Upvote 0
you can try PowerQuery (Get&Transform)

with one file

Date01/06/2019
failure mode 11
failure mode 24
failure mode 36
failure mode 48
failure mode 59
failure mode 612
failure mode 745
failure mode 83
failure mode 92
failure mode 101

with two more files

Date01/06/201902/06/201903/06/2019
failure mode 11372
failure mode 242449
failure mode 36429
failure mode 4898
failure mode 59345
failure mode 6123627
failure mode 7453145
failure mode 83150
failure mode 9221
failure mode 1013611

is that what you want?
 
Upvote 0
you can try PowerQuery (Get&Transform)

with one file

[COLOR=[URL=https://www.mrexcel.com/forum/usertag.php?do=list&action=hash&hash=FFFFFF]#FFFFFF[/URL] ]Date[/COLOR][COLOR=[URL=https://www.mrexcel.com/forum/usertag.php?do=list&action=hash&hash=FFFFFF]#FFFFFF[/URL] ]01/06/2019[/COLOR]
failure mode 11
failure mode 24
failure mode 36
failure mode 48
failure mode 59
failure mode 612
failure mode 745
failure mode 83
failure mode 92
failure mode 101

<tbody>
</tbody>


with two more files

[COLOR=[URL=https://www.mrexcel.com/forum/usertag.php?do=list&action=hash&hash=FFFFFF]#FFFFFF[/URL] ]Date[/COLOR][COLOR=[URL=https://www.mrexcel.com/forum/usertag.php?do=list&action=hash&hash=FFFFFF]#FFFFFF[/URL] ]01/06/2019[/COLOR][COLOR=[URL=https://www.mrexcel.com/forum/usertag.php?do=list&action=hash&hash=FFFFFF]#FFFFFF[/URL] ]02/06/2019[/COLOR][COLOR=[URL=https://www.mrexcel.com/forum/usertag.php?do=list&action=hash&hash=FFFFFF]#FFFFFF[/URL] ]03/06/2019[/COLOR]
failure mode 11372
failure mode 242449
failure mode 36429
failure mode 4898
failure mode 59345
failure mode 6123627
failure mode 7453145
failure mode 83150
failure mode 9221
failure mode 1013611

<tbody>
</tbody>


is that what you want?

Thanks for the reply, i will look into powerquery and see if it does what i want.

Would this method automatically sort the fields once setup? as multiple users have to compile reports. The reason i want to do this is to simplify the process.
 
Upvote 0
first: don't quote whole post. just enough to use: @sandy666 if you answer to me [Reply not Reply With Quotes]

it works this way:
  • you've a folder with production files (each file has different name of course)
  • as you said each day you add new file
  • so after add new file to the folder just right click on the green table and select refresh
  • and each time you'll get new column with new data
hope it's clear

nb. PowerQuery is required :)

what you mean: sort fields? which fields? I need detailed info
 
Last edited:
Upvote 0

Forum statistics

Threads
1,214,979
Messages
6,122,550
Members
449,088
Latest member
davidcom

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top