Solution to pull data

Matthew 61 Reputation points
2021-01-10T17:01:51.707+00:00

Hi, I need help to pull data.

There is existing data from four worksheet: Illnois Medical, Illnois Food, Florida Medical, and Florida Food.

There are blank worksheet: Dog Medical, Dog Food, Cat Medical, Cat Food.

I would like for the blank worksheet to pull data the columns from the existing data.

Matthew55033-illnois-medical.png55034-illnois-food.png55035-florida-medical.png55111-florida-food.png55112-dog-medical.png55036-dog-food.png55037-cat-medical.png55038-cat-food.png

Microsoft 365 and Office | Excel | For business | Windows
0 comments No comments
{count} votes

Answer accepted by question author
  1. Lz._ 38,106 Reputation points Volunteer Moderator
    2021-01-12T16:02:20.843+00:00

    @MDN5551

    WOW.... In sumarry:
    1/ Format data in sheets Illinois Med, Illinois Food, Florida Med and Florida Food as Tables
    2/ Rename them respectively IllinoisMed, IllinoisFood, FloridaMed and FloridaFood
    3/ Click somewhere in the IllinoisMed table > Data (tab) > From Table/Range (Power Query editor opens) > Arrow below Close & Load > Close & Load To... > Check "Only Create Connection" > OK
    4/ Repeat #3 for tables IllinoisFood, FloridaMed and FloridaFood
    5/ In the Data tab > Queries & Connections (the corresponding pane appears on the right)
    6/ Right-click on query IllinoisMed > Append > Second table = FloridaMed > OK > Arrow below Close & Load > Close & Load To... > Check "Only Create Connection" > OK + In the Query & Connection pane > Right-click on this new query > Rename > Medical
    7/ Repeat #6 with query IllinoisFood > Second table = FloridaFood + Rename this new query Food
    8/ In the Query & Connection pane > Right-click on query Medical > Reference (Power Query editor opens) > Click the arrow on the [Pet] column > Uncheck "Cat" > OK > Close & Load (this creates a new sheet with table for Medical + Dog)
    9/ Repeat #8 but uncheck "Dog" this time => new sheet with table for Medical + Cat
    10/ In the Query & Connection pane > Right-click on query Food > Reference (Power Query editor opens) > Click the arrow on the [Pet] column > Uncheck "Cat" > OK > Close & Load (this creates a new sheet with table for Food + Dog)
    11/ Repeat #10 but uncheck "Dog" this time => new sheet with table for Food + Cat


2 additional answers

Sort by: Most helpful
  1. Erin Ding-MSFT 4,491 Reputation points
    2021-01-11T09:04:03.717+00:00

    @Matthew

    Maybe you could try as below.

    1. Insert a Table for the data in worksheet IIInois Medical.
      55292-1.png
    2. Filter Dog in the list.
      55080-2.png
    3. Then the data are listed as below automatically, copy A2:E5.
      55129-3.png
    4. Paste in cell A3 in worksheet Dog Medical.
      55311-4.png

    Other steps are similar.


    If an Answer is helpful, please click "Accept Answer" and upvote it.
    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.

    0 comments No comments

  2. Lz._ 38,106 Reputation points Volunteer Moderator
    2021-01-11T14:12:05.953+00:00

    Hi @Matthew

    With Get & Transform aka Power Query (no copy/paste nor anything like that). Sample available here.

    NB: When you add/change data in the Source tables (Illinois medical, Illinois food...), right-click somewhere in the green tables (Dog medical, Cat food...) > Refresh


Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.