<?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:georss="http://www.georss.org/georss"
	xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#"
	>

<channel>
	<title>Row Archives - Excel Zoom</title>
	<atom:link href="https://excelzoom.com/tag/row/feed/" rel="self" type="application/rss+xml" />
	<link>https://excelzoom.com/tag/row/</link>
	<description>...because it&#039;s more than just a calculator</description>
	<lastBuildDate>Mon, 04 Mar 2019 17:41:27 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=6.7.2</generator>

<image>
	<url>https://excelzoom.com/wp-content/uploads/2022/04/favicon.ico</url>
	<title>Row Archives - Excel Zoom</title>
	<link>https://excelzoom.com/tag/row/</link>
	<width>32</width>
	<height>32</height>
</image> 
	<item>
		<title>Remove All Rows Containing Certain Data</title>
		<link>https://excelzoom.com/remove-all-rows-containing-certain-data/</link>
					<comments>https://excelzoom.com/remove-all-rows-containing-certain-data/#comments</comments>
		
		<dc:creator><![CDATA[Mark]]></dc:creator>
		<pubDate>Mon, 20 Jul 2015 17:10:38 +0000</pubDate>
				<category><![CDATA[Tips]]></category>
		<category><![CDATA[Cell]]></category>
		<category><![CDATA[Row]]></category>
		<category><![CDATA[Shortcuts]]></category>
		<guid isPermaLink="false">http://excelzoom.com/?p=826</guid>

					<description><![CDATA[<p>Recently I had some data from a website that was poorly formatted, but I needed to get it into a spreadsheet to work with. When I copied the data into the spreadsheet, I needed to remove all of the rows that contained certain irrelevant data, such as repeated header fields. Other use cases might require you [&#8230;]</p>
<p>The post <a rel="nofollow" href="https://excelzoom.com/remove-all-rows-containing-certain-data/">Remove All Rows Containing Certain Data</a> appeared first on <a rel="nofollow" href="https://excelzoom.com">Excel Zoom</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p>Recently I had some data from a website that was poorly formatted, but I needed to get it into a spreadsheet to work with. When I copied the data into the spreadsheet, I needed to remove all of the rows that contained certain irrelevant data, such as repeated header fields.</p>
<p>Other use cases might require you to delete any rows containing someone&#8217;s name, a location, or some other information to trim the excess data from your sheet.</p>
<h2>How to Remove all Rows Containing Certain Data</h2>
<ol>
<li>Select all of your data, including the data you wish to remove.</li>
<li><img fetchpriority="high" decoding="async" class="alignright size-full wp-image-827" src="https://excelzoom.com/wp-content/uploads/2015/07/find-replace.png" alt="find-replace" width="457" height="301" />Press <strong>Ctrl F</strong> to open the Find and Replace window.</li>
<li>Type the text that is contained in the row you wish to delete. For example if you need to delete rows with someone&#8217;s name, type that name in.</li>
<li>Click the Find All button.
<ul>
<li>This will show a list of all cells containing the data you searched for below the search box.</li>
</ul>
</li>
<li><img decoding="async" class="alignright size-full wp-image-828" src="https://excelzoom.com/wp-content/uploads/2015/07/delete-row.png" alt="delete-row" width="177" height="175" srcset="https://excelzoom.com/wp-content/uploads/2015/07/delete-row.png 177w, https://excelzoom.com/wp-content/uploads/2015/07/delete-row-100x100.png 100w" sizes="(max-width: 177px) 100vw, 177px" />Click on one of the results that appear below the search box, then press <strong>Ctrl A</strong>.
<ul>
<li>All results should be highlighted now. Also, if you notice on your spreadsheet, each cell containing what you searched for will be selected.</li>
</ul>
</li>
<li>Click the Close button on the Find and Replace window.</li>
<li>Press <strong>Ctrl &#8211;</strong> to open the Delete window.</li>
<li>Select the Entire Row option, and press the OK button.</li>
</ol>
<p>All rows containing the data you wanted to remove should be gone now!</p>
<p>You can also remove an entire column of data that contains certain information in a similar manner. To remove the entire column, simply select the Entire Column option in the last step above.</p>
<p>As with any data modification, be sure to have a copy of your data saved elsewhere as a backup just in case you accidentally remove some important information. This will ensure that when trying to remove all rows containing certain data, you do so in the safest possible way.</p>
<h2>Remove Certain Rows Containing Certain Data with VBA</h2>
<p>In the developer tab, go to Visual Basic as normal and create a module like the one below. Change and amend the code to your needs and then simply run the module on your sheet.</p>
<p>&nbsp;</p>
<pre class="lang-vb prettyprint prettyprinted"><code> <span class="kwd">Sub</span><span class="pln"> Delete_All_Rows_IF_Cell_Contains_Certain_String_Text</span><span class="pun">()</span>
    <span class="kwd">Dim</span><span class="pln"> lRow </span><span class="kwd">As</span> <span class="kwd">Long</span>
    <span class="kwd">Dim</span><span class="pln"> iCntr </span><span class="kwd">As</span> <span class="kwd">Long</span><span class="pln">
    lRow </span><span class="pun">=</span> <span class="lit">1000</span>
    <span class="kwd">For</span><span class="pln"> iCntr </span><span class="pun">=</span><span class="pln"> lRow </span><span class="kwd">To</span> <span class="lit">1</span> <span class="kwd">Step</span> <span class="pun">-</span><span class="lit">1</span>
        <span class="kwd">If</span><span class="pln"> Cells</span><span class="pun">(</span><span class="pln">iCntr</span><span class="pun">,</span> <span class="lit">3</span><span class="pun">).</span><span class="pln">Value </span><span class="pun">=</span> <span class="str">"Certain data to delete here"</span> <span class="kwd">Then</span><span class="pln">
            Rows</span><span class="pun">(</span><span class="pln">iCntr</span><span class="pun">).</span><span class="pln">Delete
        </span><span class="kwd">End</span> <span class="kwd">If</span>
    <span class="kwd">Next</span>
    <span class="kwd">End</span> </code></pre>
<p>Number &#8220;3&#8221; in the &#8216;If Cells (iCntr, 3).Value represents the third column (C)<br />
lRow = 1000 means it will check the first 1000 rows.</p>

<p>The post <a rel="nofollow" href="https://excelzoom.com/remove-all-rows-containing-certain-data/">Remove All Rows Containing Certain Data</a> appeared first on <a rel="nofollow" href="https://excelzoom.com">Excel Zoom</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://excelzoom.com/remove-all-rows-containing-certain-data/feed/</wfw:commentRss>
			<slash:comments>7</slash:comments>
		
		
			</item>
		<item>
		<title>Delete Every Other Row in Excel</title>
		<link>https://excelzoom.com/delete-every-other-row-in-excel/</link>
					<comments>https://excelzoom.com/delete-every-other-row-in-excel/#comments</comments>
		
		<dc:creator><![CDATA[Mark]]></dc:creator>
		<pubDate>Mon, 28 Jul 2014 22:23:13 +0000</pubDate>
				<category><![CDATA[Macros]]></category>
		<category><![CDATA[Row]]></category>
		<category><![CDATA[Shortcuts]]></category>
		<category><![CDATA[VBA]]></category>
		<guid isPermaLink="false">http://excelzoom.com/?p=593</guid>

					<description><![CDATA[<p>Sometimes you will copy and paste data into a worksheet from another file, a web page, or some other source that isn&#8217;t formatted the way you want it. Often times there is extra irrelevant data like row numbers or other miscellaneous information that gets added in when you paste the data. If the unneeded data [&#8230;]</p>
<p>The post <a rel="nofollow" href="https://excelzoom.com/delete-every-other-row-in-excel/">Delete Every Other Row in Excel</a> appeared first on <a rel="nofollow" href="https://excelzoom.com">Excel Zoom</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p>Sometimes you will copy and paste data into a worksheet from another file, a web page, or some other source that isn&#8217;t formatted the way you want it. Often times there is extra irrelevant data like row numbers or other miscellaneous information that gets added in when you paste the data. If the unneeded data is on it&#8217;s own row, you can delete every other row easily with the macro in this tutorial.<br />
</p>
<h2>Delete Every Other Row in Excel</h2>
<p>This tutorial will require you to use the Visual Basic Editor to create a macro.</p>
<p>In earlier versions of Excel (prior to 2007), click <em>Tools</em> &gt; <em>Macro</em> &gt; <em>Visual Basic Editor</em>.</p>
<p>In Excel 2007 or later, click <em>Developer</em> tab, and then <em>Visual Basic</em> in the <em>Code</em> group.</p>
<p>In the <em>Project</em> pane, right click your workbook &gt; <em>Insert</em> &gt; <em>Module.</em></p>
<p><img decoding="async" class="aligncenter size-full wp-image-594" src="https://excelzoom.com/wp-content/uploads/2014/07/insert-module.png" alt="Delete Every Other Row" width="406" height="205" /></p>
<p>Next, double click the new module (usually Module1 unless there were already modules there) under your workbook. Paste the following code into the new module:</p>

<p><strong>IMPORTANT: Create a backup of your file just in case, because there is no easy way of retrieving the data that is deleted after this macro is run.</strong></p>
<p>Depending on your needs, you may need to change the <code>Y = False</code> to <code>Y = True</code> to delete the correct rows. False will delete the even row numbers, and True will delete the odd row numbers. </p>
<p>To use this macro, select the rows that contain the data where every other row should be deleted. The macro will only work on the selected range, so if you have other data outside of a specific range, it won&#8217;t be touched by this macro if you don&#8217;t select it first.</p>
<p>Also, note that the True/False setting discussed earlier refers to the actual row numbers in Excel, and not the 1st, 3rd, 5th etc. or 2nd, 4th, 6th etc. rows in your selected range. For example, if you want to delete every other row with Y=False and select rows 2-8, Excel rows 2, 6, and 8 will be deleted. If you select rows 2-8 with Y=True, Excel rows 3, 5, and 7 will be deleted.</p>
<p>The post <a rel="nofollow" href="https://excelzoom.com/delete-every-other-row-in-excel/">Delete Every Other Row in Excel</a> appeared first on <a rel="nofollow" href="https://excelzoom.com">Excel Zoom</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://excelzoom.com/delete-every-other-row-in-excel/feed/</wfw:commentRss>
			<slash:comments>1</slash:comments>
		
		
			</item>
	</channel>
</rss>
