<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	xmlns:itunes="http://www.itunes.com/dtds/podcast-1.0.dtd"
xmlns:podcast="https://podcastindex.org/namespace/1.0"
xmlns:rawvoice="https://blubrry.com/developer/rawvoice-rss/"
>

<channel>
	<title>Chandoo.org &#8211; Learn Excel, Power BI &amp; Charting Online</title>
	<atom:link href="https://chandoo.org/wp/feed/" rel="self" type="application/rss+xml" />
	<link>https://chandoo.org/wp/</link>
	<description>Fresh Excel Tips, Power BI, Power Pivot, Power Query, Tricks, Charts, Tutorials, Downloads, Dashboards and Visualization Showcase for your Inspiration and Productivity</description>
	<lastBuildDate>Mon, 15 Dec 2025 23:03:21 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=6.9.4</generator>

<image>
	<url>https://chandoo.org/wp/wp-content/uploads/2016/09/chandoo.org-logo-th.png</url>
	<title>Chandoo.org &#8211; Learn Excel, Power BI &amp; Charting Online</title>
	<link>https://chandoo.org/wp/</link>
	<width>32</width>
	<height>32</height>
</image> 
	<atom:link rel="hub" href="https://pubsubhubbub.appspot.com/" />
	<itunes:author>Chandoo</itunes:author>
	<itunes:explicit>false</itunes:explicit>
	<itunes:image href="https://chandoo.org/wp/wp-content/uploads/2023/07/chandoo-podcast-logo.jpg" />
	<itunes:owner>
		<itunes:name>Chandoo</itunes:name>
		<itunes:email>hello@chandoo.org</itunes:email>
	</itunes:owner>
	<copyright>Copyright - Chandoo</copyright>
	<podcast:license>Copyright - Chandoo</podcast:license>
	<podcast:medium>podcast</podcast:medium>
	<image>
		<title>Chandoo.org &#8211; Learn Excel, Power BI &amp; Charting Online</title>
		<url>https://chandoo.org/wp/wp-content/uploads/2023/07/chandoo-podcast-logo.jpg</url>
		<link>https://chandoo.org/wp/posts/</link>
	</image>
	<itunes:category text="Technology" />
	<itunes:category text="Business">
		<itunes:category text="Careers" />
	</itunes:category>
	<itunes:category text="Education">
		<itunes:category text="How To" />
	</itunes:category>
	<podcast:podping usesPodping="true" />
	<rawvoice:subscribe feed="https://chandoo.org/wp/feed/" itunes="https://itunes.apple.com/us/podcast/chandoo.org-podcast-become/id835954043" spotify="https://open.spotify.com/show/1wr79nj0tmxFMqxzxnPnEY"></rawvoice:subscribe>
<site xmlns="com-wordpress:feed-additions:1">2374164</site>	<item>
		<title>FREE Calendar &#038; Planner Excel Template for 2026</title>
		<link>https://chandoo.org/wp/free-calendar-planner-excel-template-for-2026/</link>
					<comments>https://chandoo.org/wp/free-calendar-planner-excel-template-for-2026/#respond</comments>
		
		<dc:creator><![CDATA[Chandoo]]></dc:creator>
		<pubDate>Mon, 15 Dec 2025 23:03:15 +0000</pubDate>
				<category><![CDATA[Learn Excel]]></category>
		<category><![CDATA[Templates]]></category>
		<category><![CDATA[calendar template]]></category>
		<category><![CDATA[downloads]]></category>
		<category><![CDATA[dynamic array formulas]]></category>
		<category><![CDATA[excel]]></category>
		<category><![CDATA[sequence]]></category>
		<guid isPermaLink="false">https://chandoo.org/wp/?p=19552</guid>

					<description><![CDATA[<p>Here is a fabulous New Year gift to you. A free 2025 Calendar Excel Template with built-in Activity planner. This is a fully dynamic and 100% customizable Excel calendar for 2025. </p>
<p>The post <a href="https://chandoo.org/wp/free-calendar-planner-excel-template-for-2026/">FREE Calendar &amp; Planner Excel Template for 2026</a> appeared first on <a href="https://chandoo.org/wp">Chandoo.org - Learn Excel, Power BI &amp; Charting Online</a>.</p>
]]></description>
										<content:encoded><![CDATA[
<p>Here is a fabulous New Year gift to you. A free 2026 Calendar Excel Template with built-in Activity planner. This is a fully dynamic and 100% customizable Excel calendar for 2026.</p>



<figure class="wp-block-image size-full"><a href="https://chandoo.org/wp/wp-content/uploads/2025/12/2026-calendar-planner-1.xlsx"><img fetchpriority="high" decoding="async" width="1600" height="980" src="https://chandoo.org/wp/wp-content/uploads/2025/12/screenshot-0283.png" alt="2026 calendar and planner - excel template (free)" class="wp-image-19553" srcset="https://chandoo.org/wp/wp-content/uploads/2025/12/screenshot-0283.png 1600w, https://chandoo.org/wp/wp-content/uploads/2025/12/screenshot-0283-768x470.png 768w, https://chandoo.org/wp/wp-content/uploads/2025/12/screenshot-0283-1536x941.png 1536w" sizes="(max-width: 1600px) 100vw, 1600px" /></a></figure>



<ul class="wp-block-list">
<li>See the calendar for entire year in a single view</li>



<li>Dynamic <em>any month </em>calendar with detailed plan view</li>



<li>Beautifully formatted and ready to print 12 month calendar view</li>



<li>Automatic updation of holidays, weekends and activities</li>



<li>Snapshot of upcoming activities</li>



<li>Fully customizable &#8211; start on any day, any weekend, custom holidays</li>



<li>Optimized for screen and print outs</li>
</ul>



<p>Click the below button to download the free 2025 calendar template.</p>



<div class="wp-block-buttons is-layout-flex wp-block-buttons-is-layout-flex">
<div class="wp-block-button is-style-fill"><a class="wp-block-button__link has-background wp-element-button" href="https://chandoo.org/wp/wp-content/uploads/2025/12/2026-calendar-planner-1.xlsx" style="background:linear-gradient(300deg,rgb(2,3,129) 0%,rgb(40,116,252) 100%)" target="_blank" rel="noreferrer noopener">Download the 2026 Calendar Template</a></div>
</div>



<div style="height:50px" aria-hidden="true" class="wp-block-spacer"></div>



<h2 class="wp-block-heading">Compatibility</h2>



<p>This calendar is compatible with Excel 365. It uses modern dynamic formula techniques to automatically generate the calendar, planner and month views. </p>



<p>If you have an older version of Excel (such as 2019 or 2016, 2013) then please <a href="https://chandoo.org/wp/wp-content/uploads/2025/12/2026-calendar-with-daily-planner.xlsx">use this alternative version</a>.</p>



<h2 class="wp-block-heading">How to use the 2026 Calendar Workbook?</h2>



<figure class="wp-block-image size-full"><img decoding="async" width="1397" height="779" src="https://chandoo.org/wp/wp-content/uploads/2025/12/screenshot-0282.png" alt="2026 calendar and planner Excel template - how to use" class="wp-image-19559" srcset="https://chandoo.org/wp/wp-content/uploads/2025/12/screenshot-0282.png 1397w, https://chandoo.org/wp/wp-content/uploads/2025/12/screenshot-0282-768x428.png 768w" sizes="(max-width: 1397px) 100vw, 1397px" /></figure>



<p>The calendar &amp; planner file has 4 tabs.</p>



<ol class="wp-block-list">
<li><strong>Calendar tab:</strong> See the 12-month calendar view + upcoming activities in this page. It also highlights any holidays, weekends and planned activities on the calendar in a different color.</li>



<li><strong>Any month tab: </strong>This page lets you see the calendar for any specific month in a detailed view. You can change the month from cell C3 and the calendar updates automatically. The calendar shows date, any activities planned in a neat grid view.</li>



<li><strong>Printable 12 Month Calendar:</strong> This tab presents an elegant and ready-to-print 12 month calendar. You can print it or save this as PDF to generate all the 12 pages instantly. The colors and fonts are also fully customizable.</li>



<li><strong>Planner tab:</strong> Use this tab to set up your activities. Whatever items you list here will automatically show up on the calendar &amp; any month tabs.</li>



<li><strong>Customizations tab: </strong>Do you want to change the way your week begins? Need to add some holidays or change the icons? Use the customizations tab.</li>
</ol>



<h2 class="wp-block-heading">How is this calendar made?</h2>



<p>The calendar workbook has two main components.</p>



<ul class="wp-block-list">
<li>Calendar</li>



<li>Planner</li>
</ul>



<h3 class="wp-block-heading">Calendar Generation</h3>



<figure class="wp-block-image size-full"><img decoding="async" width="1491" height="1205" src="https://chandoo.org/wp/wp-content/uploads/2025/12/screenshot-0284.png" alt="How the 2026 calendar template works" class="wp-image-19560" srcset="https://chandoo.org/wp/wp-content/uploads/2025/12/screenshot-0284.png 1491w, https://chandoo.org/wp/wp-content/uploads/2025/12/screenshot-0284-768x621.png 768w" sizes="(max-width: 1491px) 100vw, 1491px" /></figure>



<p>To generate the calendar, I am using the <em>dynamic array functionality </em>of Excel 365. We can use the SEQUENCE function to create all the dates in any given year. </p>



<p>For example, =SEQUENCE(365,,DATE(2026,1,1)) generates all the 365 dates in the year 2026.</p>



<p>I then used the same logic to generate monthly calendars for all the 12 months and adjusted them based on the week start option. </p>



<p>Once the monthly calendars are generated, then I highlighted the weekends, holidays and activities using conditional formatting.</p>



<h3 class="wp-block-heading">Activity Planner</h3>



<figure class="wp-block-image size-full"><img loading="lazy" decoding="async" width="678" height="513" src="https://chandoo.org/wp/wp-content/uploads/2025/12/screenshot-0281-1.png" alt="activity planner - excel" class="wp-image-19561"/></figure>



<p>You can set up any number of activities in the planner table. I am then using FILTER function to filter out the activities for a given day and show them next to the calendar date.</p>



<p>Also, if &#8220;highlight activities&#8221; is enabled, then I am highlighting the calendar cells in a different color.</p>



<p>In the 12-month calendar view, I am showing upcoming 10 activities using FILTER function too.</p>



<h3 class="wp-block-heading">Interactive any month calendar page:</h3>



<p>We use the same logic as above, but limit it to a selected month (with data validation drop-down) to show the calendar for any specific month. Here is the calendar for April 2026.</p>



<figure class="wp-block-image size-full"><img loading="lazy" decoding="async" width="1177" height="1005" src="https://chandoo.org/wp/wp-content/uploads/2025/12/screenshot-0285.png" alt="any month calendar 2026 excel template" class="wp-image-19562" srcset="https://chandoo.org/wp/wp-content/uploads/2025/12/screenshot-0285.png 1177w, https://chandoo.org/wp/wp-content/uploads/2025/12/screenshot-0285-768x656.png 768w" sizes="(max-width: 1177px) 100vw, 1177px" /></figure>



<h3 class="wp-block-heading">Know more about these calculations</h3>



<p>If you want to learn more about the calculations and set up of this workbook, please refer to these articles + videos.</p>



<ul class="wp-block-list">
<li><a href="https://chandoo.org/wp/dynamic-array-functions/">Dynamic array functions in Excel &#8211; introduction to FILTER, SEQUENCE etc.</a></li>



<li><a href="https://chandoo.org/wp/5-useful-conditional-formatting-tricks/">Conditional formatting to highlight values in Excel</a></li>



<li><a href="https://chandoo.org/wp/excel-add-drop-down-list/">Data validation to select a month in Excel cell</a></li>



<li><a href="https://chandoo.org/wp/create-an-excel-tracker/">Excel tables &#8211; How to create a simple tracker in Excel</a></li>



<li><strong>Video</strong>: <a href="https://youtu.be/JuTdj2j-9Kg" target="_blank" rel="noreferrer noopener">How to use FILTER function in Excel</a></li>
</ul>



<p><strong>Previous year calendars</strong> &#8211; <a href="https://chandoo.org/wp/free-calendar-planner-excel-template-for-2025/">2025 Calendar</a>,  <a href="https://chandoo.org/wp/free-calendar-planner-excel-template-for-2024/">2024 Calendar</a>, <a href="https://chandoo.org/wp/free-calendar-planner-excel-template-for-2023/">2023 Calendar</a>, <a href="https://chandoo.org/wp/free-excel-templates-download/">Free Excel templates &amp; files</a></p>



<p></p>
<p>The post <a href="https://chandoo.org/wp/free-calendar-planner-excel-template-for-2026/">FREE Calendar &amp; Planner Excel Template for 2026</a> appeared first on <a href="https://chandoo.org/wp">Chandoo.org - Learn Excel, Power BI &amp; Charting Online</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://chandoo.org/wp/free-calendar-planner-excel-template-for-2026/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
		<post-id xmlns="com-wordpress:feed-additions:1">19552</post-id>	</item>
		<item>
		<title>Who is my boss&#8217;s boss? [Data Analytics Challenge &#8211; 001]</title>
		<link>https://chandoo.org/wp/who-is-my-boss-boss-data-challenge-001/</link>
					<comments>https://chandoo.org/wp/who-is-my-boss-boss-data-challenge-001/#comments</comments>
		
		<dc:creator><![CDATA[Chandoo]]></dc:creator>
		<pubDate>Fri, 08 Aug 2025 06:13:44 +0000</pubDate>
				<category><![CDATA[Excel Challenges]]></category>
		<category><![CDATA[Learn Excel]]></category>
		<category><![CDATA[downloads]]></category>
		<category><![CDATA[excel]]></category>
		<category><![CDATA[homework]]></category>
		<category><![CDATA[power query]]></category>
		<guid isPermaLink="false">https://chandoo.org/wp/?p=19502</guid>

					<description><![CDATA[<p>Let&#8217;s try something different. I will share a data analytics challenge here. Post your solutions in the comments. Our first challenge involves Employee Data Analysis. You can score maximum of 35 points. Imagine you have employee data in this “staff” table (in Excel / Power BI / SQL / Python or whatever tool you fancy) [&#8230;]</p>
<p>The post <a href="https://chandoo.org/wp/who-is-my-boss-boss-data-challenge-001/">Who is my boss&#8217;s boss? [Data Analytics Challenge &#8211; 001]</a> appeared first on <a href="https://chandoo.org/wp">Chandoo.org - Learn Excel, Power BI &amp; Charting Online</a>.</p>
]]></description>
										<content:encoded><![CDATA[
<p>Let&#8217;s try something different. I will share a data analytics challenge here. Post your solutions in the comments.</p>



<p>Our first challenge involves Employee Data Analysis. You can score maximum of 35 points. </p>



<p>Imagine you have employee data in this “staff” table (in Excel / Power BI / SQL / Python or whatever tool you fancy)</p>



<figure class="wp-block-image size-full"><img loading="lazy" decoding="async" width="407" height="419" src="https://chandoo.org/wp/wp-content/uploads/2025/08/image.png" alt="" class="wp-image-19503"/></figure>



<p><strong><a href="https://chandoo.org/wp/wp-content/uploads/2025/08/staff-data-challenge-001.xlsx">Download sample data file</a></strong> (it has all the 28 employees) or use the below CSV.</p>



<div class="wp-block-kevinbatdorf-code-block-pro" data-code-block-pro-font-family="Code-Pro-JetBrains-Mono" style="font-size:clamp(18px, 1.125rem, 27px);font-family:Code-Pro-JetBrains-Mono,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace;line-height:clamp(26px, 1.625rem, 39px);--cbp-tab-width:2;tab-size:var(--cbp-tab-width, 2)"><span style="display:block;padding:16px 0 0 16px;margin-bottom:-1px;width:100%;text-align:left;background-color:#1E1E1E"><svg xmlns="http://www.w3.org/2000/svg" width="54" height="14" viewBox="0 0 54 14"><g fill="none" fill-rule="evenodd" transform="translate(1 1)"><circle cx="6" cy="6" r="6" fill="#FF5F56" stroke="#E0443E" stroke-width=".5"></circle><circle cx="26" cy="6" r="6" fill="#FFBD2E" stroke="#DEA123" stroke-width=".5"></circle><circle cx="46" cy="6" r="6" fill="#27C93F" stroke="#1AAB29" stroke-width=".5"></circle></g></svg></span><span role="button" tabindex="0" style="color:#D4D4D4;display:none" aria-label="Copy" class="code-block-pro-copy-button"><pre class="code-block-pro-copy-button-pre" aria-hidden="true"><textarea class="code-block-pro-copy-button-textarea" tabindex="-1" aria-hidden="true" readonly>Emp ID	Name	Reports to
TO-0002	Jim Halpert	TO-0007
TO-0004	Pam Beesly	TO-0015
TO-0007	Michael Scott	TO-0067
TO-0009	Erin Hannon	TO-0004
TO-0010	Jan Levinson	TO-0067
TO-0013	Karen Filippelli	TO-0076
TO-0015	Dwight Schrute	TO-0007
TO-0018	Andy Bernard	TO-0002
TO-0021	Cathy Simms	TO-0002
TO-0024	Kevin Malone	TO-0035
TO-0028	Creed Bratton	TO-0007
TO-0030	Toby Flenderson	TO-0067
TO-0031	Kelly Kapoor	TO-0028
TO-0033	Robert California	TO-0067
TO-0035	Angela Martin	TO-0007
TO-0039	Stanley Hudson	TO-0007
TO-0043	Ryan Howard	TO-0031
TO-0046	Oscar Martinez	TO-0035
TO-0050	Meredith Palmer	TO-0028
TO-0051	Gabe Lewis	TO-0072
TO-0055	Phyllis Vance	TO-0030
TO-0059	Roy Anderson	TO-0004
TO-0063	Nellie Bertram	TO-0030
TO-0066	Darryl Philbin	TO-0039
TO-0067	David Wallace	TO-0072
TO-0068	Pete Miller	TO-0015
TO-0072	Jo Bennet	
TO-0076	Todd Parker	TO-0002
</textarea></pre><svg xmlns="http://www.w3.org/2000/svg" style="width:24px;height:24px" fill="none" viewBox="0 0 24 24" stroke="currentColor" stroke-width="2"><path class="with-check" stroke-linecap="round" stroke-linejoin="round" d="M9 5H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V7a2 2 0 00-2-2h-2M9 5a2 2 0 002 2h2a2 2 0 002-2M9 5a2 2 0 012-2h2a2 2 0 012 2m-6 9l2 2 4-4"></path><path class="without-check" stroke-linecap="round" stroke-linejoin="round" d="M9 5H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V7a2 2 0 00-2-2h-2M9 5a2 2 0 002 2h2a2 2 0 002-2M9 5a2 2 0 012-2h2a2 2 0 012 2"></path></svg></span><pre class="shiki dark-plus" style="background-color: #1E1E1E" tabindex="0"><code><span class="line"><span style="color: #D4D4D4">Emp ID	Name	Reports to</span></span>
<span class="line"><span style="color: #D4D4D4">TO-0002	Jim Halpert	TO-0007</span></span>
<span class="line"><span style="color: #D4D4D4">TO-0004	Pam Beesly	TO-0015</span></span>
<span class="line"><span style="color: #D4D4D4">TO-0007	Michael Scott	TO-0067</span></span>
<span class="line"><span style="color: #D4D4D4">TO-0009	Erin Hannon	TO-0004</span></span>
<span class="line"><span style="color: #D4D4D4">TO-0010	Jan Levinson	TO-0067</span></span>
<span class="line"><span style="color: #D4D4D4">TO-0013	Karen Filippelli	TO-0076</span></span>
<span class="line"><span style="color: #D4D4D4">TO-0015	Dwight Schrute	TO-0007</span></span>
<span class="line"><span style="color: #D4D4D4">TO-0018	Andy Bernard	TO-0002</span></span>
<span class="line"><span style="color: #D4D4D4">TO-0021	Cathy Simms	TO-0002</span></span>
<span class="line"><span style="color: #D4D4D4">TO-0024	Kevin Malone	TO-0035</span></span>
<span class="line"><span style="color: #D4D4D4">TO-0028	Creed Bratton	TO-0007</span></span>
<span class="line"><span style="color: #D4D4D4">TO-0030	Toby Flenderson	TO-0067</span></span>
<span class="line"><span style="color: #D4D4D4">TO-0031	Kelly Kapoor	TO-0028</span></span>
<span class="line"><span style="color: #D4D4D4">TO-0033	Robert California	TO-0067</span></span>
<span class="line"><span style="color: #D4D4D4">TO-0035	Angela Martin	TO-0007</span></span>
<span class="line"><span style="color: #D4D4D4">TO-0039	Stanley Hudson	TO-0007</span></span>
<span class="line"><span style="color: #D4D4D4">TO-0043	Ryan Howard	TO-0031</span></span>
<span class="line"><span style="color: #D4D4D4">TO-0046	Oscar Martinez	TO-0035</span></span>
<span class="line"><span style="color: #D4D4D4">TO-0050	Meredith Palmer	TO-0028</span></span>
<span class="line"><span style="color: #D4D4D4">TO-0051	Gabe Lewis	TO-0072</span></span>
<span class="line"><span style="color: #D4D4D4">TO-0055	Phyllis Vance	TO-0030</span></span>
<span class="line"><span style="color: #D4D4D4">TO-0059	Roy Anderson	TO-0004</span></span>
<span class="line"><span style="color: #D4D4D4">TO-0063	Nellie Bertram	TO-0030</span></span>
<span class="line"><span style="color: #D4D4D4">TO-0066	Darryl Philbin	TO-0039</span></span>
<span class="line"><span style="color: #D4D4D4">TO-0067	David Wallace	TO-0072</span></span>
<span class="line"><span style="color: #D4D4D4">TO-0068	Pete Miller	TO-0015</span></span>
<span class="line"><span style="color: #D4D4D4">TO-0072	Jo Bennet	</span></span>
<span class="line"><span style="color: #D4D4D4">TO-0076	Todd Parker	TO-0002</span></span>
<span class="line"></span></code></pre></div>



<h2 class="wp-block-heading">1. How many people are <em>directly </em>reporting to my boss? (5pts)</h2>



<p>The first question is simple. For a given employee ID (say TO-0021, Cathy Simms), how many people are <em>directly </em>reporting to their boss (TO-0002, Jim Halpert)? The answer should be 3.</p>



<p>Write the necessary Excel formula / DAX / Power Query / SQL or Python code to find the answer.</p>



<h2 class="wp-block-heading">2. Who is my boss&#8217;s boss? (10pts)</h2>



<p>We are going to level up. For a given employee ID (say TO-0021, Cathy Simms), find out their boss’s boss. The answer should be TO-0007, Michael Scott.</p>



<h2 class="wp-block-heading">3. What is my reporting chain? (Score=20pts)</h2>



<p>For a given employee (say TO-0021, Cathy Simms), print their entire reporting chain, delimited by the symbol -&gt;. </p>



<p>Expected Answer is:<br>Cathy-&gt;Jim-&gt;Michael-&gt;David-&gt;Jo</p>



<p><em>Note: You may assume a maximum depth of 7 nodes if that helps. </em></p>



<h2 class="wp-block-heading">Download Sample File</h2>



<p><a href="https://chandoo.org/wp/wp-content/uploads/2025/08/staff-data-challenge-001.xlsx">Grab the sample data file (Excel format) here.</a> Use it to solve the problems. Alternatively, I have pasted the data above. Copy it and paste it in Python or SQL.</p>



<h2 class="wp-block-heading">Post your answers below.</h2>



<p>Leave a comment with your solutions / approach. All the best</p>



<p><strong><em>Want more</em></strong>?</p>



<p><a href="https://chandoo.org/wp/tag/homework/">Check out my Excel Homework Tag page</a> for more challenges and problems.</p>
<p>The post <a href="https://chandoo.org/wp/who-is-my-boss-boss-data-challenge-001/">Who is my boss&#8217;s boss? [Data Analytics Challenge &#8211; 001]</a> appeared first on <a href="https://chandoo.org/wp">Chandoo.org - Learn Excel, Power BI &amp; Charting Online</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://chandoo.org/wp/who-is-my-boss-boss-data-challenge-001/feed/</wfw:commentRss>
			<slash:comments>57</slash:comments>
		
		
		<post-id xmlns="com-wordpress:feed-additions:1">19502</post-id>	</item>
		<item>
		<title>New Zealand GST Calculation with Excel [Free Template]</title>
		<link>https://chandoo.org/wp/new-zealand-gst-calculation-with-excel-template/</link>
					<comments>https://chandoo.org/wp/new-zealand-gst-calculation-with-excel-template/#respond</comments>
		
		<dc:creator><![CDATA[Chandoo]]></dc:creator>
		<pubDate>Wed, 02 Jul 2025 00:28:04 +0000</pubDate>
				<category><![CDATA[Excel Howtos]]></category>
		<category><![CDATA[Templates]]></category>
		<category><![CDATA[downloads]]></category>
		<category><![CDATA[excel]]></category>
		<category><![CDATA[Microsoft Excel Formulas]]></category>
		<guid isPermaLink="false">https://chandoo.org/wp/?p=19479</guid>

					<description><![CDATA[<p>If you operate a business in New Zealand (NZ) like me, chances are you too need to calculate GST on purchases &#38; sales. Today, let me share the excel formulas needed to calculate GST as per NZ laws. I have also attached a free GST calculator template to help you if you are in a [&#8230;]</p>
<p>The post <a href="https://chandoo.org/wp/new-zealand-gst-calculation-with-excel-template/">New Zealand GST Calculation with Excel [Free Template]</a> appeared first on <a href="https://chandoo.org/wp">Chandoo.org - Learn Excel, Power BI &amp; Charting Online</a>.</p>
]]></description>
										<content:encoded><![CDATA[
<p>If you operate a business in New Zealand (NZ) like me, chances are you too need to calculate GST on purchases &amp; sales. Today, let me share the excel formulas needed to calculate GST as per NZ laws. I have also attached a free GST calculator template to help you if you are in a hurry.</p>



<h2 class="wp-block-heading">How to calculate NZ GST using Excel?</h2>



<p>Assuming you have the sale price in cell C5, the GST is calculated by the below formula.</p>



<div class="wp-block-kevinbatdorf-code-block-pro" data-code-block-pro-font-family="Code-Pro-JetBrains-Mono" style="font-size:clamp(18px, 1.125rem, 27px);font-family:Code-Pro-JetBrains-Mono,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace;line-height:clamp(26px, 1.625rem, 39px);--cbp-tab-width:2;tab-size:var(--cbp-tab-width, 2)"><span style="display:block;padding:16px 0 0 16px;margin-bottom:-1px;width:100%;text-align:left;background-color:#1E1E1E"><svg xmlns="http://www.w3.org/2000/svg" width="54" height="14" viewBox="0 0 54 14"><g fill="none" fill-rule="evenodd" transform="translate(1 1)"><circle cx="6" cy="6" r="6" fill="#FF5F56" stroke="#E0443E" stroke-width=".5"></circle><circle cx="26" cy="6" r="6" fill="#FFBD2E" stroke="#DEA123" stroke-width=".5"></circle><circle cx="46" cy="6" r="6" fill="#27C93F" stroke="#1AAB29" stroke-width=".5"></circle></g></svg></span><span role="button" tabindex="0" data-code="=C5 * 0.15" style="color:#D4D4D4;display:none" aria-label="Copy" class="code-block-pro-copy-button"><svg xmlns="http://www.w3.org/2000/svg" style="width:24px;height:24px" fill="none" viewBox="0 0 24 24" stroke="currentColor" stroke-width="2"><path class="with-check" stroke-linecap="round" stroke-linejoin="round" d="M9 5H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V7a2 2 0 00-2-2h-2M9 5a2 2 0 002 2h2a2 2 0 002-2M9 5a2 2 0 012-2h2a2 2 0 012 2m-6 9l2 2 4-4"></path><path class="without-check" stroke-linecap="round" stroke-linejoin="round" d="M9 5H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V7a2 2 0 00-2-2h-2M9 5a2 2 0 002 2h2a2 2 0 002-2M9 5a2 2 0 012-2h2a2 2 0 012 2"></path></svg></span><pre class="shiki dark-plus" style="background-color: #1E1E1E" tabindex="0"><code><span class="line"><span style="color: #D4D4D4">=</span><span style="color: #9CDCFE">C5</span><span style="color: #D4D4D4"> * </span><span style="color: #B5CEA8">0.15</span></span></code></pre></div>



<p>We multiply the &#8220;sale&#8221; or &#8220;service&#8221; price by 0.15 (or 15%) as the official GST rate in New Zealand is 15% [<a href="https://www.ird.govt.nz/gst/what-gst-is">ref</a>].</p>



<figure class="wp-block-image size-full is-resized"><img loading="lazy" decoding="async" width="674" height="340" src="https://chandoo.org/wp/wp-content/uploads/2025/07/nz-gst-calculation-excel-formula.png" alt="NZ GST Calculation - Excel formula" class="wp-image-19480" style="width:600px"/></figure>



<h2 class="wp-block-heading">Excel formula for NZ GST from &#8220;total&#8221; price</h2>



<p>Let&#8217;s say you want to figure out the GST from total price (GST inclusive price) of something. This is quite common in retail scenarios. You have an item for $140 on the shelves, but you need to figure out what the GST should be on this. In this case, you can use the below Excel formula.</p>



<p>Assuming your &#8220;total&#8221; price is in cell C15, the GST is calculated with this formula:</p>



<div class="wp-block-kevinbatdorf-code-block-pro" data-code-block-pro-font-family="Code-Pro-JetBrains-Mono" style="font-size:clamp(18px, 1.125rem, 27px);font-family:Code-Pro-JetBrains-Mono,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace;line-height:clamp(26px, 1.625rem, 39px);--cbp-tab-width:2;tab-size:var(--cbp-tab-width, 2)"><span style="display:block;padding:16px 0 0 16px;margin-bottom:-1px;width:100%;text-align:left;background-color:#1E1E1E"><svg xmlns="http://www.w3.org/2000/svg" width="54" height="14" viewBox="0 0 54 14"><g fill="none" fill-rule="evenodd" transform="translate(1 1)"><circle cx="6" cy="6" r="6" fill="#FF5F56" stroke="#E0443E" stroke-width=".5"></circle><circle cx="26" cy="6" r="6" fill="#FFBD2E" stroke="#DEA123" stroke-width=".5"></circle><circle cx="46" cy="6" r="6" fill="#27C93F" stroke="#1AAB29" stroke-width=".5"></circle></g></svg></span><span role="button" tabindex="0" data-code="=C15 * 15/115" style="color:#D4D4D4;display:none" aria-label="Copy" class="code-block-pro-copy-button"><svg xmlns="http://www.w3.org/2000/svg" style="width:24px;height:24px" fill="none" viewBox="0 0 24 24" stroke="currentColor" stroke-width="2"><path class="with-check" stroke-linecap="round" stroke-linejoin="round" d="M9 5H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V7a2 2 0 00-2-2h-2M9 5a2 2 0 002 2h2a2 2 0 002-2M9 5a2 2 0 012-2h2a2 2 0 012 2m-6 9l2 2 4-4"></path><path class="without-check" stroke-linecap="round" stroke-linejoin="round" d="M9 5H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V7a2 2 0 00-2-2h-2M9 5a2 2 0 002 2h2a2 2 0 002-2M9 5a2 2 0 012-2h2a2 2 0 012 2"></path></svg></span><pre class="shiki dark-plus" style="background-color: #1E1E1E" tabindex="0"><code><span class="line"><span style="color: #D4D4D4">=</span><span style="color: #9CDCFE">C15</span><span style="color: #D4D4D4"> * </span><span style="color: #B5CEA8">15</span><span style="color: #D4D4D4">/</span><span style="color: #B5CEA8">115</span></span></code></pre></div>



<div style="height:50px" aria-hidden="true" class="wp-block-spacer"></div>



<figure class="wp-block-image size-full is-resized"><img loading="lazy" decoding="async" width="650" height="350" src="https://chandoo.org/wp/wp-content/uploads/2025/07/SNAG-0166.png" alt="GST from total price - Excel formula" class="wp-image-19481" style="width:600px"/></figure>



<h2 class="wp-block-heading">GST Reverse Calculation &#8211; What is the &#8220;sale price&#8221; if I know GST?</h2>



<p>Occasionally, we may have the reverse problem. We know how much the GST is, but just need to figure out the total. In this case, you can use the below formula.</p>



<p>Assuming your GST is in cell I5, the sale price can be calculated with below Excel formula</p>



<div class="wp-block-kevinbatdorf-code-block-pro" data-code-block-pro-font-family="Code-Pro-JetBrains-Mono" style="font-size:clamp(18px, 1.125rem, 27px);font-family:Code-Pro-JetBrains-Mono,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace;line-height:clamp(26px, 1.625rem, 39px);--cbp-tab-width:2;tab-size:var(--cbp-tab-width, 2)"><span style="display:block;padding:16px 0 0 16px;margin-bottom:-1px;width:100%;text-align:left;background-color:#1E1E1E"><svg xmlns="http://www.w3.org/2000/svg" width="54" height="14" viewBox="0 0 54 14"><g fill="none" fill-rule="evenodd" transform="translate(1 1)"><circle cx="6" cy="6" r="6" fill="#FF5F56" stroke="#E0443E" stroke-width=".5"></circle><circle cx="26" cy="6" r="6" fill="#FFBD2E" stroke="#DEA123" stroke-width=".5"></circle><circle cx="46" cy="6" r="6" fill="#27C93F" stroke="#1AAB29" stroke-width=".5"></circle></g></svg></span><span role="button" tabindex="0" data-code="=I5*100/15" style="color:#D4D4D4;display:none" aria-label="Copy" class="code-block-pro-copy-button"><svg xmlns="http://www.w3.org/2000/svg" style="width:24px;height:24px" fill="none" viewBox="0 0 24 24" stroke="currentColor" stroke-width="2"><path class="with-check" stroke-linecap="round" stroke-linejoin="round" d="M9 5H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V7a2 2 0 00-2-2h-2M9 5a2 2 0 002 2h2a2 2 0 002-2M9 5a2 2 0 012-2h2a2 2 0 012 2m-6 9l2 2 4-4"></path><path class="without-check" stroke-linecap="round" stroke-linejoin="round" d="M9 5H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V7a2 2 0 00-2-2h-2M9 5a2 2 0 002 2h2a2 2 0 002-2M9 5a2 2 0 012-2h2a2 2 0 012 2"></path></svg></span><pre class="shiki dark-plus" style="background-color: #1E1E1E" tabindex="0"><code><span class="line"><span style="color: #D4D4D4">=</span><span style="color: #9CDCFE">I5</span><span style="color: #D4D4D4">*</span><span style="color: #B5CEA8">100</span><span style="color: #D4D4D4">/</span><span style="color: #B5CEA8">15</span></span></code></pre></div>



<div style="height:50px" aria-hidden="true" class="wp-block-spacer"></div>



<figure class="wp-block-image size-full"><img loading="lazy" decoding="async" width="747" height="310" src="https://chandoo.org/wp/wp-content/uploads/2025/07/SNAG-0167.png" alt="Reverse GST calculation - sale price from GST" class="wp-image-19482"/></figure>



<p>and total price can be calculated with this formula</p>



<div class="wp-block-kevinbatdorf-code-block-pro" data-code-block-pro-font-family="Code-Pro-JetBrains-Mono" style="font-size:clamp(18px, 1.125rem, 27px);font-family:Code-Pro-JetBrains-Mono,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace;line-height:clamp(26px, 1.625rem, 39px);--cbp-tab-width:2;tab-size:var(--cbp-tab-width, 2)"><span style="display:block;padding:16px 0 0 16px;margin-bottom:-1px;width:100%;text-align:left;background-color:#1E1E1E"><svg xmlns="http://www.w3.org/2000/svg" width="54" height="14" viewBox="0 0 54 14"><g fill="none" fill-rule="evenodd" transform="translate(1 1)"><circle cx="6" cy="6" r="6" fill="#FF5F56" stroke="#E0443E" stroke-width=".5"></circle><circle cx="26" cy="6" r="6" fill="#FFBD2E" stroke="#DEA123" stroke-width=".5"></circle><circle cx="46" cy="6" r="6" fill="#27C93F" stroke="#1AAB29" stroke-width=".5"></circle></g></svg></span><span role="button" tabindex="0" data-code="=I5*115/15" style="color:#D4D4D4;display:none" aria-label="Copy" class="code-block-pro-copy-button"><svg xmlns="http://www.w3.org/2000/svg" style="width:24px;height:24px" fill="none" viewBox="0 0 24 24" stroke="currentColor" stroke-width="2"><path class="with-check" stroke-linecap="round" stroke-linejoin="round" d="M9 5H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V7a2 2 0 00-2-2h-2M9 5a2 2 0 002 2h2a2 2 0 002-2M9 5a2 2 0 012-2h2a2 2 0 012 2m-6 9l2 2 4-4"></path><path class="without-check" stroke-linecap="round" stroke-linejoin="round" d="M9 5H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V7a2 2 0 00-2-2h-2M9 5a2 2 0 002 2h2a2 2 0 002-2M9 5a2 2 0 012-2h2a2 2 0 012 2"></path></svg></span><pre class="shiki dark-plus" style="background-color: #1E1E1E" tabindex="0"><code><span class="line"><span style="color: #D4D4D4">=</span><span style="color: #9CDCFE">I5</span><span style="color: #D4D4D4">*</span><span style="color: #B5CEA8">115</span><span style="color: #D4D4D4">/</span><span style="color: #B5CEA8">15</span></span></code></pre></div>



<h2 class="wp-block-heading">The 3 / 23rds and 3/20ths rules</h2>



<p>Here is a handy shortcut to quickly figure out the GST from total or sale prices.</p>



<h3 class="wp-block-heading">3/23rds rule &#8211; GST from total</h3>



<p>If your total amount is known, just multiply that with 3 and divide by 23 to get the GST.</p>



<p>For example, if your total is $230, then GST would be $30.</p>



<div class="wp-block-kevinbatdorf-code-block-pro" data-code-block-pro-font-family="Code-Pro-JetBrains-Mono" style="font-size:1.125rem;font-family:Code-Pro-JetBrains-Mono,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace;line-height:1.625rem;--cbp-tab-width:2;tab-size:var(--cbp-tab-width, 2)"><span style="display:block;padding:16px 0 0 16px;margin-bottom:-1px;width:100%;text-align:left;background-color:#1E1E1E"><svg xmlns="http://www.w3.org/2000/svg" width="54" height="14" viewBox="0 0 54 14"><g fill="none" fill-rule="evenodd" transform="translate(1 1)"><circle cx="6" cy="6" r="6" fill="#FF5F56" stroke="#E0443E" stroke-width=".5"></circle><circle cx="26" cy="6" r="6" fill="#FFBD2E" stroke="#DEA123" stroke-width=".5"></circle><circle cx="46" cy="6" r="6" fill="#27C93F" stroke="#1AAB29" stroke-width=".5"></circle></g></svg></span><span role="button" tabindex="0" data-code="=230 x 3 / 23
=690 / 23
=30" style="color:#D4D4D4;display:none" aria-label="Copy" class="code-block-pro-copy-button"><svg xmlns="http://www.w3.org/2000/svg" style="width:24px;height:24px" fill="none" viewBox="0 0 24 24" stroke="currentColor" stroke-width="2"><path class="with-check" stroke-linecap="round" stroke-linejoin="round" d="M9 5H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V7a2 2 0 00-2-2h-2M9 5a2 2 0 002 2h2a2 2 0 002-2M9 5a2 2 0 012-2h2a2 2 0 012 2m-6 9l2 2 4-4"></path><path class="without-check" stroke-linecap="round" stroke-linejoin="round" d="M9 5H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V7a2 2 0 00-2-2h-2M9 5a2 2 0 002 2h2a2 2 0 002-2M9 5a2 2 0 012-2h2a2 2 0 012 2"></path></svg></span><pre class="shiki dark-plus" style="background-color: #1E1E1E" tabindex="0"><code><span class="line"><span style="color: #D4D4D4">=</span><span style="color: #B5CEA8">230</span><span style="color: #D4D4D4"> x </span><span style="color: #B5CEA8">3</span><span style="color: #D4D4D4"> / </span><span style="color: #B5CEA8">23</span></span>
<span class="line"><span style="color: #D4D4D4">=</span><span style="color: #B5CEA8">690</span><span style="color: #D4D4D4"> / </span><span style="color: #B5CEA8">23</span></span>
<span class="line"><span style="color: #D4D4D4">=</span><span style="color: #B5CEA8">30</span></span></code></pre></div>



<h3 class="wp-block-heading">3/20ths rule &#8211; GST from Sale Price</h3>



<p>If you know the &#8220;sale&#8221; price, just multiply it with 3 and divide by 20 get the GST.</p>



<p>For example, if your sale price is $140, then GST would be $21</p>



<div class="wp-block-kevinbatdorf-code-block-pro" data-code-block-pro-font-family="Code-Pro-JetBrains-Mono" style="font-size:1.125rem;font-family:Code-Pro-JetBrains-Mono,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace;line-height:1.625rem;--cbp-tab-width:2;tab-size:var(--cbp-tab-width, 2)"><span style="display:block;padding:16px 0 0 16px;margin-bottom:-1px;width:100%;text-align:left;background-color:#1E1E1E"><svg xmlns="http://www.w3.org/2000/svg" width="54" height="14" viewBox="0 0 54 14"><g fill="none" fill-rule="evenodd" transform="translate(1 1)"><circle cx="6" cy="6" r="6" fill="#FF5F56" stroke="#E0443E" stroke-width=".5"></circle><circle cx="26" cy="6" r="6" fill="#FFBD2E" stroke="#DEA123" stroke-width=".5"></circle><circle cx="46" cy="6" r="6" fill="#27C93F" stroke="#1AAB29" stroke-width=".5"></circle></g></svg></span><span role="button" tabindex="0" data-code="=140 x 3 / 20
=420 / 20
=21" style="color:#D4D4D4;display:none" aria-label="Copy" class="code-block-pro-copy-button"><svg xmlns="http://www.w3.org/2000/svg" style="width:24px;height:24px" fill="none" viewBox="0 0 24 24" stroke="currentColor" stroke-width="2"><path class="with-check" stroke-linecap="round" stroke-linejoin="round" d="M9 5H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V7a2 2 0 00-2-2h-2M9 5a2 2 0 002 2h2a2 2 0 002-2M9 5a2 2 0 012-2h2a2 2 0 012 2m-6 9l2 2 4-4"></path><path class="without-check" stroke-linecap="round" stroke-linejoin="round" d="M9 5H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V7a2 2 0 00-2-2h-2M9 5a2 2 0 002 2h2a2 2 0 002-2M9 5a2 2 0 012-2h2a2 2 0 012 2"></path></svg></span><pre class="shiki dark-plus" style="background-color: #1E1E1E" tabindex="0"><code><span class="line"><span style="color: #D4D4D4">=</span><span style="color: #B5CEA8">140</span><span style="color: #D4D4D4"> x </span><span style="color: #B5CEA8">3</span><span style="color: #D4D4D4"> / </span><span style="color: #B5CEA8">20</span></span>
<span class="line"><span style="color: #D4D4D4">=</span><span style="color: #B5CEA8">420</span><span style="color: #D4D4D4"> / </span><span style="color: #B5CEA8">20</span></span>
<span class="line"><span style="color: #D4D4D4">=</span><span style="color: #B5CEA8">21</span></span></code></pre></div>



<h2 class="wp-block-heading">GST for hourly rates, services</h2>



<p>If you work as a plumber / electrician / some other type of service provider and you charge by hour, then you can use below formulas for calculating GST.</p>



<pre class="wp-block-preformatted">Assuming your hourly rate is in cell I15 and hours worked in cell I16, the GST formula looks like this:</pre>



<div class="wp-block-kevinbatdorf-code-block-pro" data-code-block-pro-font-family="Code-Pro-JetBrains-Mono" style="font-size:1.125rem;font-family:Code-Pro-JetBrains-Mono,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace;line-height:1.625rem;--cbp-tab-width:2;tab-size:var(--cbp-tab-width, 2)"><span style="display:block;padding:16px 0 0 16px;margin-bottom:-1px;width:100%;text-align:left;background-color:#1E1E1E"><svg xmlns="http://www.w3.org/2000/svg" width="54" height="14" viewBox="0 0 54 14"><g fill="none" fill-rule="evenodd" transform="translate(1 1)"><circle cx="6" cy="6" r="6" fill="#FF5F56" stroke="#E0443E" stroke-width=".5"></circle><circle cx="26" cy="6" r="6" fill="#FFBD2E" stroke="#DEA123" stroke-width=".5"></circle><circle cx="46" cy="6" r="6" fill="#27C93F" stroke="#1AAB29" stroke-width=".5"></circle></g></svg></span><span role="button" tabindex="0" data-code="=I15*I16*0.15" style="color:#D4D4D4;display:none" aria-label="Copy" class="code-block-pro-copy-button"><svg xmlns="http://www.w3.org/2000/svg" style="width:24px;height:24px" fill="none" viewBox="0 0 24 24" stroke="currentColor" stroke-width="2"><path class="with-check" stroke-linecap="round" stroke-linejoin="round" d="M9 5H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V7a2 2 0 00-2-2h-2M9 5a2 2 0 002 2h2a2 2 0 002-2M9 5a2 2 0 012-2h2a2 2 0 012 2m-6 9l2 2 4-4"></path><path class="without-check" stroke-linecap="round" stroke-linejoin="round" d="M9 5H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V7a2 2 0 00-2-2h-2M9 5a2 2 0 002 2h2a2 2 0 002-2M9 5a2 2 0 012-2h2a2 2 0 012 2"></path></svg></span><pre class="shiki dark-plus" style="background-color: #1E1E1E" tabindex="0"><code><span class="line"><span style="color: #D4D4D4">=</span><span style="color: #9CDCFE">I15</span><span style="color: #D4D4D4">*I16*</span><span style="color: #B5CEA8">0.15</span></span></code></pre></div>



<div style="height:50px" aria-hidden="true" class="wp-block-spacer"></div>



<figure class="wp-block-image size-full"><img loading="lazy" decoding="async" width="771" height="386" src="https://chandoo.org/wp/wp-content/uploads/2025/07/SNAG-0168.png" alt="GST on hourly services - excel formula" class="wp-image-19483" srcset="https://chandoo.org/wp/wp-content/uploads/2025/07/SNAG-0168.png 771w, https://chandoo.org/wp/wp-content/uploads/2025/07/SNAG-0168-768x384.png 768w" sizes="(max-width: 771px) 100vw, 771px" /></figure>



<h2 class="wp-block-heading">FREE NZ GST calculator workbook</h2>



<figure class="wp-block-image size-full"><a href="https://chandoo.org/wp/wp-content/uploads/2025/07/nz-gst-calculator.xlsx"><img loading="lazy" decoding="async" width="751" height="510" src="https://chandoo.org/wp/wp-content/uploads/2025/07/SNAG-0169.png" alt="free NZ GST Calculator Excel Template
" class="wp-image-19488"/></a></figure>



<p>I have created a simple, plug-n-play GST calculator workbook for you. Please download it here, enter your price / total / hourly information and the file automatically calculates the GST for you. It also has the GST formulas / patterns that you can apply to your own data.</p>



<p><strong><a href="https://chandoo.org/wp/wp-content/uploads/2025/07/nz-gst-calculator.xlsx">Click here to download the NZ GST Calculator.</a></strong></p>



<hr class="wp-block-separator has-alpha-channel-opacity"/>



<h2 class="wp-block-heading">Need Spreadsheet help?</h2>



<p>If you are an NZ business and need spreadsheet help or automation services, please get in touch with me. I am a Wellington based Excel / automation expert and I have been helping clients for the past 15 years in creating simple &amp; easy automation and Excel solutions. Please email me on hello@chandoo.org to discuss more.</p>



<h2 class="wp-block-heading">Other Excel Templates to help you</h2>



<ul class="wp-block-list">
<li><a href="https://chandoo.org/wp/free-calendar-planner-excel-template-for-2025/">Free 2025 Calendar &amp; To-do list template</a></li>



<li><a href="https://chandoo.org/wp/drill-down-gantt-chart-template/">Free Project Tracker Template</a></li>



<li><a href="https://chandoo.org/wp/budget-spreadsheet-download/">Free Household budget template</a></li>
</ul>



<p></p>
<p>The post <a href="https://chandoo.org/wp/new-zealand-gst-calculation-with-excel-template/">New Zealand GST Calculation with Excel [Free Template]</a> appeared first on <a href="https://chandoo.org/wp">Chandoo.org - Learn Excel, Power BI &amp; Charting Online</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://chandoo.org/wp/new-zealand-gst-calculation-with-excel-template/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
		<post-id xmlns="com-wordpress:feed-additions:1">19479</post-id>	</item>
		<item>
		<title>Make a Pivot from Another Pivot Table in Excel</title>
		<link>https://chandoo.org/wp/make-a-pivot-from-another-pivot-table-in-excel/</link>
					<comments>https://chandoo.org/wp/make-a-pivot-from-another-pivot-table-in-excel/#comments</comments>
		
		<dc:creator><![CDATA[Chandoo]]></dc:creator>
		<pubDate>Wed, 25 Jun 2025 00:59:39 +0000</pubDate>
				<category><![CDATA[Excel Howtos]]></category>
		<category><![CDATA[Pivot Tables & Charts]]></category>
		<category><![CDATA[Power Query]]></category>
		<category><![CDATA[downloads]]></category>
		<category><![CDATA[Learn Excel]]></category>
		<category><![CDATA[pivot tables]]></category>
		<category><![CDATA[power query]]></category>
		<category><![CDATA[screencasts]]></category>
		<category><![CDATA[unpivot]]></category>
		<guid isPermaLink="false">https://chandoo.org/wp/?p=19461</guid>

					<description><![CDATA[<p>Recently, a client shared data with me that is clearly a pivot table and wanted me to make another pivot from it using Excel. This is a common and annoying problem we all face when working with Excel. Today, let me share my approaches for creating a pivot from another pivot report using Excel. Option [&#8230;]</p>
<p>The post <a href="https://chandoo.org/wp/make-a-pivot-from-another-pivot-table-in-excel/">Make a Pivot from Another Pivot Table in Excel</a> appeared first on <a href="https://chandoo.org/wp">Chandoo.org - Learn Excel, Power BI &amp; Charting Online</a>.</p>
]]></description>
										<content:encoded><![CDATA[
<p>Recently, a client shared data with me that is clearly a pivot table and wanted me to make another pivot from it using Excel. This is a common and annoying problem we all face when working with Excel. Today, let me share my approaches for creating a pivot from another pivot report using Excel.</p>



<figure class="wp-block-image size-full"><img loading="lazy" decoding="async" width="1321" height="611" src="https://chandoo.org/wp/wp-content/uploads/2025/06/SNAG-0157.png" alt="pivot from another pivot table in Excel - howto" class="wp-image-19462" srcset="https://chandoo.org/wp/wp-content/uploads/2025/06/SNAG-0157.png 1321w, https://chandoo.org/wp/wp-content/uploads/2025/06/SNAG-0157-768x355.png 768w" sizes="(max-width: 1321px) 100vw, 1321px" /></figure>



<h2 class="wp-block-heading">Option 1: If you have access to &#8220;original&#8221; data</h2>



<p>Ha, I know, but we <em>can </em>dream eh? So, if you do have access to the original data from which the pivot is generated, just use that data and make the new pivot as you want. </p>



<p>If you need help creating a pivot report in the first place, <a href="https://chandoo.org/wp/excel-pivot-tables-tutorial/">learn the process here</a>.</p>



<hr class="wp-block-separator has-alpha-channel-opacity"/>



<h2 class="wp-block-heading">Option 2: Making a Pivot from Another Pivot when you don&#8217;t have access to original data</h2>



<p>Tbh, this is the real scenario for most of us. We have a pivot and don&#8217;t have access to the data that was used to make it. Now we need to make another pivot. In this case, follow the below steps.</p>



<h2 class="wp-block-heading">Pivot from Another Pivot &#8211; FREE Excel Template</h2>



<figure class="wp-block-image size-full is-resized"><a href="https://chandoo.org/wp/wp-content/uploads/2025/06/pivot-from-another-pivot.xlsx"><img loading="lazy" decoding="async" width="1321" height="531" src="https://chandoo.org/wp/wp-content/uploads/2025/06/download-excel-template-pivot-from-another-pivot.png" alt="free excel template - pivot from pivot" class="wp-image-19475" style="width:631px;height:auto" srcset="https://chandoo.org/wp/wp-content/uploads/2025/06/download-excel-template-pivot-from-another-pivot.png 1321w, https://chandoo.org/wp/wp-content/uploads/2025/06/download-excel-template-pivot-from-another-pivot-768x309.png 768w" sizes="(max-width: 1321px) 100vw, 1321px" /></a></figure>



<p>I created a free Excel template to guide you thru the process with sample data. <strong><a href="https://chandoo.org/wp/wp-content/uploads/2025/06/pivot-from-another-pivot.xlsx">Download it here</a></strong> and use the sample data to understand the process better.</p>



<h3 class="wp-block-heading">Step 1: Select and name your pivot range</h3>



<ol class="wp-block-list">
<li>Select the entire pivot table (including any headers) in Excel.</li>



<li>Go to the name box (next to formula bar on the left)</li>



<li>Type the name &#8220;pivot_range&#8221;</li>



<li>Pro tip: If you have multiple pivots, you can use names like &#8220;pivot_range1&#8221;, &#8220;pivot_range2&#8221;</li>
</ol>



<p>See this illustration for the step.</p>



<figure class="wp-block-image size-full"><img loading="lazy" decoding="async" width="870" height="635" src="https://chandoo.org/wp/wp-content/uploads/2025/06/Snag_b8381c09.png" alt="creating a named range for pivot data" class="wp-image-19463" srcset="https://chandoo.org/wp/wp-content/uploads/2025/06/Snag_b8381c09.png 870w, https://chandoo.org/wp/wp-content/uploads/2025/06/Snag_b8381c09-768x561.png 768w" sizes="(max-width: 870px) 100vw, 870px" /></figure>



<h3 class="wp-block-heading">Step 2: Go to Data Ribbon and load up the &#8220;pivot&#8221; to Power Query</h3>



<ol class="wp-block-list">
<li>Keep the pivot table selected</li>



<li>Go to Data Ribbon</li>



<li>Click on &#8220;From Table/Range&#8221; option in the Get &amp; Transform Data area</li>
</ol>



<p>This will load the Power Query Editor with your Pivot Table Data. </p>



<figure class="wp-block-image size-full"><img loading="lazy" decoding="async" width="700" height="704" src="https://chandoo.org/wp/wp-content/uploads/2025/06/SNAG-0158.png" alt="loading &quot;pivot_range&quot; to Power Query" class="wp-image-19464"/></figure>



<h3 class="wp-block-heading">Step 3: Let&#8217;s &#8220;unpivot&#8221; the Pivot Table with Power Query</h3>



<p>Now that our &#8220;pivot table&#8221; is in Power Query, we can &#8220;unpivot&#8221; it and create a regular table. This can be used to make our new pivot table.</p>



<p>Here is a snapshot of how the Power Query editor looks with the pivot_range data.</p>



<figure class="wp-block-image size-full"><img loading="lazy" decoding="async" width="1501" height="883" src="https://chandoo.org/wp/wp-content/uploads/2025/06/SNAG-0159.png" alt="Power Query editor with pivot data" class="wp-image-19465" srcset="https://chandoo.org/wp/wp-content/uploads/2025/06/SNAG-0159.png 1501w, https://chandoo.org/wp/wp-content/uploads/2025/06/SNAG-0159-768x452.png 768w" sizes="(max-width: 1501px) 100vw, 1501px" /></figure>



<h3 class="wp-block-heading">[optional step] Promote headers if needed</h3>



<p>Depending on how your source Pivot is setup, you may need to adjust the column headings in Power Query. For example, in my case, I need to promote the headers. To do this, click on &#8220;Use First Row as Headers&#8221; button in the Home ribbon of Power Query editor.</p>



<p>See below illustration.</p>



<figure class="wp-block-image size-full"><img loading="lazy" decoding="async" width="1122" height="638" src="https://chandoo.org/wp/wp-content/uploads/2025/06/SNAG-0160.png" alt="fixing the headers with &quot;use first row as header&quot; option" class="wp-image-19466" srcset="https://chandoo.org/wp/wp-content/uploads/2025/06/SNAG-0160.png 1122w, https://chandoo.org/wp/wp-content/uploads/2025/06/SNAG-0160-768x437.png 768w" sizes="(max-width: 1122px) 100vw, 1122px" /></figure>



<h3 class="wp-block-heading">Step 4: Replace &#8220;null&#8221; with value from above</h3>



<p>In my sample pivot, you can see that Rep name is not printed in all rows, just the first row. This shows up as <em>null </em>in the Power Query editor for rest of the rows. We just need to fill these down based on the top value.</p>



<ul class="wp-block-list">
<li>Select the column(s) with this problem</li>



<li>Go to &#8220;Transform&#8221; ribbon in Power Query Editor</li>



<li>Click on &#8220;Fill&#8221; and select Down to fill down all the nulls with the value from above</li>
</ul>



<figure class="wp-block-image size-full is-resized"><img loading="lazy" decoding="async" width="1202" height="855" src="https://chandoo.org/wp/wp-content/uploads/2025/06/SNAG-0161.png" alt="Filling nulls with value from above - Before vs. After" class="wp-image-19467" style="width:631px;height:auto" srcset="https://chandoo.org/wp/wp-content/uploads/2025/06/SNAG-0161.png 1202w, https://chandoo.org/wp/wp-content/uploads/2025/06/SNAG-0161-768x546.png 768w" sizes="(max-width: 1202px) 100vw, 1202px" /></figure>



<h3 class="wp-block-heading">Step 5: Remove rows with &#8220;totals&#8221; &amp; &#8220;sub-totals&#8221;</h3>



<p>We don&#8217;t need totals or sub-totals any more. We will calculate them in the new pivot as needed. For now, let&#8217;s remove all the rows and columns that have totals.</p>



<ol class="wp-block-list">
<li>Select the first column that has &#8220;total&#8221; labels</li>



<li>Click on &#8220;filter&#8221; button</li>



<li>Uncheck any total labels.</li>



<li>Repeat the steps for any other rows that need this clean-up step.</li>



<li>Pro tip: Use Text Filters > Does not contain to filter out all rows with &#8220;total&#8221; word in them.</li>
</ol>



<figure class="wp-block-image size-full is-resized"><img loading="lazy" decoding="async" width="508" height="626" src="https://chandoo.org/wp/wp-content/uploads/2025/06/SNAG-0163.png" alt="removing total and sub-total rows." class="wp-image-19468" style="width:372px;height:auto"/></figure>



<h3 class="wp-block-heading">Step 6: Remove Grand total / Sub-total columns (if any)</h3>



<p>Let&#8217;s also remove any &#8220;grand total&#8221; columns and &#8220;sub-total&#8221; columns from our pivot report. Right click on the column with totals and select &#8220;remove&#8221; to take this column out.</p>



<figure class="wp-block-image size-full is-resized"><img loading="lazy" decoding="async" width="465" height="401" src="https://chandoo.org/wp/wp-content/uploads/2025/06/SNAG-0164.png" alt="removing any grand total and sub-total columns" class="wp-image-19469" style="width:345px;height:auto"/></figure>



<h3 class="wp-block-heading">Step 7: Unpivot the data</h3>



<p>Finally, our pivot report is ready to be unpivoted.</p>



<ol class="wp-block-list">
<li>Select the column(s) with row labels. In the above example, I selected &#8220;representative&#8221; and &#8220;day of week&#8221; columns</li>



<li>Pro Tip: Hold SHIFT or CTRL to select multiple columns in one go.</li>



<li>Right click on the column headings of either column.</li>



<li>Select &#8220;unpivot other columns&#8221;</li>



<li>This should reshape the pivoted data to unpivoted format.</li>



<li>See this quick demo (GIF):</li>
</ol>



<figure class="wp-block-image size-full is-resized"><img loading="lazy" decoding="async" width="1054" height="716" src="https://chandoo.org/wp/wp-content/uploads/2025/06/2025-06-25_12-16-26.gif" alt="unpivoting / depivoting the data- quick demo" class="wp-image-19470" style="width:578px;height:auto" srcset="https://chandoo.org/wp/wp-content/uploads/2025/06/2025-06-25_12-16-26.gif 1054w, https://chandoo.org/wp/wp-content/uploads/2025/06/2025-06-25_12-16-26-768x522.gif 768w" sizes="(max-width: 1054px) 100vw, 1054px" /></figure>



<h3 class="wp-block-heading">Step 8: Rename the new &#8220;attribute&#8221; &amp; &#8220;value&#8221; columns</h3>



<p>Double click on the newly added &#8220;attribute&#8221; and &#8220;value column headers to rename them to appropriate labels. In my case, I named them &#8211; Gender &amp; Calls.</p>



<figure class="wp-block-image size-full is-resized"><img loading="lazy" decoding="async" width="880" height="356" src="https://chandoo.org/wp/wp-content/uploads/2025/06/rename-columns-pq.png" alt="renaming columns in Power Query (pivot from pivot)" class="wp-image-19471" style="width:559px;height:auto" srcset="https://chandoo.org/wp/wp-content/uploads/2025/06/rename-columns-pq.png 880w, https://chandoo.org/wp/wp-content/uploads/2025/06/rename-columns-pq-768x311.png 768w" sizes="(max-width: 880px) 100vw, 880px" /></figure>



<h3 class="wp-block-heading"> Step 9: Load the data back to Excel so we can make the pivot</h3>



<p>Ok. We are done. Just load the data back to Excel. To do this, go to &#8220;Home&#8221; ribbon and click on &#8220;Close &amp; Load&#8221; button.  </p>



<figure class="wp-block-image size-full"><img loading="lazy" decoding="async" width="559" height="531" src="https://chandoo.org/wp/wp-content/uploads/2025/06/SNAG-0165.png" alt="loading tabular data to Excel" class="wp-image-19472"/></figure>



<h3 class="wp-block-heading">Step 10: Create the Pivot from the loaded data</h3>



<p>Once the data is in Excel, just select any cell in the data, go to Insert > Pivot Table (shortcut: ALT N V T) and set up the pivot as per your needs. In my case, I needed the pivot report with number of calls by Day of Week &amp; Representative. So here is how I made it (see the quick video demo).</p>



<figure class="wp-block-video"><video height="772" style="aspect-ratio: 860 / 772;" width="860" controls loop muted src="https://chandoo.org/wp/wp-content/uploads/2025/06/making-a-pivot-from-another-pivotvia-pq-video-demo.mp4" playsinline></video></figure>



<div style="height:100px" aria-hidden="true" class="wp-block-spacer"></div>



<hr class="wp-block-separator has-alpha-channel-opacity"/>



<h2 class="wp-block-heading">Things to keep in mind:</h2>



<p>The Power Query based approach to create pivot from another pivot is great, but you need to keep a few things in mind.</p>



<ul class="wp-block-list">
<li><strong>Doesn&#8217;t work for averages:</strong> If your original pivot table has &#8220;averages&#8221; instead of &#8220;sums&#8221;, the new pivot will not be correct. This is because you will make the mistake of &#8220;averaging averages&#8221;. This technique works great for sums &amp; counts only. Any other measures like average / median / min /max, you need &#8220;actual&#8221; data to make the new pivot.</li>



<li><strong>Power Query steps can get complicated:</strong> If your original pivot has a very complex, nested layout, then the PQ steps needed to &#8220;transform&#8221; data can be complex (but not impossible). I suggest learning how to use Power Query to solve such issues. <a href="https://chandoo.org/wp/power-query-tutorial/">Refer to this article</a> or <a href="https://youtu.be/MMdcczmULrU">video</a> to start your PQ journey.</li>



<li><strong>Needs refresh for data changes:</strong> If your original Pivot table changes (new values or new rows / columns), you need to update the &#8220;pivot_range&#8221; named range and refresh the power query data. 
<ul class="wp-block-list">
<li><strong>To update the named range: </strong>Go to Formula ribbon in Excel and click on &#8220;Name Manager&#8221;. Select the name &#8220;pivot_range&#8221; and edit it. Adjust the cell references as per your newly updated pivot.</li>



<li><strong>To Refresh Power Query: </strong>Right click on the Power Query data you have loaded in Step 9. Select &#8220;Refresh&#8217; to update the loaded data with new changes. Now go to the pivot you made (in step 10) and refresh that too (you guessed it right! Right click and Refresh).</li>
</ul>
</li>
</ul>



<h2 class="wp-block-heading">What to do if you get an error (in Power Query):</h2>



<p>Errors can happen either during the initial process (steps 3 to 9) or when you refresh the power query connection. Solving the error depends on your exact pivot table layout and what changes were made. But here are the most likely reasons for the error.</p>



<ul class="wp-block-list">
<li><strong>Column names have changed: </strong>You will get error if your columns (in the original pivot) were changed between updates. Adjust the names in the original pivot or go to Power Query editor, locate the step where the error is happening and adjust the names there.</li>



<li><strong>Data type issues:</strong> If for some reason, your original pivot&#8217;s values are read by Power Query as &#8220;text&#8221;, it can create issues. Right click on the columns with numbers and explicitly convert them to numbers in PQ.</li>



<li><strong>Layout changes:</strong> If your pivot layout changes (say, instead of 2 columns, it now has 3 columns of row labels), then your refresh will fail. You need to select one more column before unpivoting (step 7).</li>



<li><strong>Other issues:</strong> Leave a comment with the issue / error you are facing so I can help.</li>
</ul>



<h2 class="wp-block-heading">Pivot from Another Pivot &#8211; FREE Excel Template</h2>



<figure class="wp-block-image size-full is-resized"><a href="https://chandoo.org/wp/wp-content/uploads/2025/06/pivot-from-another-pivot.xlsx"><img loading="lazy" decoding="async" width="1321" height="531" src="https://chandoo.org/wp/wp-content/uploads/2025/06/download-excel-template-pivot-from-another-pivot.png" alt="excel template - pivot from pivot" class="wp-image-19475" style="width:631px;height:auto" srcset="https://chandoo.org/wp/wp-content/uploads/2025/06/download-excel-template-pivot-from-another-pivot.png 1321w, https://chandoo.org/wp/wp-content/uploads/2025/06/download-excel-template-pivot-from-another-pivot-768x309.png 768w" sizes="(max-width: 1321px) 100vw, 1321px" /></a></figure>



<p>I created a free Excel template to guide you thru the process with sample data. <strong><a href="https://chandoo.org/wp/wp-content/uploads/2025/06/pivot-from-another-pivot.xlsx">Download it here</a></strong> and understand the process better.</p>



<h2 class="wp-block-heading">In conclusion:</h2>



<p>Power Query in Excel offers an elegant, simple and easy way to deal with the annoying issue of using &#8220;pivot tables&#8221; as data source. I had plenty of success with this method and I hope will too. If you do have any questions or face issues during the process, leave a comment.</p>



<p></p>
<p>The post <a href="https://chandoo.org/wp/make-a-pivot-from-another-pivot-table-in-excel/">Make a Pivot from Another Pivot Table in Excel</a> appeared first on <a href="https://chandoo.org/wp">Chandoo.org - Learn Excel, Power BI &amp; Charting Online</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://chandoo.org/wp/make-a-pivot-from-another-pivot-table-in-excel/feed/</wfw:commentRss>
			<slash:comments>2</slash:comments>
		
		
		<post-id xmlns="com-wordpress:feed-additions:1">19461</post-id>	</item>
		<item>
		<title>How to use XLOOKUP with two sheets?</title>
		<link>https://chandoo.org/wp/xlookup-with-two-sheets/</link>
					<comments>https://chandoo.org/wp/xlookup-with-two-sheets/#respond</comments>
		
		<dc:creator><![CDATA[Chandoo]]></dc:creator>
		<pubDate>Wed, 18 Jun 2025 00:42:35 +0000</pubDate>
				<category><![CDATA[Excel Howtos]]></category>
		<category><![CDATA[Learn Excel]]></category>
		<category><![CDATA[downloads]]></category>
		<category><![CDATA[Microsoft Excel Formulas]]></category>
		<category><![CDATA[screencasts]]></category>
		<category><![CDATA[xlookup]]></category>
		<guid isPermaLink="false">https://chandoo.org/wp/?p=19446</guid>

					<description><![CDATA[<p>Learn how to use Excel XLOOKUP function with two sheets in this step-by-step tutorial. Why you may want to use XLOOKUP with two sheets? If you have data in two places (sheets or Excel workbooks) like depicted above, you may want to use XLOOKUP to combine data from both places to get the full picture. [&#8230;]</p>
<p>The post <a href="https://chandoo.org/wp/xlookup-with-two-sheets/">How to use XLOOKUP with two sheets?</a> appeared first on <a href="https://chandoo.org/wp">Chandoo.org - Learn Excel, Power BI &amp; Charting Online</a>.</p>
]]></description>
										<content:encoded><![CDATA[
<p>Learn how to use Excel <a href="https://chandoo.org/wp/xlookup-examples/">XLOOKUP function</a> with two sheets in this step-by-step tutorial.</p>



<figure class="wp-block-image size-full is-resized"><img loading="lazy" decoding="async" width="824" height="664" src="https://chandoo.org/wp/wp-content/uploads/2025/06/SNAG-0152.png" alt="xlookup across two sheets" class="wp-image-19447" style="width:564px;height:auto" srcset="https://chandoo.org/wp/wp-content/uploads/2025/06/SNAG-0152.png 824w, https://chandoo.org/wp/wp-content/uploads/2025/06/SNAG-0152-768x619.png 768w" sizes="(max-width: 824px) 100vw, 824px" /></figure>



<hr class="wp-block-separator has-alpha-channel-opacity"/>



<h2 class="wp-block-heading">Why you may want to use XLOOKUP with two sheets?</h2>



<p>If you have data in two places (sheets or Excel workbooks) like depicted above, you may want to <a href="https://chandoo.org/wp/xlookup-examples/">use XLOOKUP</a> to combine data from both places to get the full picture. For example,</p>



<ul class="wp-block-list">
<li>Student list in sheet1, course price list in sheet2, you want to know the price of courses against student names in sheet1</li>



<li>Invoice list in sheet1, payment list in sheet 2, you need to know which invoices are paid up (reconciliation)</li>



<li>Equipment list in sheet1, inspection details in sheet2, you want to know when the last inspection date is for each equipment</li>
</ul>



<h2 class="wp-block-heading">What you need?</h2>



<ul class="wp-block-list">
<li>You need two sheets of data. </li>



<li>or if data is in two separate Excel files, then open both files.</li>



<li>If you need a sample data file, grab my <a href="https://chandoo.org/wp/wp-content/uploads/2025/06/xlookup-two-sheets.xlsx">free xlookup two sheets template</a>.</li>
</ul>



<hr class="wp-block-separator has-alpha-channel-opacity"/>



<h2 class="wp-block-heading">XLOOKUP with two sheets (step-by-step instructions)</h2>



<h3 class="wp-block-heading">Step 1: Identify common column between both sheets</h3>



<figure class="wp-block-image size-full is-resized"><img loading="lazy" decoding="async" width="824" height="587" src="https://chandoo.org/wp/wp-content/uploads/2025/06/SNAG-0152-1.png" alt="xlookup two sheets - example scenario" class="wp-image-19448" style="width:492px;height:auto" srcset="https://chandoo.org/wp/wp-content/uploads/2025/06/SNAG-0152-1.png 824w, https://chandoo.org/wp/wp-content/uploads/2025/06/SNAG-0152-1-768x547.png 768w" sizes="(max-width: 824px) 100vw, 824px" /></figure>



<p>For example, in the above scenario, &#8220;Fee&#8221; is the common column between sheet 1 (student list) and sheet 2 (course list). </p>



<div class="wp-block-group has-luminous-vivid-amber-background-color has-background"><div class="wp-block-group__inner-container is-layout-constrained wp-block-group-is-layout-constrained">
<p class="has-text-align-center"><strong><em>What if I have more than 1 common column?</em></strong></p>



<p class="has-text-align-center">I will explain the process for <em>modifying XLOOKUP to work with multiple columns </em>further down the page. Read on.</p>
</div></div>



<h2 class="wp-block-heading">Step 2: Write the XLOOKUP formula</h2>



<p>Go to the sheet where you want to get the data from &#8220;other&#8221; sheet and write the XLOOKUP function using the pattern below.</p>



<div class="wp-block-kevinbatdorf-code-block-pro" data-code-block-pro-font-family="Code-Pro-JetBrains-Mono" style="font-size:.875rem;font-family:Code-Pro-JetBrains-Mono,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace;line-height:1.25rem;--cbp-tab-width:2;tab-size:var(--cbp-tab-width, 2)"><span style="display:block;padding:16px 0 0 16px;margin-bottom:-1px;width:100%;text-align:left;background-color:#1E1E1E"><svg xmlns="http://www.w3.org/2000/svg" width="54" height="14" viewBox="0 0 54 14"><g fill="none" fill-rule="evenodd" transform="translate(1 1)"><circle cx="6" cy="6" r="6" fill="#FF5F56" stroke="#E0443E" stroke-width=".5"></circle><circle cx="26" cy="6" r="6" fill="#FFBD2E" stroke="#DEA123" stroke-width=".5"></circle><circle cx="46" cy="6" r="6" fill="#27C93F" stroke="#1AAB29" stroke-width=".5"></circle></g></svg></span><span role="button" tabindex="0" data-code="=XLOOKUP(
  all cells in first sheet, 
  common column in second sheet,
  column you want in second sheet,
  optional output for missing values
  )" style="color:#D4D4D4;display:none" aria-label="Copy" class="code-block-pro-copy-button"><svg xmlns="http://www.w3.org/2000/svg" style="width:24px;height:24px" fill="none" viewBox="0 0 24 24" stroke="currentColor" stroke-width="2"><path class="with-check" stroke-linecap="round" stroke-linejoin="round" d="M9 5H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V7a2 2 0 00-2-2h-2M9 5a2 2 0 002 2h2a2 2 0 002-2M9 5a2 2 0 012-2h2a2 2 0 012 2m-6 9l2 2 4-4"></path><path class="without-check" stroke-linecap="round" stroke-linejoin="round" d="M9 5H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V7a2 2 0 00-2-2h-2M9 5a2 2 0 002 2h2a2 2 0 002-2M9 5a2 2 0 012-2h2a2 2 0 012 2"></path></svg></span><pre class="shiki dark-plus" style="background-color: #1E1E1E" tabindex="0"><code><span class="line"><span style="color: #D4D4D4">=</span><span style="color: #DCDCAA">XLOOKUP</span><span style="color: #D4D4D4">(</span></span>
<span class="line"><span style="color: #D4D4D4">  all cells in first sheet, </span></span>
<span class="line"><span style="color: #D4D4D4">  common column in </span><span style="color: #DCDCAA">second</span><span style="color: #D4D4D4"> sheet,</span></span>
<span class="line"><span style="color: #D4D4D4">  column you want in </span><span style="color: #DCDCAA">second</span><span style="color: #D4D4D4"> sheet,</span></span>
<span class="line"><span style="color: #D4D4D4">  optional output </span><span style="color: #C586C0">for</span><span style="color: #D4D4D4"> missing values</span></span>
<span class="line"><span style="color: #D4D4D4">  )</span></span></code></pre></div>



<p>for example, in our students &amp; fees case, we will use the below XLOOKUP function.</p>



<div class="wp-block-kevinbatdorf-code-block-pro" data-code-block-pro-font-family="Code-Pro-JetBrains-Mono" style="font-size:.875rem;font-family:Code-Pro-JetBrains-Mono,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace;line-height:1.25rem;--cbp-tab-width:2;tab-size:var(--cbp-tab-width, 2)"><span style="display:block;padding:16px 0 0 16px;margin-bottom:-1px;width:100%;text-align:left;background-color:#1E1E1E"><svg xmlns="http://www.w3.org/2000/svg" width="54" height="14" viewBox="0 0 54 14"><g fill="none" fill-rule="evenodd" transform="translate(1 1)"><circle cx="6" cy="6" r="6" fill="#FF5F56" stroke="#E0443E" stroke-width=".5"></circle><circle cx="26" cy="6" r="6" fill="#FFBD2E" stroke="#DEA123" stroke-width=".5"></circle><circle cx="46" cy="6" r="6" fill="#27C93F" stroke="#1AAB29" stroke-width=".5"></circle></g></svg></span><span role="button" tabindex="0" data-code="=XLOOKUP(C4:C43,
         Courses!B4:B15,
         Courses!D4:D15
         )" style="color:#D4D4D4;display:none" aria-label="Copy" class="code-block-pro-copy-button"><svg xmlns="http://www.w3.org/2000/svg" style="width:24px;height:24px" fill="none" viewBox="0 0 24 24" stroke="currentColor" stroke-width="2"><path class="with-check" stroke-linecap="round" stroke-linejoin="round" d="M9 5H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V7a2 2 0 00-2-2h-2M9 5a2 2 0 002 2h2a2 2 0 002-2M9 5a2 2 0 012-2h2a2 2 0 012 2m-6 9l2 2 4-4"></path><path class="without-check" stroke-linecap="round" stroke-linejoin="round" d="M9 5H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V7a2 2 0 00-2-2h-2M9 5a2 2 0 002 2h2a2 2 0 002-2M9 5a2 2 0 012-2h2a2 2 0 012 2"></path></svg></span><pre class="shiki dark-plus" style="background-color: #1E1E1E" tabindex="0"><code><span class="line"><span style="color: #D4D4D4">=</span><span style="color: #DCDCAA">XLOOKUP</span><span style="color: #D4D4D4">(</span><span style="color: #9CDCFE">C4</span><span style="color: #D4D4D4">:C43,</span></span>
<span class="line"><span style="color: #D4D4D4">         Courses!B4:B15,</span></span>
<span class="line"><span style="color: #D4D4D4">         Courses!D4:D15</span></span>
<span class="line"><span style="color: #D4D4D4">         )</span></span></code></pre></div>



<figure class="wp-block-image size-full is-resized"><img loading="lazy" decoding="async" width="984" height="968" src="https://chandoo.org/wp/wp-content/uploads/2025/06/2025-06-18_11-27-25.gif" alt="how to write xlookup formula to get fee data from courses sheet to students sheet" class="wp-image-19449" style="width:524px;height:auto" srcset="https://chandoo.org/wp/wp-content/uploads/2025/06/2025-06-18_11-27-25.gif 984w, https://chandoo.org/wp/wp-content/uploads/2025/06/2025-06-18_11-27-25-768x756.gif 768w" sizes="(max-width: 984px) 100vw, 984px" /></figure>



<p>As demonstrated above, xlookup can automatically spill values for all the rows based on the common column you have specified. No need to individually write or drag the formulas. You also don&#8217;t need to &#8220;lock&#8221; your references with this style of formulas. Learn more about the <a href="https://youtu.be/kR6czKY4FEw">spill functionality and dynamic array behavior of Excel here</a>.</p>



<div class="wp-block-group has-luminous-vivid-amber-background-color has-background"><div class="wp-block-group__inner-container is-layout-constrained wp-block-group-is-layout-constrained">
<p class="has-text-align-center"><strong><em>Using Tables? Don&#8217;t select the full column in sheet 1</em></strong></p>



<p class="has-text-align-center">If you are using Excel Tables for your data, just select the current cell in first row but select common column and column you want in sheet 2. Excel will automatically fill the formula down for you.</p>



<p class="has-text-align-center">For example, the same formula with tables could look like this:</p>



<div class="wp-block-kevinbatdorf-code-block-pro" data-code-block-pro-font-family="Code-Pro-JetBrains-Mono" style="font-size:.875rem;font-family:Code-Pro-JetBrains-Mono,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace;line-height:1.25rem;--cbp-tab-width:2;tab-size:var(--cbp-tab-width, 2)"><span style="display:block;padding:16px 0 0 16px;margin-bottom:-1px;width:100%;text-align:left;background-color:#1E1E1E"><svg xmlns="http://www.w3.org/2000/svg" width="54" height="14" viewBox="0 0 54 14"><g fill="none" fill-rule="evenodd" transform="translate(1 1)"><circle cx="6" cy="6" r="6" fill="#FF5F56" stroke="#E0443E" stroke-width=".5"></circle><circle cx="26" cy="6" r="6" fill="#FFBD2E" stroke="#DEA123" stroke-width=".5"></circle><circle cx="46" cy="6" r="6" fill="#27C93F" stroke="#1AAB29" stroke-width=".5"></circle></g></svg></span><span role="button" tabindex="0" data-code="=XLOOKUP([@Course Name], courses[name], courses[fee])" style="color:#D4D4D4;display:none" aria-label="Copy" class="code-block-pro-copy-button"><svg xmlns="http://www.w3.org/2000/svg" style="width:24px;height:24px" fill="none" viewBox="0 0 24 24" stroke="currentColor" stroke-width="2"><path class="with-check" stroke-linecap="round" stroke-linejoin="round" d="M9 5H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V7a2 2 0 00-2-2h-2M9 5a2 2 0 002 2h2a2 2 0 002-2M9 5a2 2 0 012-2h2a2 2 0 012 2m-6 9l2 2 4-4"></path><path class="without-check" stroke-linecap="round" stroke-linejoin="round" d="M9 5H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V7a2 2 0 00-2-2h-2M9 5a2 2 0 002 2h2a2 2 0 002-2M9 5a2 2 0 012-2h2a2 2 0 012 2"></path></svg></span><pre class="shiki dark-plus" style="background-color: #1E1E1E" tabindex="0"><code><span class="line"><span style="color: #D4D4D4">=</span><span style="color: #DCDCAA">XLOOKUP</span><span style="color: #D4D4D4">([@Course Name],</span><span style="color: #9CDCFE"> courses</span><span style="color: #D4D4D4">[name],</span><span style="color: #9CDCFE"> courses</span><span style="color: #D4D4D4">[fee])</span></span></code></pre></div>
</div></div>



<hr class="wp-block-separator has-alpha-channel-opacity is-style-default"/>



<h2 class="wp-block-heading">What if I have more than one common column? (XLOOKUP multiple criteria)</h2>



<p>Let&#8217;s say you have different fee per course based on the the student&#8217;s location (ex: In state is $600, out of state is $900). Something like this:</p>



<figure class="wp-block-image size-full is-resized"><img loading="lazy" decoding="async" width="772" height="662" src="https://chandoo.org/wp/wp-content/uploads/2025/06/same-course-two-different-fees.png" alt="more than one column to check" class="wp-image-19450" style="width:553px;height:auto" srcset="https://chandoo.org/wp/wp-content/uploads/2025/06/same-course-two-different-fees.png 772w, https://chandoo.org/wp/wp-content/uploads/2025/06/same-course-two-different-fees-768x659.png 768w" sizes="(max-width: 772px) 100vw, 772px" /></figure>



<p>In such cases, your student&#8217;s data will also have both &#8220;course code&#8221; and &#8220;student type&#8221; columns. something like this:</p>



<figure class="wp-block-image size-full is-resized"><img loading="lazy" decoding="async" width="701" height="815" src="https://chandoo.org/wp/wp-content/uploads/2025/06/SNAG-0154-1.png" alt="xlookup needs to check both course code and student type columns" class="wp-image-19452" style="width:497px;height:auto"/></figure>



<p>As you can see, our XLOOKUP needs to check both of these columns to figure out the correct fee per row. </p>



<hr class="wp-block-separator has-alpha-channel-opacity"/>



<h2 class="wp-block-heading">XLOOKUP with two sheets, multiple columns (step-by-step instructions)</h2>



<h3 class="wp-block-heading">Step 1: Identify common columns between sheets</h3>



<p>In our case, the common columns are,</p>



<ul class="wp-block-list">
<li>Course Code (column C in sheet 1, column B sheet 2)</li>



<li>Student Type (column D in sheet 1, column C in sheet 2)</li>
</ul>



<figure class="wp-block-image size-full"><img loading="lazy" decoding="async" width="720" height="507" src="https://chandoo.org/wp/wp-content/uploads/2025/06/SNAG-0156.png" alt="xlookup two sheets, but  two columns to check!" class="wp-image-19454"/></figure>



<h3 class="wp-block-heading">Step 2: Write the multi-criteria XLOOKUP</h3>



<p>Instead of looking up for a specific column value, we start the xlookup with 1 and construct a &#8220;boolean&#8221; checking array. The formula looks like this:</p>



<div class="wp-block-kevinbatdorf-code-block-pro" data-code-block-pro-font-family="Code-Pro-JetBrains-Mono" style="font-size:.875rem;font-family:Code-Pro-JetBrains-Mono,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace;line-height:1.25rem;--cbp-tab-width:2;tab-size:var(--cbp-tab-width, 2)"><span style="display:block;padding:16px 0 0 16px;margin-bottom:-1px;width:100%;text-align:left;background-color:#1E1E1E"><svg xmlns="http://www.w3.org/2000/svg" width="54" height="14" viewBox="0 0 54 14"><g fill="none" fill-rule="evenodd" transform="translate(1 1)"><circle cx="6" cy="6" r="6" fill="#FF5F56" stroke="#E0443E" stroke-width=".5"></circle><circle cx="26" cy="6" r="6" fill="#FFBD2E" stroke="#DEA123" stroke-width=".5"></circle><circle cx="46" cy="6" r="6" fill="#27C93F" stroke="#1AAB29" stroke-width=".5"></circle></g></svg></span><span role="button" tabindex="0" data-code="=XLOOKUP(1,
('Courses NEW'!$B$4:$B$27=Students!C4)*('Courses NEW'!$C$4:$C$27=Students!D4),
'Courses NEW'!$D$4:$D$27)" style="color:#D4D4D4;display:none" aria-label="Copy" class="code-block-pro-copy-button"><svg xmlns="http://www.w3.org/2000/svg" style="width:24px;height:24px" fill="none" viewBox="0 0 24 24" stroke="currentColor" stroke-width="2"><path class="with-check" stroke-linecap="round" stroke-linejoin="round" d="M9 5H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V7a2 2 0 00-2-2h-2M9 5a2 2 0 002 2h2a2 2 0 002-2M9 5a2 2 0 012-2h2a2 2 0 012 2m-6 9l2 2 4-4"></path><path class="without-check" stroke-linecap="round" stroke-linejoin="round" d="M9 5H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V7a2 2 0 00-2-2h-2M9 5a2 2 0 002 2h2a2 2 0 002-2M9 5a2 2 0 012-2h2a2 2 0 012 2"></path></svg></span><pre class="shiki dark-plus" style="background-color: #1E1E1E" tabindex="0"><code><span class="line"><span style="color: #D4D4D4">=</span><span style="color: #DCDCAA">XLOOKUP</span><span style="color: #D4D4D4">(</span><span style="color: #B5CEA8">1</span><span style="color: #D4D4D4">,</span></span>
<span class="line"><span style="color: #D4D4D4">(</span><span style="color: #6A9955">&#39;Courses NEW&#39;!$B$4:$B$27=Students!C4)*(&#39;Courses NEW&#39;!$C$4:$C$27=Students!D4),</span></span>
<span class="line"><span style="color: #6A9955">&#39;Courses NEW&#39;!$D$4:$D$27)</span></span></code></pre></div>



<h3 class="wp-block-heading">Formula Explanation:</h3>



<ul class="wp-block-list">
<li>We start the lookup with 1. I will explain what this is in a second.</li>



<li>The lookup array has multiple parts, one per common column. As we have two columns to match (course code and student type), we have two parts here.
<ul class="wp-block-list">
<li>Part1: (&#8216;Courses NEW&#8217;!$B$4:$B$27=Students!C4) checks which courses in column B of sheet 2 (course code column) match with the course of current student record (column C of sheet 1)</li>



<li>Part 2: (&#8216;Courses NEW&#8217;!$C$4:$C$27=Students!D4) does the same, but for student type</li>



<li>Part 1 * Part 2: when we multiply both of these checks, we end up with an array of 0s and 1s. for example, it will look like this: {0;0;0;0;0;<strong><mark style="background-color:#fcb900" class="has-inline-color has-black-color">1</mark></strong>;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0} </li>
</ul>
</li>



<li>The return array is just the fee column of sheet 2</li>



<li>As we are looking for 1, xlookup matches the 1 in Part 1*Part  2 and returns the corresponding fee.</li>
</ul>



<p>Related: <a href="https://chandoo.org/wp/advanced-sumproduct-queries/">learn more about what and how of this boolean multiplication logic in Excel</a></p>



<p>Watch &#8211; <a href="https://youtube.com/shorts/PR3v5GHA6p8?feature=share">XLOOKUP with multiple criteria explained quickly</a></p>



<h3 class="wp-block-heading">Generic Formula Pattern for any number of common columns with XLOOKUP</h3>



<p>Use this pattern and adjust everything as per your data to match any number of common columns</p>



<div class="wp-block-kevinbatdorf-code-block-pro" data-code-block-pro-font-family="Code-Pro-JetBrains-Mono" style="font-size:.875rem;font-family:Code-Pro-JetBrains-Mono,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace;line-height:1.25rem;--cbp-tab-width:2;tab-size:var(--cbp-tab-width, 2)"><span style="display:block;padding:16px 0 0 16px;margin-bottom:-1px;width:100%;text-align:left;background-color:#1E1E1E"><svg xmlns="http://www.w3.org/2000/svg" width="54" height="14" viewBox="0 0 54 14"><g fill="none" fill-rule="evenodd" transform="translate(1 1)"><circle cx="6" cy="6" r="6" fill="#FF5F56" stroke="#E0443E" stroke-width=".5"></circle><circle cx="26" cy="6" r="6" fill="#FFBD2E" stroke="#DEA123" stroke-width=".5"></circle><circle cx="46" cy="6" r="6" fill="#27C93F" stroke="#1AAB29" stroke-width=".5"></circle></g></svg></span><span role="button" tabindex="0" data-code="=XLOOKUP(
    1,
      (COLUMN 1 in second sheet = value 1 first sheet) * 
      (COLUMN 2 in second sheet = value 2 first sheet) * 
      (COLUMN 3 in second sheet = value 3 first sheet) * 
      (COLUMN 4 in second sheet = value 4 first sheet),
    COLUMN YOU WANT TO GET IN SECOND SHEET,
    OPTIONAL value for missing cases
  )
      " style="color:#D4D4D4;display:none" aria-label="Copy" class="code-block-pro-copy-button"><svg xmlns="http://www.w3.org/2000/svg" style="width:24px;height:24px" fill="none" viewBox="0 0 24 24" stroke="currentColor" stroke-width="2"><path class="with-check" stroke-linecap="round" stroke-linejoin="round" d="M9 5H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V7a2 2 0 00-2-2h-2M9 5a2 2 0 002 2h2a2 2 0 002-2M9 5a2 2 0 012-2h2a2 2 0 012 2m-6 9l2 2 4-4"></path><path class="without-check" stroke-linecap="round" stroke-linejoin="round" d="M9 5H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V7a2 2 0 00-2-2h-2M9 5a2 2 0 002 2h2a2 2 0 002-2M9 5a2 2 0 012-2h2a2 2 0 012 2"></path></svg></span><pre class="shiki dark-plus" style="background-color: #1E1E1E" tabindex="0"><code><span class="line"><span style="color: #D4D4D4">=</span><span style="color: #DCDCAA">XLOOKUP</span><span style="color: #D4D4D4">(</span></span>
<span class="line"><span style="color: #D4D4D4">    </span><span style="color: #B5CEA8">1</span><span style="color: #D4D4D4">,</span></span>
<span class="line"><span style="color: #D4D4D4">      (</span><span style="color: #9CDCFE">COLUMN</span><span style="color: #D4D4D4"> </span><span style="color: #B5CEA8">1</span><span style="color: #D4D4D4"> in </span><span style="color: #DCDCAA">second</span><span style="color: #D4D4D4"> </span><span style="color: #9CDCFE">sheet</span><span style="color: #D4D4D4"> =</span><span style="color: #9CDCFE"> value</span><span style="color: #D4D4D4"> </span><span style="color: #B5CEA8">1</span><span style="color: #D4D4D4"> first </span><span style="color: #9CDCFE">sheet</span><span style="color: #D4D4D4">) * </span></span>
<span class="line"><span style="color: #D4D4D4">      (</span><span style="color: #9CDCFE">COLUMN</span><span style="color: #D4D4D4"> </span><span style="color: #B5CEA8">2</span><span style="color: #D4D4D4"> in </span><span style="color: #DCDCAA">second</span><span style="color: #D4D4D4"> </span><span style="color: #9CDCFE">sheet</span><span style="color: #D4D4D4"> =</span><span style="color: #9CDCFE"> value</span><span style="color: #D4D4D4"> </span><span style="color: #B5CEA8">2</span><span style="color: #D4D4D4"> first </span><span style="color: #9CDCFE">sheet</span><span style="color: #D4D4D4">) * </span></span>
<span class="line"><span style="color: #D4D4D4">      (</span><span style="color: #9CDCFE">COLUMN</span><span style="color: #D4D4D4"> </span><span style="color: #B5CEA8">3</span><span style="color: #D4D4D4"> in </span><span style="color: #DCDCAA">second</span><span style="color: #D4D4D4"> </span><span style="color: #9CDCFE">sheet</span><span style="color: #D4D4D4"> =</span><span style="color: #9CDCFE"> value</span><span style="color: #D4D4D4"> </span><span style="color: #B5CEA8">3</span><span style="color: #D4D4D4"> first </span><span style="color: #9CDCFE">sheet</span><span style="color: #D4D4D4">) * </span></span>
<span class="line"><span style="color: #D4D4D4">      (</span><span style="color: #9CDCFE">COLUMN</span><span style="color: #D4D4D4"> </span><span style="color: #B5CEA8">4</span><span style="color: #D4D4D4"> in </span><span style="color: #DCDCAA">second</span><span style="color: #D4D4D4"> </span><span style="color: #9CDCFE">sheet</span><span style="color: #D4D4D4"> =</span><span style="color: #9CDCFE"> value</span><span style="color: #D4D4D4"> </span><span style="color: #B5CEA8">4</span><span style="color: #D4D4D4"> first </span><span style="color: #9CDCFE">sheet</span><span style="color: #D4D4D4">),</span></span>
<span class="line"><span style="color: #D4D4D4">    COLUMN YOU WANT </span><span style="color: #C586C0">TO</span><span style="color: #569CD6"> GET </span><span style="color: #D4D4D4">IN </span><span style="color: #DCDCAA">SECOND</span><span style="color: #D4D4D4"> SHEET,</span></span>
<span class="line"><span style="color: #D4D4D4">    OPTIONAL value </span><span style="color: #C586C0">for</span><span style="color: #D4D4D4"> missing cases</span></span>
<span class="line"><span style="color: #D4D4D4">  )</span></span>
<span class="line"><span style="color: #D4D4D4">      </span></span></code></pre></div>



<hr class="wp-block-separator has-alpha-channel-opacity"/>



<h2 class="wp-block-heading">What if I have data in two separate workbooks (Excel files) instead of sheets</h2>



<p>The process is exactly same as two sheets. You just need to <strong>keep both files OPEN </strong>for the XLOOKUP to work. If you close the second file (one with fees in this example), the formula in first workbook works as long as you don&#8217;t touch it or recalculate the workbook (F9). At that point it will throw an error and ask you to open the file.</p>



<h2 class="wp-block-heading">Alternatives to XLOOKUP for <em>combining </em>data from two places</h2>



<p>While xlookup is great, you can also use below alternatives to get data from another place. </p>



<ul class="wp-block-list">
<li><strong>Use VLOOKUP to combine two sheets of data:</strong> You can use VLOOKUP (or even INDEX+MATCH) to combine data from two places. <a href="https://chandoo.org/wp/vlookup-excel-formula/">Read this article for the instructions on how to use VLOOKUP</a> .</li>



<li><strong>Power Query for combining or merging data:</strong> Excel Power Query is another great way to combine data from two places. <a href="https://youtu.be/Tw7_YYQWx48">Refer to this video to learn more about power query for combining two sheets of data.</a></li>



<li><strong>Power Pivot to combine data from tables to make a single pivot:</strong> You don&#8217;t always have to combine data. You can keep things where they are and <em>join tables via common column </em>just like databases with Excel&#8217;s Power Pivot feature. This lets you calculate total fees or averages using pivot tables. Refer to this page for an introduction on <a href="https://chandoo.org/wp/introduction-to-excel-2013-data-model-relationships/">how to use data model and power pivot feature of Excel</a>.</li>
</ul>



<h3 class="wp-block-heading">My preferences:</h3>



<p>For simple scenarios and quick analysis, I prefer using XLOOKUP or VLOOKUP to quickly combine data like this.</p>



<p>But if the data is coming from two separate files (workbooks or even sharepoint lists etc.), then I use Power Query. It gives me more flexibility and choices. Refer to my<a href="https://chandoo.org/wp/power-query-tutorial/"> Power Query tutorial page</a> for more spicy examples on what this powerful feature can do for you.</p>



<h2 class="wp-block-heading">Bonus: XLOOKUP with two sheets: Sample workbook</h2>



<p>If you need a hand with the formulas explained above, <a href="https://chandoo.org/wp/wp-content/uploads/2025/06/xlookup-two-sheets.xlsx">download my free XLOOKUP two sheets template</a> and refer to the formulas in columns E &amp; F. Let me know if you have any questions by leaving a comment.</p>



<h2 class="wp-block-heading">Related Resources:</h2>



<p>To learn more about the important Excel functions and concepts, refer to below articles &amp; videos:</p>



<ul class="wp-block-list">
<li><a href="https://chandoo.org/wp/xlookup-examples/">How to use XLOOKUP function in Excel?</a></li>



<li><a href="https://chandoo.org/wp/power-query-tutorial/">How to use Power Query in Excel?</a></li>



<li><a href="https://chandoo.org/wp/data-tables/">How to use Excel Tables?</a></li>



<li><a href="https://chandoo.org/wp/introduction-to-excel-2013-data-model-relationships/">Power Pivot in Excel &#8211; Beginner tutorial</a></li>
</ul>



<p></p>



<p></p>
<p>The post <a href="https://chandoo.org/wp/xlookup-with-two-sheets/">How to use XLOOKUP with two sheets?</a> appeared first on <a href="https://chandoo.org/wp">Chandoo.org - Learn Excel, Power BI &amp; Charting Online</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://chandoo.org/wp/xlookup-with-two-sheets/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
		<post-id xmlns="com-wordpress:feed-additions:1">19446</post-id>	</item>
		<item>
		<title>How to use XLOOKUP in Excel?</title>
		<link>https://chandoo.org/wp/xlookup-examples/</link>
					<comments>https://chandoo.org/wp/xlookup-examples/#comments</comments>
		
		<dc:creator><![CDATA[Chandoo]]></dc:creator>
		<pubDate>Tue, 17 Jun 2025 22:42:23 +0000</pubDate>
				<category><![CDATA[Excel Howtos]]></category>
		<category><![CDATA[downloads]]></category>
		<category><![CDATA[INDEX()]]></category>
		<category><![CDATA[list posts]]></category>
		<category><![CDATA[MATCH()]]></category>
		<category><![CDATA[Microsoft Excel Formulas]]></category>
		<category><![CDATA[videos]]></category>
		<category><![CDATA[vlookup]]></category>
		<category><![CDATA[xlookup]]></category>
		<category><![CDATA[xmatch]]></category>
		<guid isPermaLink="false">https://chandoo.org/wp/?p=13871</guid>

					<description><![CDATA[<p>Think of XLOOKUP as an improved version of VLOOKUP. In this article, learn all about the XLOOKUP function, it's syntax, parameters with real-world xlookup examples.</p>
<p>The post <a href="https://chandoo.org/wp/xlookup-examples/">How to use XLOOKUP in Excel?</a> appeared first on <a href="https://chandoo.org/wp">Chandoo.org - Learn Excel, Power BI &amp; Charting Online</a>.</p>
]]></description>
										<content:encoded><![CDATA[
<p>In this article, learn all about the XLOOKUP Excel function, it&#8217;s syntax, parameters and how to use it with real-world xlookup examples.</p>



<figure class="wp-block-image size-full"><img loading="lazy" decoding="async" width="1316" height="630" src="https://chandoo.org/wp/wp-content/uploads/2024/03/SNAG-0041.png" alt="Xlookup example with syntax

=XLOOKUP(lookup_vaule, lookup_array, return_array)" class="wp-image-18286" srcset="https://chandoo.org/wp/wp-content/uploads/2024/03/SNAG-0041.png 1316w, https://chandoo.org/wp/wp-content/uploads/2024/03/SNAG-0041-768x368.png 768w" sizes="(max-width: 1316px) 100vw, 1316px" /></figure>



<h2 class="wp-block-heading">What is XLOOKUP?</h2>



<p>Using XLOOKUP, we can search for an item in a list using the lookup value and return a matching item. For example, you can lookup for salesperson &#8220;Jackie&#8221; and return their sales amount from the data below using the XLOOKUP function, as depicted above. </p>



<p>It is the newest member of Excel&#8217;s lookup function family. You may already know the other members of this group &#8211; <a href="https://chandoo.org/wp/vlookup-excel-formula/">VLOOKUP</a>, LOOKUP, HLOOKUP, <a href="https://chandoo.org/wp/vlookup-match-and-offset-explained-in-plain-english-spreadcheats/">INDEX+MATCH</a>. </p>



<h2 class="wp-block-heading">How to use XLOOKUP &#8211; step by step instructions</h2>



<p>Let&#8217;s say you have data for salespeople like above and you want to find the Net Sales for &#8220;Jackie&#8221;. Follow below steps to create the XLOOKUP function in Excel.</p>



<ol class="wp-block-list">
<li>Write =XLOOKUP( in a cell</li>



<li>For the lookup_value, Type the name of the salesperson in double quotes (ex: &#8220;Jackie&#8221;)</li>



<li>Tip: If you have the name of the person in a cell (like G4), you can point to the cell instead of typing the name</li>



<li>Now for the lookup_array, select the names column of your data.</li>



<li>and for the return_array, select the net sales column of your data.</li>



<li>Close the brackets and hit enter.</li>



<li>Congratulations, you&#8217;ve just created your first XLOOKUP formula in Excel.</li>
</ol>



<p>Here is how the formula and result look in my data:</p>



<figure class="wp-block-image size-full"><img loading="lazy" decoding="async" width="1212" height="708" src="https://chandoo.org/wp/wp-content/uploads/2024/03/2024-03-13_11-48-13.gif" alt="Demo - How to create XLOOKUP formula in Excel - step by step instructions." class="wp-image-18287" srcset="https://chandoo.org/wp/wp-content/uploads/2024/03/2024-03-13_11-48-13.gif 1212w, https://chandoo.org/wp/wp-content/uploads/2024/03/2024-03-13_11-48-13-768x449.gif 768w" sizes="(max-width: 1212px) 100vw, 1212px" /></figure>



<h2 class="wp-block-heading">What if the lookup value is not in the lookup array?</h2>



<figure class="wp-block-image size-full"><img loading="lazy" decoding="async" width="632" height="422" src="https://chandoo.org/wp/wp-content/uploads/2024/03/Snag_68eb6dda.png" alt="Using the if_not_found option with XLOOKUP to fix errors" class="wp-image-18288"/></figure>



<p>One of the most common scenarios of lookups in Excel is <strong><em>not finding the value you are looking for. </em></strong> Imagine, you are looking for the salesperson &#8220;Chandoo&#8221;, but he doesn&#8217;t exist in the dataset. In this case, XLOOKUP will return #N/A error.</p>



<p>But we can use the 4th parameter of XLOOKUP &#8211; <em>if_not_found </em>to set an optional value to display when there is an error.</p>



<p>Here is an example formula with that:</p>



<pre class="wp-block-code has-text-color has-link-color wp-elements-016ff13e3c1cac52f6b6b5cbb9c3ff20" style="color:#075ce3"><code><strong>=XLOOKUP("Chandoo", B4:B21, D4:D21, "Not found")</strong></code></pre>



<h2 class="wp-block-heading">How to lookup in the middle with XLOOKUP (INDEX MATCH replacement)?</h2>



<figure class="wp-block-image size-full"><img loading="lazy" decoding="async" width="1201" height="412" src="https://chandoo.org/wp/wp-content/uploads/2024/03/looking-up-in-any-column-no-more-index-match.png" alt="We can use any column or range as lookup array with XLOOKUP. This means, we no longer need to use INDEX +MATCH formulas to do lookups!" class="wp-image-18289" srcset="https://chandoo.org/wp/wp-content/uploads/2024/03/looking-up-in-any-column-no-more-index-match.png 1201w, https://chandoo.org/wp/wp-content/uploads/2024/03/looking-up-in-any-column-no-more-index-match-768x263.png 768w" sizes="(max-width: 1201px) 100vw, 1201px" /></figure>



<p>Let&#8217;s say you want to lookup the sales amount of $726 and return the name of the person (in this case, Jessy). Previously, you needed to use the INDEX+MATCH combination for this. But XLOOKUP let&#8217;s us specify any range or column for lookup_array portion. so, no more INDEX+MATCH&#8230; Yay!</p>



<figure class="wp-block-image size-full"><img loading="lazy" decoding="async" width="612" height="408" src="https://chandoo.org/wp/wp-content/uploads/2024/03/NO-MORE-INDEX-MATCH-MEME.jpg" alt="No more need for index match formulas - thanks to XLOOKUP" class="wp-image-18290"/></figure>



<p>To perform the &#8220;net sales&#8221; lookup and return the name of the person, we can use the below formula:</p>



<pre class="wp-block-code has-text-color has-link-color wp-elements-a3fe91f426c49f25f83395a39512d688" style="color:#075ce3"><code><strong>=XLOOKUP(G4, G4:G21, G4:G21, "Not found")</strong></code></pre>



<p>The above XLOOKUP example assumes that G4 contains the net sales value you want to lookup.</p>



<h2 class="wp-block-heading">How to lookup higher than / lower than using XLOOKUP? (approximate match)</h2>



<figure class="wp-block-image size-full"><img loading="lazy" decoding="async" width="1086" height="599" src="https://chandoo.org/wp/wp-content/uploads/2024/03/SNAG-0042.png" alt="xlookup with approximate match example" class="wp-image-18291" srcset="https://chandoo.org/wp/wp-content/uploads/2024/03/SNAG-0042.png 1086w, https://chandoo.org/wp/wp-content/uploads/2024/03/SNAG-0042-768x424.png 768w" sizes="(max-width: 1086px) 100vw, 1086px" /></figure>



<p>Say, you want to find out the closest person with the net sales of $1300. In this case, we don&#8217;t have anyone with that value in the data. You can still use XLOOKUP to get the approximate matching value, either next higher or lower in the data.</p>



<p>For this we can use the 5th parameter of the XLOOKUP function &#8211; <strong>match mode</strong>.</p>



<p>There are 4 match modes in XLOOKUP.</p>



<ul class="wp-block-list">
<li><strong>0 or Exact match.</strong> This is the default value for XLOOKUP. </li>



<li><strong>1 or next larger match.</strong> This looks up for the exact or next highest value in the lookup array.</li>



<li><strong>-1 or next smaller match.</strong> This looks up for the exact or next lowest value in the lookup array.</li>



<li><strong>2 or wildcard match. </strong>This looks up based on a pattern you have mentioned in the lookup value. More on this further down in the article.</li>
</ul>



<h3 class="wp-block-heading">To get the next highest matching value:</h3>



<pre class="wp-block-code has-text-color has-link-color wp-elements-094aa60486badd711359ad999a90c672" style="color:#075ce3"><code>=XLOOKUP(G4,D4:D21,B4:B21,,1)
Note: 1 refers to next higher value for match mode.</code></pre>



<p>The above formula returns &#8220;Jonathan&#8221; in the sample data, as he has the next highest amount &#8211; $1316.</p>



<h3 class="wp-block-heading">To get the next lowest matching value:</h3>



<pre class="wp-block-code has-text-color has-link-color wp-elements-ddf892315337dfbac3921432751b1e14" style="color:#075ce3"><code>=XLOOKUP(G4,D4:D21,B4:B21,,-1)
Note: 11 refers to next lower value for match mode.</code></pre>



<p>This formula returns &#8220;John&#8221; as he has the next lower value &#8211; $1088.</p>



<h2 class="wp-block-heading">Getting Partial Matches with XLOOKUP (Wildcard / Pattern Matching)</h2>



<p>XLOOKUP also allows for a powerful and elegant pattern matching in your data. Let&#8217;s say you want to find the net sales for the person whose name begins with the letters <strong><em>Jam</em></strong>. In this case, we can use the match mode 2 (wild card) along with the wildcard operators * (asterisk) and ? (question mark) to create our XLOOKUP.</p>



<figure class="wp-block-image size-full"><img loading="lazy" decoding="async" width="1402" height="605" src="https://chandoo.org/wp/wp-content/uploads/2024/03/SNAG-0043.png" alt="" class="wp-image-18292" srcset="https://chandoo.org/wp/wp-content/uploads/2024/03/SNAG-0043.png 1402w, https://chandoo.org/wp/wp-content/uploads/2024/03/SNAG-0043-768x331.png 768w" sizes="(max-width: 1402px) 100vw, 1402px" /></figure>



<p>To find the net sales of the person whose name begins with <strong><em>Jam, </em></strong></p>



<ol class="wp-block-list">
<li>Use the formula =XLOOKUP(H4&amp;&#8221;*&#8221;,B4:B21,D4:D21,&#8221;No such person&#8221;,2)</li>



<li>Here H4 contains the first few letters of the name, <em>i.e. <strong>Jam</strong></em></li>



<li>The lookup value is H4 &amp; &#8220;*&#8221;. This tells XLOOKUP that we want the name to begin with the value of H4 (Jam) and then there can be any number of characters. </li>



<li>Rest of the XLOOKUP parameters are as per usual.</li>



<li>Don&#8217;t forget the match mode operator as 2. We need this for Wild card &#8211; pattern matching.</li>
</ol>



<p>Refer to above illustration for more on the pattern matching xlookup.</p>



<h3 class="wp-block-heading"> Additional Pattern Matching Tricks with XLOOKUP</h3>



<p>Refer to below handy table for some extra tips on using the partial matching feature of XLOOKUP.</p>



<figure class="wp-block-table is-style-regular"><table class="has-background" style="background-color:#e1e5e7"><thead><tr><th>Situation</th><th>Formula</th><th>Explanation</th><th>Sample Result</th></tr></thead><tbody><tr><td>Name ends with <strong><mark style="background-color:#fcb900" class="has-inline-color">ved</mark></strong></td><td>=XLOOKUP(&#8220;*ved&#8221;, B4:B21,D4:D21,&#8221;No such person&#8221;,2)</td><td>To find a word ending with, we use * (asterisk) at the beginning of the pattern</td><td>Javed, $2277</td></tr><tr><td>Name contains <mark style="background-color:#fcb900" class="has-inline-color">ack</mark></td><td>=XLOOKUP(&#8220;*ack*&#8221;, B4:B21,D4:D21,&#8221;No such person&#8221;,2)</td><td>We can use two * symbols &#8211; one at the beginning of the pattern and one at the end. </td><td>Jackie, $1610</td></tr><tr><td>Name has <mark style="background-color:#fcb900" class="has-inline-color">5 letters</mark> and begins with <mark style="background-color:#fcb900" class="has-inline-color">Je</mark></td><td>=XLOOKUP(&#8220;Je???&#8221;,B4:B21,D4:D21,,2)</td><td>In this case, we can use the ? (question mark) symbol to indicate that we can have any one character. So the pattern is Je???</td><td>Jessy, $726</td></tr><tr><td>Name <mark style="background-color:#fcb900" class="has-inline-color">begins with J</mark> and <mark style="background-color:#fcb900" class="has-inline-color">ends with d</mark></td><td>=XLOOKUP(&#8220;J*d&#8221;, B4:B21, D4:D21,&#8221;No such person&#8221;, 2)</td><td>J*d means the lookup value begins with J, contains any number of letters and ends with d</td><td>Javed, $2277</td></tr></tbody></table></figure>



<h2 class="wp-block-heading">What if there are two matching values?</h2>



<figure class="wp-block-image size-full"><img loading="lazy" decoding="async" width="1074" height="600" src="https://chandoo.org/wp/wp-content/uploads/2024/03/SNAG-0044.png" alt="xlookup finds the first matching item if there are more than one in your data." class="wp-image-18300" srcset="https://chandoo.org/wp/wp-content/uploads/2024/03/SNAG-0044.png 1074w, https://chandoo.org/wp/wp-content/uploads/2024/03/SNAG-0044-768x429.png 768w" sizes="(max-width: 1074px) 100vw, 1074px" /></figure>



<p>If you have more than one matching item for the <strong><em>lookup value </em></strong> in your data, XLOOKUP, just like all other lookup functions in Excel, will always return the first matching item&#8217;s corresponding value. </p>



<p>As you can see in the above illustration, we have two sales persons with the name <strong><em>Johnson</em></strong> in our data.</p>



<p>When using =XLOOKUP(&#8220;Johnson&#8221;, B4:B21, D4:D21) we are going to get the net sales of the first <strong>Johnson</strong><em> ie <strong>$1540.</strong></em></p>



<h3 class="wp-block-heading">But what if I need to get the second or third or all the matching values?</h3>



<p>In this case, you can use the new FILTER() function in Excel to get the second or all matching items.</p>



<p>Here is the formula.</p>



<pre class="wp-block-code has-text-color has-link-color wp-elements-af013ef2469ff86234a523d25cd19488" style="color:#075ce3"><code><strong>=FILTER(D4:D21,B4:B21="Johnson")</strong></code></pre>



<p>For more information on FILTER function, <a href="https://chandoo.org/wp/dynamic-array-functions/#elementor-toc__heading-anchor-3">refer to this article</a>.</p>



<h2 class="wp-block-heading">Horizontal Lookup with XLOOKUP (HLOOKUP replacement):</h2>



<figure class="wp-block-image size-full"><img loading="lazy" decoding="async" width="1213" height="372" src="https://chandoo.org/wp/wp-content/uploads/2024/03/SNAG-0045.png" alt="XLOOKUP can be used with horizontal data too, thus replacing hlookup formula." class="wp-image-18301" srcset="https://chandoo.org/wp/wp-content/uploads/2024/03/SNAG-0045.png 1213w, https://chandoo.org/wp/wp-content/uploads/2024/03/SNAG-0045-768x236.png 768w" sizes="(max-width: 1213px) 100vw, 1213px" /></figure>



<p>XLOOKUP works just as good with horizontal data too, thus replacing any need for HLOOKUP function. </p>



<p>In the above example, I have monthly budget table and I want to lookup the budget value for April 2024.</p>



<p>We can use this XLOOKUP formula to do just that.</p>



<pre class="wp-block-code has-text-color has-link-color wp-elements-63f66bb0e40afa0ddd8dd9903f8b6e94" style="color:#075ce3"><code><strong>=XLOOKUP(C10,C3:N3,C4:N4)</strong></code></pre>



<h2 class="wp-block-heading">Returning entire row of information with XLOOKUP:</h2>



<p>Another powerful feature of XLOOKUP is that it can return multiple values all corresponding to the same lookup value. For example, I want to see the budget, actual and balance information for the month of April 2024, from my budget spreadsheet below. We can use XLOOKUP for that easily.</p>



<pre class="wp-block-code has-text-color has-link-color wp-elements-1ac4156fd2f1f22240dad2916c87c340" style="color:#075ce3"><code><strong>=XLOOKUP(C10,C3:N3,<mark style="background-color:#7bdcb5" class="has-inline-color">C4:N6</mark>)</strong></code></pre>



<p>In the above formula, by using multiple rows (C4:N6) as the return array, we can return all corresponding values for the lookup value in C10 &#8211; <em>ie </em>April 2024. Excel will automatically <strong><em>spill </em></strong>these values into separate cells on the worksheet.</p>



<figure class="wp-block-image size-full"><img loading="lazy" decoding="async" width="1209" height="402" src="https://chandoo.org/wp/wp-content/uploads/2024/03/SNAG-0046.png" alt="xlookup formula can return all the values for the month of April 2024 - and spill them on the screen thru dynamic array behavior of Excel" class="wp-image-18302" srcset="https://chandoo.org/wp/wp-content/uploads/2024/03/SNAG-0046.png 1209w, https://chandoo.org/wp/wp-content/uploads/2024/03/SNAG-0046-768x255.png 768w" sizes="(max-width: 1209px) 100vw, 1209px" /></figure>



<h2 class="wp-block-heading">XLOOKUP &#8211; things to keep in mind:</h2>



<p>When using XLOOKUP, you must keep these points in mind:</p>



<ul class="wp-block-list">
<li><strong>XLOOKUP needs Excel 365 or Excel on the web or Excel 2021:</strong> This function is not available in all the versions of Excel. So check your version of Excel before you start using xlookup. If you notice #NAME errors when working with XLOOKUP, that means your version of Excel does not support this function. Instead, <a href="https://chandoo.org/wp/vlookup-match-and-offset-explained-in-plain-english-spreadcheats/">use INDEX+MATCH formula</a>.</li>



<li><strong>Use the If not found option to fix errors: </strong>To avoid any lookup errors (#N/As), use the fourth argument of the XLOOKUP function &#8211; if_not_found. </li>



<li><strong>Lock cell references when creating lookups: </strong>If you are writing multiple XLOOKUPs in a range, don&#8217;t forget to lock your cell references to absolute mode (change B4:B21 to $B$4:$B$21) so that when you drag or fill the formula down, your lookup and return array ranges don&#8217;t change. This is a common mistake and you will end up with wrong results. (<a href="https://chandoo.org/wp/relative-absolute-references-in-formulas/">absolute vs. relative references</a>)</li>



<li><strong>Or better yet, convert your lookup data to a table:</strong> A simple fix to the relative reference issue is to use tables on your data. This way, you can write simple XLOOKUP formulas like this: =XLOOKUP(&#8220;Jackie&#8221;,sales[Sales Person],sales[Net Sales])
<ul class="wp-block-list">
<li><a href="https://chandoo.org/wp/data-tables/">Learn more about how to use Excel tables with your data</a>. </li>
</ul>
</li>



<li><strong>In case of multiple matches, </strong>XLOOKUP always returns the first (or last matching item, if you used search mode option) value. This is why it is important to also learn how to use the <a href="https://chandoo.org/wp/dynamic-array-functions/#elementor-toc__heading-anchor-3">FILTER function in Excel</a>.</li>
</ul>



<h2 class="wp-block-heading">How is XLOOKUP better?</h2>



<ul class="wp-block-list">
<li><strong>XLOOKUP makes the most used formula in Excel straight forward</strong> and less error prone. You just write =XLOOKUP(what you want to find, the list, the result list) and boom, you get the answer (or #N/A error if the value is not found)</li>



<li><strong>Looks up exact match by default:</strong> One of the annoyances of VLOOKUP is that you must mention <strong>FALSE </strong>as last parameter to get correct result. XLOOKUP fixes that by doing exact matches by default. You can use <em>match mode </em>parameter to change the lookup behavior if you want.</li>



<li><strong>4th parameter to support value not found scenario</strong> In most business situations, we are forced to wrap our lookup formulas with IFERROR or IFNA formulas to suppress errors. XLOOKUP offers 4th parameter (read more about it below) so you can tell what default output you want if your value is not found.</li>



<li><strong>XLOOKUP offers optional parameters </strong>to search for special situations. You can search from top or bottom, you can do wildcard searches and faster options to search sorted lists.</li>



<li><strong>It returns reference as output,</strong> not the value. While this may not mean much for normal users, pro Excel user&#8217;s eyes light up when they discover a formula that can return refs. That means, you can combine XLOOKUP outputs in innovative ways with other formulas. For example: <a href="https://chandoo.org/wp/how-to-create-dependent-drop-downs-in-excel-dynamic-multiple/">XLOOKUP to create dependant drop down in Excel</a>.</li>



<li><strong>It is so much cooler to type</strong>, you just type =XL. I am not sure if this is a happy coincidence but saying =XL to get this formula is just awesome.</li>
</ul>



<h2 class="wp-block-heading">XLOOKUP Syntax</h2>



<p><em>Simple case:</em></p>



<p><strong>=XLOOKUP(what you want to look, lookup list, result list)</strong></p>



<pre class="wp-block-preformatted">=XLOOKUP("Jackie", sales[Sales Person], sales[Net Sales]) </pre>



<p><em>returns Jackie&#8217;s [Net Sales]</em> if the name can be found in [Sales Person]</p>



<p><em>Optional parameters:</em></p>



<p>By default, you just need 3 parameters for XLOOKUP, as shown above. But you can also use 4th, 5th and 6th parameter to specify how you want the lookup to be done.</p>



<h3 class="wp-block-heading">4th parameter for XLOOKUP: IF not found (no more IFERROR!!!)</h3>



<p>The newly introduced XLOOKUP has an even newer feature. It now supports <em>if not found option. </em>This is the 4th parameter. </p>



<p>For example, use: </p>



<p>=XLOOKUP(&#8220;Chandoo&#8221;, sales[Sales Person], sales[Net Sales],&#8221;Value not found&#8221;) to return &#8220;Value not found&#8221; if the lookup value is not available in the search column &#8211; sales[Sales Person].</p>



<h3 class="wp-block-heading">5th parameter for XLOOKUP: Match mode or type:</h3>



<p>Use this to tell Excel how you want your MATCH to happen. The default is 0 (exact match) but you can also use these other options, shown below.</p>



<figure class="wp-block-image"><img loading="lazy" decoding="async" width="263" height="158" src="https://chandoo.org/wp/wp-content/uploads/2019/11/xlookup-5th-parameter-match-options.png" alt="5th parameter - match mode" class="wp-image-14146"/></figure>



<h3 class="wp-block-heading">6th parameter for XLOOKUP: Search mode</h3>



<p>Try this if you want to search from bottom to top. The default direction is top down (1).</p>



<figure class="wp-block-image"><img loading="lazy" decoding="async" width="268" height="134" src="https://chandoo.org/wp/wp-content/uploads/2019/11/xlookup-6th-parameter.png" alt="search mode - 6th parameter" class="wp-image-14147"/></figure>



<h2 class="wp-block-heading">XLOOKUP with two sheets</h2>



<figure class="wp-block-image size-full is-resized"><a href="https://chandoo.org/wp/xlookup-with-two-sheets/"><img loading="lazy" decoding="async" width="824" height="664" src="https://chandoo.org/wp/wp-content/uploads/2025/06/SNAG-0152.png" alt="How to use XLOOKUP with two sheets in Excel?" class="wp-image-19447" style="width:548px;height:auto" srcset="https://chandoo.org/wp/wp-content/uploads/2025/06/SNAG-0152.png 824w, https://chandoo.org/wp/wp-content/uploads/2025/06/SNAG-0152-768x619.png 768w" sizes="(max-width: 824px) 100vw, 824px" /></a></figure>



<p>If you have data in two seperate sheets (or files), you can use XLOOKUP to quickly combine the data and get what you want. </p>



<p><strong>Refer to my <a href="https://chandoo.org/wp/xlookup-with-two-sheets/">XLOOKUP with two sheets article </a>for detailed instructions and formula examples.</strong> </p>



<h2 class="wp-block-heading">XLOOKUP &#8211; Video Tutorial:</h2>



<p>Here is a simple but effective video tutorial on how to use XLOOKUP function and how it can replace VLOOKUP and INDEX+MATCH functions. <a href="https://youtu.be/DDlZXXEI1bU">You can also watch the xlookup tutorial on my channel.</a></p>



<figure class="wp-block-embed is-type-video is-provider-youtube wp-block-embed-youtube wp-embed-aspect-16-9 wp-has-aspect-ratio"><div class="wp-block-embed__wrapper">
<iframe title="I don&#039;t use VLOOKUP anymore. I use this instead...." width="500" height="281" src="https://www.youtube.com/embed/DDlZXXEI1bU?feature=oembed" frameborder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share" referrerpolicy="strict-origin-when-cross-origin" allowfullscreen></iframe>
</div></figure>



<h2 class="wp-block-heading">Download XLOOKUP examples &#8211; workbook</h2>



<p><strong><a href="https://chandoo.org/wp/wp-content/uploads/2019/11/xlookup-examples.xlsx">Click here to download the 13 XLOOKUP examples file</a></strong>. </p>



<p><a href="https://chandoo.org/wp/wp-content/uploads/2021/03/xlookup-demo.xlsx">And one more example file</a>, this with INDEX+MATCH replacements.</p>



<h2 class="wp-block-heading">Final thoughts on XLOOKUP</h2>



<p>In my opinion, XLOOKUP is a terrific function and a must have for any data professional. It is part of my <a href="https://chandoo.org/wp/top-10-formulas-for-aspiring-analysts/"><strong>essential Excel formulas list for data analysts</strong>.</a> </p>



<p>When we nest XLOOKUP formulas, we can also perform more complex lookups like 2-WAY lookups or search across different worksheets. I discuss some of these advanced scenarios in a recent video on my YouTube channel. <a href="https://youtu.be/YyhJe5tMq58">Please watch it here</a>.</p>



<p>The only downside of XLOOKUP is the compatibility. It doesn&#8217;t work in all versions of Excel. For this reason, I still think there is value in learning <a href="https://chandoo.org/wp/vlookup-excel-formula/">how to use VLOOKUP</a> and <a href="https://chandoo.org/wp/vlookup-match-and-offset-explained-in-plain-english-spreadcheats/">INDEX MATCH functions</a>.</p>



<p>Do let me know what you think about XLOOKUP and if you have any questions about it using the comments section.</p>



<h2 class="wp-block-heading">Learn more about Data Analysis with Excel:</h2>



<p>This post is part of my data analysis with Excel series. Please learn other topics too and improve your data skills with Excel.</p>



<ul class="wp-block-list">
<li><a href="https://chandoo.org/wp/data-tables/">How to use Excel Tables &#8211; 13 time saving tips</a></li>



<li><a href="https://chandoo.org/wp/dynamic-array-functions/">How to use Dynamic Array functions in Excel</a> such as Filter, Unique, Sort etc.</li>



<li><a href="https://chandoo.org/wp/power-query-tutorial/">Working with Power Query in Excel</a> to save time and shine at work</li>



<li><a href="https://chandoo.org/wp/lookups-for-data-analysis/">Know more about XLOOKUP with my course</a></li>
</ul>



<p></p>
<p>The post <a href="https://chandoo.org/wp/xlookup-examples/">How to use XLOOKUP in Excel?</a> appeared first on <a href="https://chandoo.org/wp">Chandoo.org - Learn Excel, Power BI &amp; Charting Online</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://chandoo.org/wp/xlookup-examples/feed/</wfw:commentRss>
			<slash:comments>67</slash:comments>
		
		
		<post-id xmlns="com-wordpress:feed-additions:1">13871</post-id>	</item>
		<item>
		<title>How to Merge Multiple CSV Files in Excel (Step-by-Step Guide)</title>
		<link>https://chandoo.org/wp/how-to-merge-multiple-csv-files-in-excel/</link>
					<comments>https://chandoo.org/wp/how-to-merge-multiple-csv-files-in-excel/#respond</comments>
		
		<dc:creator><![CDATA[Chandoo]]></dc:creator>
		<pubDate>Wed, 11 Jun 2025 00:32:17 +0000</pubDate>
				<category><![CDATA[Excel Howtos]]></category>
		<category><![CDATA[Power Query]]></category>
		<category><![CDATA[advanced excel]]></category>
		<category><![CDATA[combine files]]></category>
		<category><![CDATA[downloads]]></category>
		<category><![CDATA[Learn Excel]]></category>
		<category><![CDATA[power query]]></category>
		<guid isPermaLink="false">https://chandoo.org/wp/?p=19425</guid>

					<description><![CDATA[<p>Have a bunch of CSV files in a folder and want to merge or combine them to one big file? Follow these simple instructions to combine multiple CSV files in to one spreadssheet using Microsoft Excel (2016 or above). What you need? Method 1: Merge CSV Files using Power Query (Recommended) This is by far [&#8230;]</p>
<p>The post <a href="https://chandoo.org/wp/how-to-merge-multiple-csv-files-in-excel/">How to Merge Multiple CSV Files in Excel (Step-by-Step Guide)</a> appeared first on <a href="https://chandoo.org/wp">Chandoo.org - Learn Excel, Power BI &amp; Charting Online</a>.</p>
]]></description>
										<content:encoded><![CDATA[
<figure class="wp-block-image size-full is-resized"><img loading="lazy" decoding="async" width="722" height="388" src="https://chandoo.org/wp/wp-content/uploads/2025/06/SNAG-0138.png" alt="" class="wp-image-19426" style="width:536px;height:auto"/></figure>



<p>Have a bunch of CSV files in a folder and want to merge or combine them to one big file? Follow these simple instructions to combine multiple CSV files in to one spreadssheet using Microsoft Excel (2016 or above). </p>



<h2 class="wp-block-heading">What you need?</h2>



<ul class="wp-block-list">
<li>A folder with CSV files (click here to download sample files, if you need some)</li>



<li>Microsoft Excel (2016 or above version)</li>
</ul>



<figure class="wp-block-image size-full is-resized"><img loading="lazy" decoding="async" width="652" height="619" src="https://chandoo.org/wp/wp-content/uploads/2025/06/SNAG-0139.png" alt="folder of CSV files we want to merge" class="wp-image-19427" style="width:442px;height:auto"/></figure>



<h2 class="wp-block-heading">Method 1: Merge CSV Files using Power Query (Recommended)</h2>



<p>This is by far the easiest and quickest way to combine data from CSV files in a folder using Excel. </p>



<p>Follow these steps:</p>



<ol class="wp-block-list">
<li><strong>Close any opened CSV files</strong>: Before proceeding, close any of the opened CSV files. Make a note of the folder path too.</li>



<li><strong>Open Excel and make a new file: </strong>This will be our merged CSV data file. Here, we will setup Power Query to combine all the files. </li>



<li>Go to Data Ribbon > Get Data and click on <strong>From Folder</strong></li>
</ol>



<figure class="wp-block-image size-full is-resized"><img loading="lazy" decoding="async" width="748" height="751" src="https://chandoo.org/wp/wp-content/uploads/2025/06/SNAG-0140.png" alt="Get data from folder option in Excel Power Query" class="wp-image-19428" style="width:561px;height:auto"/></figure>



<p>Paste the folder path or navigate to the folder and click &#8220;select&#8221;.</p>



<ol start="4" class="wp-block-list">
<li><strong>For simple CSV files: </strong>If your CSVs are already clean and you just want to merge them, select the Combine > Combine &amp; Load option.</li>



<li><strong>For complex CSVs or if you need to clean-up data before merge</strong>: Select the Combine > Combine &amp; Transform Data option. This will open up &#8220;Power Query Editor&#8221; so you can clean up data or apply &#8220;transformations&#8221;.</li>
</ol>



<figure class="wp-block-image size-full"><img loading="lazy" decoding="async" width="1314" height="687" src="https://chandoo.org/wp/wp-content/uploads/2025/06/SNAG-0141.png" alt="Combine &amp; Load options in Excel Folder Merge" class="wp-image-19429" srcset="https://chandoo.org/wp/wp-content/uploads/2025/06/SNAG-0141.png 1314w, https://chandoo.org/wp/wp-content/uploads/2025/06/SNAG-0141-768x402.png 768w" sizes="(max-width: 1314px) 100vw, 1314px" /></figure>



<p></p>



<ol start="6" class="wp-block-list">
<li>Click &#8220;OK&#8221; in the next screen: This next screen shows a sample of your data (usually the first file) so you can confirm to Excel how your data looks. If your delimiter is not comma (for example, you have TSV files instead of CSV), you can also tell Excel about that using this screen. </li>
</ol>



<figure class="wp-block-image size-full is-resized"><img loading="lazy" decoding="async" width="1092" height="819" src="https://chandoo.org/wp/wp-content/uploads/2025/06/SNAG-0142.png" alt="Use this screen to tell Excel about your file and delimiter structure. " class="wp-image-19430" style="width:581px;height:auto" srcset="https://chandoo.org/wp/wp-content/uploads/2025/06/SNAG-0142.png 1092w, https://chandoo.org/wp/wp-content/uploads/2025/06/SNAG-0142-768x576.png 768w" sizes="(max-width: 1092px) 100vw, 1092px" /></figure>



<ol start="7" class="wp-block-list">
<li><strong>If you selected &#8220;Combine &amp; Load&#8221; option: </strong> Your merge is done! The combined data from your CSV files is now loaded into Excel. This is how it will look (see below). You can use the &#8220;Source name&#8221; column to figure out which file each row came from.</li>
</ol>



<figure class="wp-block-image size-full is-resized"><img loading="lazy" decoding="async" width="1512" height="972" src="https://chandoo.org/wp/wp-content/uploads/2025/06/SNAG-0143.png" alt="Example merged CSV files in Excel" class="wp-image-19431" style="width:604px;height:auto" srcset="https://chandoo.org/wp/wp-content/uploads/2025/06/SNAG-0143.png 1512w, https://chandoo.org/wp/wp-content/uploads/2025/06/SNAG-0143-768x494.png 768w" sizes="(max-width: 1512px) 100vw, 1512px" /></figure>



<h2 class="wp-block-heading">For &#8220;Advanced&#8221; Merge Scenarios &#8211; Combine &amp; Transform Data</h2>



<p>If your CSV files are not so simple or you want to <em>further </em>clean-up data after merging, you can follow these steps. </p>



<p>Select the &#8220;Combine &amp; Transform Data&#8221; option in after Step 3 (ie once you point the folder). This will take you to Power Query editor (after you confirm the file details, as shown in step 6 above).</p>



<p>Once you are in Power Query Editor screen, you can apply any data clean-up and transformation steps on your data easily. I will share a few examples below. But refer to my <a href="https://chandoo.org/wp/power-query-tutorial/">Power Query tutorial page</a> or <a href="https://youtu.be/UAFExySaSPY">video</a> for detailed information on how to use Power Query for data cleaning and transformations.</p>



<h3 class="wp-block-heading">Example 1: Removing the &#8220;Total&#8221; column from merged CSV files</h3>



<p>Let&#8217;s say you don&#8217;t want the &#8220;total&#8221; column from these merged budget files. In the Power Query editor, right click on the &#8220;total&#8221; column and select &#8220;remove&#8221;. This will remove the total budget column. Don&#8217;t worry, it is not going to remove data from original CSV files. But when you merge the data, you won&#8217;t just see the &#8220;total&#8221; column.</p>



<figure class="wp-block-image size-full"><img loading="lazy" decoding="async" width="1910" height="658" src="https://chandoo.org/wp/wp-content/uploads/2025/06/SNAG-0144.png" alt="Removing unwanted columns in merged CSV Data" class="wp-image-19432" srcset="https://chandoo.org/wp/wp-content/uploads/2025/06/SNAG-0144.png 1910w, https://chandoo.org/wp/wp-content/uploads/2025/06/SNAG-0144-768x265.png 768w, https://chandoo.org/wp/wp-content/uploads/2025/06/SNAG-0144-1536x529.png 1536w" sizes="(max-width: 1910px) 100vw, 1910px" /></figure>



<p></p>



<h3 class="wp-block-heading">Example 2: Reshaping the 12 columns to month &amp; value column structure</h3>



<p>While the 12 monthly column structure works best for gathering budget data, it may not be ideal for data analysis. So let&#8217;s reshape our merged data to a format like this:</p>



<ul class="wp-block-list">
<li>File name</li>



<li>Budget Category</li>



<li>Month</li>



<li>Budget value</li>
</ul>



<p>Essentially, each row of the data in original CSV file becomes 12 rows in merged file. This process is caleld &#8220;unpivoting&#8221;. It looks like this:</p>



<figure class="wp-block-image size-full"><img loading="lazy" decoding="async" width="972" height="540" src="https://chandoo.org/wp/wp-content/uploads/2025/06/SNAG-0145.png" alt="how unpivoting works - illustration" class="wp-image-19433" srcset="https://chandoo.org/wp/wp-content/uploads/2025/06/SNAG-0145.png 972w, https://chandoo.org/wp/wp-content/uploads/2025/06/SNAG-0145-768x427.png 768w" sizes="(max-width: 972px) 100vw, 972px" /></figure>



<p><strong>To unpivot data in Power Query Editor</strong>:</p>



<ol class="wp-block-list">
<li>Select the file name &amp; cost category columns (and any other columns you want to retain).</li>



<li>Tip: You can hold Shift or CTRL to multi-select columns in Power Query Editor.</li>



<li>Right click on the selected columns and select &#8220;Unpivot <em>other </em>columns&#8221; option.</li>
</ol>



<figure class="wp-block-image size-full is-resized"><img loading="lazy" decoding="async" width="803" height="609" src="https://chandoo.org/wp/wp-content/uploads/2025/06/SNAG-0146.png" alt="Unpivoting budget data in the merged CSV files" class="wp-image-19434" style="width:563px;height:auto" srcset="https://chandoo.org/wp/wp-content/uploads/2025/06/SNAG-0146.png 803w, https://chandoo.org/wp/wp-content/uploads/2025/06/SNAG-0146-768x582.png 768w" sizes="(max-width: 803px) 100vw, 803px" /></figure>



<p>This will replace the 12 monthly columns with a new &#8220;Attribute&#8221; and &#8220;Value&#8221; columns. These are nothing but our Month and Budget columns!</p>



<figure class="wp-block-image size-full is-resized"><img loading="lazy" decoding="async" width="882" height="631" src="https://chandoo.org/wp/wp-content/uploads/2025/06/SNAG-0147.png" alt="After unpivot - much better combined CSV file" class="wp-image-19435" style="width:567px;height:auto" srcset="https://chandoo.org/wp/wp-content/uploads/2025/06/SNAG-0147.png 882w, https://chandoo.org/wp/wp-content/uploads/2025/06/SNAG-0147-768x549.png 768w" sizes="(max-width: 882px) 100vw, 882px" /></figure>



<p><strong>Renaming the columns: </strong>You can double click on the column header and rename it to Month and Budget.</p>



<h2 class="wp-block-heading">Load combined CSV data to Excel:</h2>



<p>When you finish the data clean up and transformations you want to do, go to the Home ribbon in Power Query editor and click on &#8220;Close &amp; Load&#8221; to bring the finalized data to Excel.</p>



<figure class="wp-block-image size-full is-resized"><img loading="lazy" decoding="async" width="1170" height="735" src="https://chandoo.org/wp/wp-content/uploads/2025/06/SNAG-0148.png" alt="How to load merged or combined data to Excel" class="wp-image-19436" style="width:588px;height:auto" srcset="https://chandoo.org/wp/wp-content/uploads/2025/06/SNAG-0148.png 1170w, https://chandoo.org/wp/wp-content/uploads/2025/06/SNAG-0148-768x482.png 768w" sizes="(max-width: 1170px) 100vw, 1170px" /></figure>



<h2 class="wp-block-heading">Why this method is the best?</h2>



<p>I have been using (and advocating) Power Query for more than 10 years. I can&#8217;t tell you how much time and effort this little trick has saved me. Here are my top reasons for why Power Query is the best way to merge CSV files.</p>



<ul class="wp-block-list">
<li><strong>Fully Dynamic:</strong> You don&#8217;t need to worry about changing files or growing (or even shrinking) data. Once you properly set up the Power Query connection, your data will be merged <em>automatically </em>even if there are 1000s of files. </li>



<li><strong>Automated: </strong>One of the biggest challenges with data merges like this is that your raw data files change often. With Power Query, updating the &#8220;merged&#8221; dataset is really simple. Open the merged file, right click anywhere on the merged data table and select &#8220;Refresh&#8221; to automatically update the merged CSV data.</li>
</ul>



<figure class="wp-block-image size-full is-resized"><img loading="lazy" decoding="async" width="734" height="691" src="https://chandoo.org/wp/wp-content/uploads/2025/06/SNAG-0149.png" alt="Refreshing or updating merged CSV data when the folder changes or you have new files" class="wp-image-19437" style="width:496px;height:auto"/></figure>



<ul class="wp-block-list">
<li><strong>Works even if the columns are out of order</strong>*: This method works just as perfectly even if your CSV files have columns in jumbled order, <em>as long as the column headings are same across files. </em>That means if file 1 has &#8220;Cost category&#8221; as column 1 and file 3 has &#8220;Cost category&#8221; as column 14, the merge still works, as the column heading is matching in both cases. I talk about how to deal with more complex situations of <a href="https://youtu.be/ECtJQDc8uF8">mismatched headers in this video.</a></li>
</ul>



<h2 class="wp-block-heading">Other ways to combine or merge CSV files with Excel</h2>



<p>We can also use below techniques to merge CSV files with Excel (I prefer Power Query btw).</p>



<ul class="wp-block-list">
<li><strong>Using VBA Macros to combine CSV files: </strong>Excel&#8217;s own coding language &#8211; VBA offers a powerful and proven way to combine multiple files (CSV, Text or even other Excel files) and get merged data in one place. This is an advanced method and not really recommended for beginners. Refer to this article for a detailed step-by-step instruction on <a href="https://chandoo.org/wp/consolidate-data-from-different-excel-files-vba/">how to combine data with Excel VBA</a></li>



<li><strong>Manual Copy Pasting: </strong>For something quick and dirty, you can also manually open the CSV files and copy paste the data into master Excel file. This is an error-prone and labor intensive process and should only be used in one-off cases. </li>



<li><strong>Command Line Utilities:</strong> As CSVs are just text files, you can also use a simple command line utility to combine multiple CSVs to one file. This has the disadvantage of repeating headers and not working when the headers don&#8217;t match up or columns don&#8217;t align. Here is the command for Windows. This combines the CSV files in the sub-folder &#8220;merge csv&#8221; to a new file named &#8220;combined_file.csv&#8221;. </li>
</ul>



<div class="wp-block-kevinbatdorf-code-block-pro" data-code-block-pro-font-family="Code-Pro-JetBrains-Mono" style="font-size:.875rem;font-family:Code-Pro-JetBrains-Mono,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace;line-height:1.25rem;--cbp-tab-width:2;tab-size:var(--cbp-tab-width, 2)"><span style="display:block;padding:16px 0 0 16px;margin-bottom:-1px;width:100%;text-align:left;background-color:#1E1E1E"><svg xmlns="http://www.w3.org/2000/svg" width="54" height="14" viewBox="0 0 54 14"><g fill="none" fill-rule="evenodd" transform="translate(1 1)"><circle cx="6" cy="6" r="6" fill="#FF5F56" stroke="#E0443E" stroke-width=".5"></circle><circle cx="26" cy="6" r="6" fill="#FFBD2E" stroke="#DEA123" stroke-width=".5"></circle><circle cx="46" cy="6" r="6" fill="#27C93F" stroke="#1AAB29" stroke-width=".5"></circle></g></svg></span><span role="button" tabindex="0" data-code="copy /b &quot;merge csv&quot;\*.csv combined_file.csv" style="color:#D4D4D4;display:none" aria-label="Copy" class="code-block-pro-copy-button"><svg xmlns="http://www.w3.org/2000/svg" style="width:24px;height:24px" fill="none" viewBox="0 0 24 24" stroke="currentColor" stroke-width="2"><path class="with-check" stroke-linecap="round" stroke-linejoin="round" d="M9 5H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V7a2 2 0 00-2-2h-2M9 5a2 2 0 002 2h2a2 2 0 002-2M9 5a2 2 0 012-2h2a2 2 0 012 2m-6 9l2 2 4-4"></path><path class="without-check" stroke-linecap="round" stroke-linejoin="round" d="M9 5H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V7a2 2 0 00-2-2h-2M9 5a2 2 0 002 2h2a2 2 0 002-2M9 5a2 2 0 012-2h2a2 2 0 012 2"></path></svg></span><pre class="shiki dark-plus" style="background-color: #1E1E1E" tabindex="0"><code><span class="line"><span style="color: #569CD6">copy</span><span style="color: #D4D4D4"> /b </span><span style="color: #CE9178">&quot;merge csv&quot;</span><span style="color: #D4D4D4">\*.csv combined_file.csv</span></span></code></pre></div>



<figure class="wp-block-image size-full"><img loading="lazy" decoding="async" width="1239" height="393" src="https://chandoo.org/wp/wp-content/uploads/2025/06/SNAG-0150.png" alt="DOS command to merge CSV files " class="wp-image-19438" srcset="https://chandoo.org/wp/wp-content/uploads/2025/06/SNAG-0150.png 1239w, https://chandoo.org/wp/wp-content/uploads/2025/06/SNAG-0150-768x244.png 768w" sizes="(max-width: 1239px) 100vw, 1239px" /></figure>



<ul class="wp-block-list">
<li><strong>Using online tools: </strong>Plenty of online tools offer CSV merge functionality. You can upload your files on these websites and they will combine them for you. I suggest checking the privacy policies of these websites and using them only if you can&#8217;t apply Power Query or VBA or manual methods. Here are a few that offer this service: <a href="https://merge-csv.com/">MergeCSV</a>, <a href="https://csvcombiner.com/">CSV Combiner</a> </li>
</ul>



<h2 class="wp-block-heading">Best Practices when Merging CSV Files (with PQ in Excel):</h2>



<ul class="wp-block-list">
<li><strong>Columns should match (need not be in same order): </strong>The merge options in Power Query work best if your columns match, even if they are out of order across files. </li>



<li><strong>Keep the folder clean:</strong> By default, Power Query is going to combine all the files in the folder you point to. So keep the folder clean and tight. Don&#8217;t copy or create files in the folder that you don&#8217;t want to merge.</li>



<li><strong>Close files before refresh:</strong> Power Query refresh can fail or miss the files if you keep them open when updating the query. So close everything before you hit refresh.</li>



<li><strong>Data Format Issues (especially with Dates):</strong> If you have CSVs containing dates and these files use different date formats, the merged file can be a mess and throw date formatting issues. Synchronize date and currency formats across files before merging them to avoid such data format issues.</li>
</ul>



<h2 class="wp-block-heading">In conclusion &#8211; Use Power Query to Merge your CSVs</h2>



<p>Excel&#8217;s own Power Query offers a superior, easy and automatic way to combine CSV files. It works beautifully even when combining 1000s of files. For a recent client project, I combined 340 different budget files with Excel Power Query in under 10 minutes. Needless to say, the client&#8217;s jaw dropped when they saw the demo!</p>



<p>But for whatever reason, you can&#8217;t use Power Query, try either VBA or command line utilities or one of the online CSV combine options.</p>



<h2 class="wp-block-heading">Bonus: Sample Files &amp; CSV Combine Template</h2>



<p>If you need a hand with combining CSV files, download my sample data files and CSV combiner template using below links. Unzip the files and adjust folder path in Power Query (source step of the merged query) to make it work with your computer&#8217;s path.</p>



<ul class="wp-block-list">
<li><a href="https://chandoo.org/wp/wp-content/uploads/2025/06/merged-data-file.xlsx">CSV Combiner Template</a></li>



<li><a href="https://1drv.ms/u/c/e7c6dec249ad257b/EWYiCPTbc1BEv-b-T7AOpjABJ2N7awgpL1n6wmRwjWa-hg?e=QFa8Bp">Raw Data CSV Files </a></li>
</ul>



<h2 class="wp-block-heading">Resources on Power Query</h2>



<p>If you want to learn a bit more about what Power Query can do for your data problems, check out below resources:</p>



<ul class="wp-block-list">
<li><a href="https://chandoo.org/wp/power-query-tutorial/">Power Query Tutorial with 4 AWESOME Examples</a></li>



<li><a href="https://chandoo.org/wp/combine-excel-files-using-power-query/">Combine multiple Excel files with Power Query</a></li>



<li><a href="https://chandoo.org/wp/compare-two-tables/">How to extract common values between two tables in Excel?</a></li>



<li><a href="https://youtu.be/UAFExySaSPY">Learn Power Query for Excel in 15 minutes &#8211; Video</a></li>
</ul>



<p></p>
<p>The post <a href="https://chandoo.org/wp/how-to-merge-multiple-csv-files-in-excel/">How to Merge Multiple CSV Files in Excel (Step-by-Step Guide)</a> appeared first on <a href="https://chandoo.org/wp">Chandoo.org - Learn Excel, Power BI &amp; Charting Online</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://chandoo.org/wp/how-to-merge-multiple-csv-files-in-excel/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
		<post-id xmlns="com-wordpress:feed-additions:1">19425</post-id>	</item>
	</channel>
</rss>
