Yhdistä 4 arkkia - Excel-vinkkejä

Sisällysluettelo

Excel yhdistää useita laskentataulukoita yhdeksi laskentataulukoksi. Jokaisella laskentataulukolla voi olla eri määrä tietueita päivittäin, joten kaavat eivät ole oikea tapa edetä. Sen sijaan vähän tunnettu työkalu nimeltä Power Query antaa sinun yhdistää tiedot yksinkertaisesti ja nopeasti.

Katso video

  • Doug: Kuinka yhdistää neljä arkkia, joissa jokaisella on erilainen määrä rivejä?
  • Käytä virtakyselyä
  • Muotoile kukin laskentataulukko taulukkona painamalla Ctrl + T
  • Nimeä taulukot uudelleen
  • Jokaiselle taulukolle uusi kysely taulukosta. Lisää oma sarake alueelle
  • Valitse Sulje ja lataa -kohdan sijaan Sulje ja lataa … Luo vain yhteys
  • Käytä Uusi kysely, Yhdistä kysely, Liitä. 3 tai useampia taulukoita. Valitse Taulukot ja Lisää
  • Sulje ja lataa, ja tiedot näkyvät uudessa laskentataulukossa
  • Yhden taulukon, jossa on ylimääräinen sarake, tiedot näkyvät vain kyseisen taulukon tietueissa
  • Yhden taulukon sarakkeet väärässä järjestyksessä: Power Query toimi oikein!
  • Helppo päivittää myöhemmin

Automaattisesti luotu transkriptio

  • Opi Excel Podcast-jaksosta
  • 2178 sulautuu nykypäivän laskentataulukoita varten
  • kysymys YouTuben kautta Dougilta on tämä
  • tilanteessa meillä on neljä arkkia, joista kukin
  • taulukko on alue, jolla on myyntitietoja ja
  • - tietueiden määrä muuttuu kuukausittain ja
  • juuri nyt Doug yrittää käyttää kaavoja
  • mutta kun rivien lukumäärä muuttui
  • tulee painajainen oikein, joten sanoin hei
  • Doug, voimmeko käyttää tehokyselyä, jos sinulla on
  • Excel 2010 tai Excel 2013 on ilmainen
  • lataa Microsoftilta tai se on rakennettu
  • vuoteen 2016 ja Office 365: een se sanoo kyllä ​​kaikki
  • niin tässä on mitä meillä on
  • neljä raportoi itäisen keskialueen
  • alue etelään ja länteen
  • alue ja jokaisella on erilainen
  • ennätysten määrä kuin täällä etelässä
  • Alueella on 72 tietuetta idässä
  • alue 193 ennätystä ja tämä on menossa
  • vaihda oikealle
  • joka kerta, kun suoritamme tämän raportin
  • eri määrä levyjä nyt
  • teki tässä ensin joitain oletuksia
  • ei ole saraketta nimeltä Keski ja
  • sitten myös olen täysin paha
  • tänne ja vie eteläinen alue, jonka haluan
  • yritä ruuvata se aion ottaa
  • voitto sarake leikkaa se ja liitä se miten
  • päinvastoin ja sitten kaikki hyvin, niin me
  • on yksi, jossa sarakkeet ovat päinvastaiset
  • ja sitten toinen, johon aiomme tulla
  • lisää ylimääräinen sarake bruttovoittoprosentti
  • joten tästä tulee voittoa jaettuna
  • tulot ihanteellisessa maailmassa, nämä kaikki ovat
  • muotoinen täsmälleen sama, mutta kuten opin
  • äskettäin tein seminaarin vuonna
  • Pohjois-Carolina, jos he eivät ole kunnossa
  • jollakin oli tilanne hyvin tiedät
  • vuoden puolivälissä asiat muuttuivat
  • ja he lisäsivät uuden sarakkeen tai siirron
  • sarakkeet ympärillämme olimme todella onnellisia
  • nähdä, että tehokysely pystyi käsittelemään
  • kaiken tämän kanssa, joten aiomme ottaa
  • jokainen näistä raporteista ja tehdä siitä
  • virallinen taulukon muoto taulukkona
  • se on kontrolliteetä tai voit käyttää a
  • nimialue minulle ohjausobjektille t on
  • helpompi tapa edetä ja mitä he tekevät täällä
  • kutsuvatko tätä pöytää sellaiseksi aion
  • nimeä tämä uudelleen kutsumaan keskus ja
  • sitten siirrymme itäohjaukseen ja napsauta OK
  • ja tätä kutsutaan itään nyt hei
  • aikaisemmassa podcastissa näytin miten jos
  • nämä ovat olleet neljä erillistä tiedostoa
  • olisi voinut käyttää tehokyselyä vain
  • yhdistää tiedostoja, mutta se ei toimi, kun
  • ne ovat neljä erillistä tai neljä laskentataulukkoa
  • samassa kirjassa niin hyvin siellä
  • mene ja sitten
  • kuten tämä ohjaus-t hieman tylsä
  • asetti tämän ensimmäisen kerran, mutta poika
  • tulee olemaan mahtavaa
  • joka kerta, kun sinun on päivitettävä tämä myöhemmin
  • niin aiomme tehdä, olemme menossa
  • valita tämän ensimmäisen taulukon keskipiste
  • alueella ja jos olet vuosina 2010 tai 2013 ja
  • ladattu virtakysely aiot
  • Minulla on oma välilehti, mutta 16 tuumaa
  • Excel 2016 on todella saamassa
  • muunnettu, mikä on ryhmän toinen ryhmä
  • Office 365 on nyt muuttumassa
  • joka on ensimmäinen ryhmä ja niin olemme
  • sanon, että he aikovat luoda tämän
  • tiedot taulukosta tai alueelta kaikki oikein ja
  • there is our data now we don't have a
  • region field and the combined files
  • would have added the region field so in
  • this case I'm just gonna add a column a
  • new custom call the headings gonna be
  • region and this one is going to be what
  • was this central right like that
  • click OK alright now here's the
  • important part when we're done this with
  • this we're gonna go home not choose
  • close and load we're gonna open the
  • drop-down close and load to only create
  • a connection click OK
  • perfect we have our connection only now
  • the next thing we have to do is repeat
  • these steps for the next three regions
  • and now that would be really a bit
  • boring to you so let's just speed up the
  • video to 10x for this
  • alright there we are for connections set
  • up now here's where we're going to do
  • the magic I'm gonna insert a new blank
  • worksheet and I'm gonna say get data
  • combine queries and I want to append two
  • queries from this workbook and I'm gonna
  • say three or more tables and the
  • available tables are Central through
  • West click Add BAM click OK and then we
  • can close and load and what we have here
  • is we have a superset of all of the
  • records in all of the tables all right
  • and where we tried to screw it up where
  • I purposely tried to screw up by
  • reversing cost of goods sold and profit
  • down in what was that that was Central
  • East South in the South Region I'll just
  • go check those right and it looks like
  • yeah generally feels right they used the
  • heading to figure it out because the
  • profit is always higher than cost of
  • goods sold and so that worked and then
  • down here in the West where we added
  • gross profit percent we actually get
  • that data for the tables that had it and
  • for the tables that didn't have it we
  • just get null which is perfect alright
  • now duck
  • here's what you're gonna do so the next
  • time that you have some more data and
  • I'll just let's create some some extra
  • records here we'll just add some ABC
  • with a date of today and all retail and
  • it's called Doug's new records and just
  • some garbage out here let's just put in
  • a hundred all the way across in the
  • interest of time okay so now because
  • this is a table the table automatically
  • expands to the new records which is
  • beautiful had they been named range I
  • would have had a redefine that's why I
  • really like the table instead of the
  • name range but we come back here to the
  • resulting workbook with 563 rows loaded
  • and I click refresh
  • and bam now I have 572 Rose loaded
  • including let's see if we can find them
  • in here
  • Doug's new records right there at the
  • end of the South Region
  • isn't that just an awesome awesome way
  • to go yes it definitely takes longer to
  • set up the first day we're up to seven
  • minutes already if I hadn't sped that up
  • to 10x but once it's set up now life is
  • gonna be super super easy from here on
  • out way this is where I usually promote
  • my own book but no this time let's talk
  • about this awesome book Emma's for data
  • monkey by Ken polls in Miguel Escobar
  • everything I learned about power query I
  • learned from this book look at the eye
  • on the top right hand corner for more
  • information about that book all right
  • wrap up topics in this episode Doug how
  • to combine four sheets where each sheet
  • has a different number of rows we can
  • use power query make sure to format each
  • worksheet as a table with ctrl T or use
  • named ranges but I prefer ctrl T rename
  • the tables from each table choose new
  • query from table add a custom column for
  • a region and then instead of close and
  • load choose close and load to only
  • create a connection do that for all four
  • queries and then new query combined
  • query append choose three or more tables
  • choose the tables and click Add
  • now some older versions of power query
  • you couldn't do three or more tables you
  • have to do two and then do another query
  • to add the third one and then do another
  • query to add the fourth one either way
  • it would be more hassle that way I'm
  • glad that they added the three or more
  • tables close and load this time close
  • and load to the worksheet and and then
  • later on if you add more data to any of
  • the four tables just go back to your
  • query and click refresh and you're good
  • to go
  • power query and amazing new feature from
  • Microsoft I love it I thank Doug for
  • sanon tämän kysymyksen hyvin kiitos
  • pysähtymiseen nähdään ensi kerralla
  • toisesta verkosta valettu

Lataa tiedosto

Lataa esimerkkitiedosto täältä: Podcast2178.xlsm

Mielenkiintoisia artikkeleita...