search
HomeSoftware TutorialOffice SoftwareHow to extract the second, third, fourth... information in Excel

How to put the second in excel. three. Four. . . The contents of the column are placed below the first column

Use VBA programming to implement.

ALT F11——F7——Paste the following code and adjust the format:

Sub mysub()

Dim i As Integer

With Sheets(1)

Sheets(1).Select

For i = 2 To Cells(1, 256).End(xlToLeft).Column

Cells(Cells(65536, i).End(xlUp).Row, i).Select

Range(Selection, Cells(1, i)).Select

Selection.Copy

Cells([a65536].End(xlUp).Row 1, 1).Select

ActiveSheet.Paste

Application.CutCopyMode = False

Next i

Columns("A:A").Select

Selection.SpecialCells(xlCellTypeBlanks).Select

Selection.EntireRow.Delete

Cells(1, 1).Select

End With

End Sub

The operation effect is as follows:

How to extract the second, third, fourth... information in Excel

How to extract the second, third, fourth... information in Excel

What should I do if my Excel table does not have the cut, delete, and insert functions?

Sometimes after setting a password for Excel, there will be a series of operations such as Excel being unable to insert, delete, rename, move workbooks, etc. The editor will summarize the solutions here.

1. First, we open the encrypted Excel file

2. Right-click any workbook and you can see that most of the functions above are unavailable. This is the current situation.

3. Now we start to solve this problem. Move the mouse to the top and click the [Review] tab.

4. After clicking [Unprotect Shared Workbook], as shown in the figure, you will be prompted to enter your password (the password here is usually the password when you open Excel), and click Confirm in both steps. Then close the Excel document.

5. Open the Excel document again, and we find that [Unprotect shared workbook] has changed to [Protect and share workbook]. Don’t worry, our work is not over yet.

6. Click [Protect Workbook], and then click [Protect Structure and Window]. A dialog box will pop up, prompting you to enter a password. The password is still the previous password.

7. After confirmation, after finding any workbook, right-click we can see that the functions that were unavailable before can now be used.

Right-clicking an Excel cell does not copy, cut, and set the cell commands

1. As shown in the figure, this is a table with data, which exists in the worksheet named "Gift" below. There are two more worksheets at the back, and there can be countless worksheets by adding more. What we need to do now is to copy this table with data to "sheet2".

How to extract the second, third, fourth... information in Excel

2. Select all of this table as shown in the figure. Not only select the ones with data and content, but also the blank ones. When you see the red circle in the upper left corner, click to select all.

How to extract the second, third, fourth... information in Excel

3. It’s still the small triangle-shaped button in the upper left corner. Right-click the mouse and the options as shown in the picture will appear. Then click Copy.

How to extract the second, third, fourth... information in Excel

4. Click to open the "sheet2" worksheet, and click to select the first cell in the upper left corner. Note that it is not the same as the one selected in the previous step. This is the cell.

How to extract the second, third, fourth... information in Excel

5. Then right-click to paste, so that the worksheet "Gift" and the worksheet "sheet2" both have the same data, and the table in the worksheet "sheet2" is retained as data.

How to extract the second, third, fourth... information in Excel

6. Try it, hide the rows with zero remaining quantity, and select these two rows.

How to extract the second, third, fourth... information in Excel

7. Right-click the mouse and select the hidden option.

How to extract the second, third, fourth... information in Excel

8. In this way, the data in the "Gifts" worksheet can be manipulated and compared with the original data easily, without fear of losing the original data.

How to extract the second, third, fourth... information in Excel

The above is the detailed content of How to extract the second, third, fourth... information in Excel. For more information, please follow other related articles on the PHP Chinese website!

Statement
This article is reproduced at:Excel办公网. If there is any infringement, please contact admin@php.cn delete
Excel MATCH function with formula examplesExcel MATCH function with formula examplesApr 15, 2025 am 11:21 AM

This tutorial explains how to use MATCH function in Excel with formula examples. It also shows how to improve your lookup formulas by a making dynamic formula with VLOOKUP and MATCH. In Microsoft Excel, there are many different lookup/ref

Nested IF in Excel – formula with multiple conditionsNested IF in Excel – formula with multiple conditionsApr 15, 2025 am 11:13 AM

This tutorial demonstrates how to effectively use multiple IF functions in Microsoft Excel, showcasing nested IF formulas for various tasks. The core concept is using nested IF statements to evaluate multiple conditions and return different results

Leading zeros in Excel: how to add, remove and hideLeading zeros in Excel: how to add, remove and hideApr 15, 2025 am 09:31 AM

This tutorial explores various methods for managing leading zeros in Excel, covering their preservation, display, and removal. Whether you're working with zip codes, IDs, or other data requiring leading zeros, this guide provides solutions. Excel of

Excel HLOOKUP function with formula examplesExcel HLOOKUP function with formula examplesApr 15, 2025 am 09:05 AM

Microsoft Excel's HLOOKUP function: A comprehensive guide Excel offers three lookup functions – LOOKUP, VLOOKUP, and HLOOKUP – but HLOOKUP often causes confusion. This tutorial clarifies HLOOKUP's specifics and provides examples for efficient use. Wh

If You Don't Rename Tables in Excel, Today's the Day to StartIf You Don't Rename Tables in Excel, Today's the Day to StartApr 15, 2025 am 12:58 AM

Quick link Why should tables be named in Excel How to name a table in Excel Excel table naming rules and techniques By default, tables in Excel are named Table1, Table2, Table3, and so on. However, you don't have to stick to these tags. In fact, it would be better if you don't! In this quick guide, I will explain why you should always rename tables in Excel and show you how to do this. Why should tables be named in Excel While it may take some time to develop the habit of naming tables in Excel (if you don't usually do this), the following reasons illustrate today

Microsoft 365 Will Turn Off ActiveX, Because Hackers Keep Using ItMicrosoft 365 Will Turn Off ActiveX, Because Hackers Keep Using ItApr 12, 2025 am 06:01 AM

Microsoft 365 is finally phasing out ActiveX, a long-standing security vulnerability in its Office suite. This follows a similar move in Office 2024. Beginning this month, Windows versions of Word, Excel, PowerPoint, and Visio in Microsoft 365 will

How to Use Excel's AGGREGATE Function to Refine CalculationsHow to Use Excel's AGGREGATE Function to Refine CalculationsApr 12, 2025 am 12:54 AM

Quick Links The AGGREGATE Syntax

How to Use the PIVOTBY Function in ExcelHow to Use the PIVOTBY Function in ExcelApr 11, 2025 am 12:56 AM

Quick Links The PIVOTBY Syntax

See all articles

Hot AI Tools

Undresser.AI Undress

Undresser.AI Undress

AI-powered app for creating realistic nude photos

AI Clothes Remover

AI Clothes Remover

Online AI tool for removing clothes from photos.

Undress AI Tool

Undress AI Tool

Undress images for free

Clothoff.io

Clothoff.io

AI clothes remover

AI Hentai Generator

AI Hentai Generator

Generate AI Hentai for free.

Hot Article

R.E.P.O. Energy Crystals Explained and What They Do (Yellow Crystal)
4 weeks agoBy尊渡假赌尊渡假赌尊渡假赌
R.E.P.O. Best Graphic Settings
4 weeks agoBy尊渡假赌尊渡假赌尊渡假赌
R.E.P.O. How to Fix Audio if You Can't Hear Anyone
4 weeks agoBy尊渡假赌尊渡假赌尊渡假赌
R.E.P.O. Chat Commands and How to Use Them
4 weeks agoBy尊渡假赌尊渡假赌尊渡假赌

Hot Tools

SublimeText3 Chinese version

SublimeText3 Chinese version

Chinese version, very easy to use

Atom editor mac version download

Atom editor mac version download

The most popular open source editor

VSCode Windows 64-bit Download

VSCode Windows 64-bit Download

A free and powerful IDE editor launched by Microsoft

Zend Studio 13.0.1

Zend Studio 13.0.1

Powerful PHP integrated development environment

DVWA

DVWA

Damn Vulnerable Web App (DVWA) is a PHP/MySQL web application that is very vulnerable. Its main goals are to be an aid for security professionals to test their skills and tools in a legal environment, to help web developers better understand the process of securing web applications, and to help teachers/students teach/learn in a classroom environment Web application security. The goal of DVWA is to practice some of the most common web vulnerabilities through a simple and straightforward interface, with varying degrees of difficulty. Please note that this software