Excel, birkaç çalışma sayfasını tek bir çalışma sayfasında birleştirir. Her çalışma sayfasının günden güne farklı sayıda kaydı olabilir, bu nedenle formüller uygulanacak yol değildir. Bunun yerine, Power Query adlı az bilinen bir araç, verileri basit ve hızlı bir şekilde birleştirmenize izin verir.
Video izle
- Doug: Her biri farklı sayıda satır içeren dört sayfa nasıl birleştirilir?
- Power Query kullanın
- Her çalışma sayfasını Ctrl + T ile Tablo olarak biçimlendirin
- Tabloları yeniden adlandırın
- Her tablo için, Tablodan yeni sorgu. Bölge için özel bir sütun ekleyin
- Kapat ve Yükle yerine Kapat ve Yükle… öğesini seçin. Yalnızca Bağlantı Oluşturun
- Yeni Sorgu Kullan, Sorguyu Birleştir, Ekle. 3 veya Daha Fazla Tablo. Tabloları Seçin ve Ekle
- Kapat ve Yükle ve veriler yeni bir çalışma sayfasında görünür
- Ekstra sütunlu bir tablo için: veriler yalnızca o sayfanın kayıtları için gösterilir
- Sütunların yanlış sırada olduğu tek tablo için: Power Query düzgün çalıştı!
- Daha sonra yenilenmesi kolay
Otomatik Oluşturulan Transkript
- Podcast Bölümünden Excel Öğrenin
- 2178 bugünün çalışma sayfaları için birleştirme
- Doug'dan YouTube üzerinden sorulan soru buna sahip
- durumda, her birinin
- sayfa, satış verilerini içeren bir bölgedir ve
- kayıt sayısı aylık olarak değişir ve
- Şu anda Doug formülleri kullanmaya çalışıyor
- ama satır sayısı değiştiğinde
- bir kabusa dönüştü bu yüzden hey dedim
- Doug, varsa güç sorgusunu kullanabilir miyiz?
- Excel 2010 veya Excel 2013 ücretsizdir
- Microsoft'tan indirin veya oluşturulmuştur
- 2016'da ve Office 365'te hepsine evet diyor
- işte elimizde ne var
- dört doğu merkez bölgeyi bildiriyor
- güney bölgesi ve batı bölgesi
- bölge ve her birinin farklı
- Güneydeki gibi kayıtların sayısı
- Doğuda 72 kaydımız var
- bölge 193 kayıtları ve bu
- doğru değiştir
- bu raporu her çalıştırdığımızda
- şimdi farklı sayıda kayıt var
- önce burada bazı varsayımlar yaptı
- merkezi adında bir sütun yok ve
- o zaman ben de tamamen kötü olacağım
- burada ve istediğim Güney Bölgesini al
- denemek ve mahvetmek, ben alacağım
- kar sütunu kesin ve nasıl yapıştırın
- bunları tersine çevir ve sonra tamam
- sütunların ters çevrildiği bir tane var
- ve sonra yapacağımız bir tane daha
- ekstra sütun brüt kar yüzdesi ekleyin
- yani bu, kâr bölü
- ideal bir dünyada gelir bunların hepsi
- tamamen aynı şekilde ama öğrendiğim gibi
- geçenlerde aşağıda bir seminer yapıyordum
- Kuzey Carolina eğer iyi değillerse
- birisinin durumu iyi biliyorsun
- yılın yarısında işler değişti
- ve yeni bir sütun veya taşıma eklediler
- Etrafımızdaki sütunlar gerçekten mutluyuz
- güçlü sorgunun başa çıkabildiğini görün
- tamam bu yüzden alacağız
- bu raporların her biri ve
- tablo gibi resmi bir tablo formatı
- bu kontrol çayı veya sen kullanabilirsin
- benim için isim aralığı kontrol t
- Gitmenin daha kolay yolu ve burada ne yapıyorlar
- bu masaya bir mi diyorlar?
- bunu merkezi olarak adlandırın ve
- sonra Doğu kontrole gidiyoruz T Tamam'a tıklayın
- Ve şimdi buna Doğu denecek hey
- daha önceki bir podcast'te, eğer
- bunlar biz dört ayrı dosyaydı
- güç sorgusunu sadece
- dosyaları birleştirin ancak bu işe yaramaz
- onlar dört ayrı veya dört çalışma sayfası
- aynı kitapta çok iyi oradayız
- git ve sonra
- bu kontrol gibi - biraz sıkıcı
- bunu ilk kez kur ama oğlum
- harika olacak
- bunu daha sonra her güncellemeniz gerektiğinde
- öyleyse yapacağız, gidiyoruz
- bu ilk masa merkezini seçmek için
- bölge ve 2010 veya 2013'teyseniz ve
- indirilmiş güç sorgusu yapacaksın
- kendi sekmesi olacak ama 16'da
- Excel 2016 aslında
- ikinci grup olan dönüştürüldü
- Office 365 artık dönüşüyor
- bu ilk grup ve bu yüzden biz
- bunu yaratacaklarını söyleyecekler
- bir tablodan veya aralıktaki veriler tamamdır ve
- 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
- bu soruyu iyi söylüyorum teşekkür ederim
- uğramak için bir dahaki sefere görüşürüz
- başka bir net döküm için
Dosyayı indir
Örnek dosyayı buradan indirin: Podcast2178.xlsm