How to Copy Values Only if Another Column Says 'Completed' in Microsoft Excel

Abstract: Extract values from one column only when a corresponding status column contains 'Completed' using Excel formulas, Advanced Filter, or Power Query.

Created: 2026-09-09 by
To copy values only when another column says 'Completed' in Excel, use the =IF(C2="Completed", A2, "") formula to filter data directly within a cell. This method creates a dynamic list that updates automatically as your source data changes. Alternatively, you can use Advanced Filter or Power Query for more complex datasets that require exporting results to a new location without altering the original structure.

Using the IF Function for Simple Filtering

The most straightforward approach for small to medium-sized datasets is using the IF function. This formula checks a specific condition and returns a value if true, or an empty string if false. It is non-destructive, meaning it does not move or delete any original data, but rather displays the relevant information in a separate column. First, identify the column containing the status text (e.g., "Completed") and the column containing the values you wish to copy. Assume your status is in column B and the values are in column A. In the first cell of your new output column, enter the following formula:
=IF(B2="Completed", A2, "")
This formula reads as follows: If cell B2 contains the exact text "Completed", return the value from A2; otherwise, return nothing. Ensure the text matches exactly, including capitalization. If your data might have trailing spaces, consider wrapping the condition in TRIM() or using SEARCH for partial matches. After entering the formula, drag the fill handle down to apply it to all rows in your dataset. You will see a new column populated only with values where the corresponding status was "Completed". All other cells will appear blank. To make this look cleaner, you can hide the blank rows by selecting the entire column, pressing Ctrl+1, going to the Alignment tab, and checking "Hide" under Vertical alignment, though simply filtering out blanks is often easier. If you need to convert these formulas into static values so they no longer depend on the source cells, select the new column, press Ctrl+C to copy, then right-click and choose Paste Special > Values. This breaks the link to the original formulas, preserving the current state of the data.

Advanced Filter for Extracting Data to a New Location

When you need to extract records to a completely different area of the worksheet or a new sheet, the Advanced Filter feature is superior. Unlike the IF method which lists items sequentially, Advanced Filter can copy unique records or specific ranges based on criteria. Start by setting up a criteria range. This must include the header of the column you are filtering and at least one row below it with the condition. For example, if your data starts at A1 with headers "Value" and "Status", create a criteria block elsewhere like E1:F2. Put "Status" in E1 and "Completed" in E2. Select your original data range, go to the Data tab, and click Advanced in the Sort & Filter group. Choose "Copy to another location". In the List range, select your original data. In the Criteria range, select your newly created criteria block. Finally, specify the Copy to range where you want the results to appear. Click OK, and Excel will populate the target range with only the rows matching your condition. This method is particularly useful when dealing with multiple conditions or when you need to preserve the original row structure relative to the extracted data. It also handles large datasets more efficiently than dragging thousands of formula instances.

Power Query for Robust Data Transformation

For recurring tasks or very large datasets, Power Query offers a scalable solution. Accessible via the Data tab under Get & Transform Data, this tool allows you to clean and reshape data without writing complex formulas or macros. Load your table into Power Query by selecting the data and clicking From Table/Range. In the Power Query Editor, locate the Status column and filter it to show only "Completed". Once filtered, you can remove any unnecessary columns, keeping only the values you intend to copy. Click Close & Load to push the cleaned data back into Excel. This creates a new table that reflects your filtered selection. The best part is that whenever your source data updates, you simply right-click the result table and select Refresh. This ensures your copied values are always up-to-date without manual intervention. For users who prefer automation over manual refreshing, consider creating a macro to automate similar navigation tasks. See How to Create a Macro to Go to a Cell with Changing Cell References in Microsoft Excel for insights on automating Excel actions.

Handling Common Errors and Edge Cases

Several issues may arise when implementing these methods. One common problem is case sensitivity. The IF function is case-sensitive by default. If your data contains "completed", "COMPLETED", or "Completed", the basic formula will fail for variations. Use =IF(UPPER(B2)="COMPLETED", A2, "") to standardize the comparison. Another issue is hidden characters. Sometimes cells appear identical but contain invisible spaces or non-breaking spaces. Use LEN() to check the character length of your status cells. If lengths vary unexpectedly, clean the data using Find & Replace or the CLEAN() function before applying filters. If you encounter references to blank cells becoming zeros in your calculations after copying, understand that Excel treats empty strings differently than zero values. See References to blank cells become 0's for troubleshooting steps regarding numeric conversions. Finally, ensure that your data is formatted consistently. If the status column contains mixed data types (some text, some dates), convert them all to text format before filtering. This prevents Excel from misinterpreting entries during the copy process.

Frequently Asked Questions

Can I copy values to a different sheet automatically?

Yes, using the Advanced Filter method described above, you can specify a destination range on a different sheet. Simply point the "Copy to" field to the new sheet's address, such as Sheet2!A1. This keeps your raw data intact while generating reports elsewhere.

What if my "Completed" status has extra spaces?

Extra spaces cause mismatch errors. Wrap your condition in the TRIM() function, like =IF(TRIM(B2)="Completed", A2, ""). This removes leading and trailing spaces, ensuring accurate comparisons even with messy input data.

Is there a way to do this without formulas?

Absolutely. You can use AutoFilter by clicking the dropdown arrow on the Status column header and unchecking everything except "Completed". Then, select the visible cells in the Value column, copy them, and paste them wherever needed. Note that this is a manual one-time action unless combined with VBA.

How do I prevent hyperlinks from opening when I paste numbers?

When pasting data that looks like phone numbers or URLs, Excel may auto-format them. To stop this, paste as Text or use Paste Special > Unformatted Text. Additionally, see How to Stop Numbers from Automatically Opening Hyperlinks in Excel for detailed prevention techniques.

Can I filter based on multiple statuses like "Completed" and "In Progress"?

Yes, modify the IF formula to include OR: =IF(OR(B2="Completed", B2="In Progress"), A2, ""). For Advanced Filter, add another row in the criteria range with the same header and the second status value.

Latest News

How to Display Output of xterm Command in Terminal Screen using Cron

Resolve the inability to display xterm output in a terminal screen from cron by redirecting logs or using wall instead of insecure X11 workarounds.

Read More
Expose Local Server on VPS Preserving Real Client IPs (OS Level)

Resolve VPS logging showing only gateway IPs by configuring reverse proxies to forward real client addresses via X-Forwarded-For headers.

Read More
How to Clear Recent Files History in Linux without Deleting Actual Files?

Clear recent files history in Linux by deleting ~/.local/share/recently-used.xbel without removing the actual files.

Read More
Best HDD Copy Strategy: Manually Syncing and Rewriting Scratch

Resolve data drift between two 4TB hard drives by using rsync with the --delete flag to manually sync and rewrite scratch data for an exact mirror.

Read More
Understanding Bash Prompt Abbreviations: An Overview

Resolve repetitive typing errors by creating and persisting Bash aliases in the .bashrc file for improved command-line efficiency.

Read More
Free Tools and Methods to Log Real-Time Performance Details in Task Manager

Log real-time CPU and memory metrics to CSV files using Windows Performance Monitor Data Collector Sets to troubleshoot system slowness.

Read More
Contact Qatar Airways Customer Service: Phone Number, Help Center, and More

Resolve urgent Qatar Airways reservation issues like flight changes and baggage claims using the US phone number +1801-855-5905 or online self-service tools.

Read More
Windows 11: Alt Codes Displaying Wrong Characters - Solutions

Resolve Windows 11 Alt codes showing wrong characters by verifying the US keyboard layout and enabling Num Lock.

Read More
Run Programs with Elevated Privileges: A Comprehensive Guide

Eliminates the need to type sudo for frequent administrative tasks by configuring .bashrc aliases or functions.

Read More
Dynamically Changing Dates in Excel Formulas Using Cells

Eliminate manual date updates in Excel by using cell references to create dynamic formulas that automatically adjust calculations when input dates change.

Read More
Granting Edit Access to a Specific Excel Sheet in an Office 365 User Email ID-Based Login

Excel Online lacks native sheet-level permissions, so users must split workbooks or use worksheet protection to isolate edit access for specific tabs.

Read More
Creating Network Load on Local Wi-Fi from One PC

Generate sustained Wi-Fi bandwidth load from a single PC using a VM SFTP server to test router stability and throughput.

Read More
Changing the Default Editor for Batch Files in Windows 11's File Explorer

Resolve the issue of batch files opening in Notepad by changing the default editor to a preferred application like VS Code.

Read More
Gain WiFi Connection Minutes Before Losing it by Changing MAC Address

Bypass MAC address filtering to restore WiFi connectivity temporarily when a device is blocked by network administrators.

Read More
Photos Folders Turned Black: Troubleshooting Picture Applications on Windows

Resolve black screens in Windows Photos by resetting the app, updating graphics drivers, and repairing system files.

Read More
Troubleshooting High CPU Temperature Values: A Step-by-Step Guide

Resolve high CPU temperatures and thermal throttling by monitoring with Speedfan, cleaning dust from cooling components, and replacing degraded thermal paste.

Read More
Make cURL establish TLS connection with CA unknown

Resolve cURL TLS connection failures with unknown or self-signed certificates by using the --insecure flag to bypass CA validation.

Read More
Troubleshooting Incorrect Network Metrics Values in Grafana, Prometheus, InfluxDB, and Telegraf

Fix incorrect network metrics in Grafana, Prometheus, InfluxDB, and Telegraf by verifying interface selection, resolving unit mismatches, and handling counter resets.

Read More
Start Another Terminal Window (cmd.exe) Windows Repair/Troubleshoot

Provides step-by-step instructions to access the Windows Command Prompt via bootable media for advanced system repair and troubleshooting.

Read More
Thinkpad P1 Gen 6: Sudden Thunderbolt 3 Dock USB-C Charging Stopped Working

Resolve sudden Thunderbolt 3 dock USB-C charging and internet failure on ThinkPad P1 Gen 6 by updating firmware, resetting the dock, and adjusting power settings.

Read More
ASUS Windows 11 Laptop: Internet Connection Issue with Hotspot

Resolve ASUS Windows 11 laptop spinning wheel issue when connecting to mobile hotspot by resetting network stack, disabling IPv6, and adjusting power settings.

Read More
Developing iOS Project with Firebase: Logging in and Sending Push Notifications

Integrates Firebase to enable secure user authentication and push notifications in iOS applications.

Read More
Troubleshooting Bash Script with Suspected Issues of Spaces, Dashes, Filenames and Quoting

Resolve Bash script failures caused by word splitting, globbing, and special characters in filenames by applying proper quoting techniques.

Read More
Populating OneDrive Folder for Local Backup without Affecting Remote Files

Prevent OneDrive from deleting remote files during Windows reinstallation by unlinking the account or using symbolic links to isolate local data.

Read More
Force First Frame as Keyframe Without Re-encoding: A Quick Solution

Resolve inaccurate seeking and playback glitches by re-encoding video to ensure the first frame is a valid keyframe.

Read More
Find Information in Database Using WSL (Ubuntu) on Windows-10

Resolve database connection issues from WSL Ubuntu on Windows 10 by configuring client tools and network access to query remote or local servers.

Read More
Configuring a New Router with Different Networks: One Family, One Guest

Resolve IP conflicts and isolate guest traffic by configuring a second router with a distinct subnet via its WAN port.

Read More
Quickly Open Multiple Stock Websites with a Single Command

Solve the problem of manually opening multiple stock research websites by creating a single command to launch them simultaneously on Windows, macOS, or Linux.

Read More
Improved Adobe Acrobat Search Experience: Access Advanced Search with Ease

Access advanced search filters like case sensitivity and regex in Adobe Acrobat by clicking More Options in the Find bar.

Read More
Port Forwarding VM via OpenVPN: A Comprehensive Guide

Configure OpenVPN server and iptables to forward specific ports from VPN clients to a virtual machine's internal IP address.

Read More
Understanding Partitions in the 1980s: A Look Back at MS-DOS and Master Boot Record

Explains how the Master Boot Record and partition table enabled MS-DOS to manage multiple disk volumes on a single physical drive.

Read More
Windows 10 Enterprise: Keyboard Not Detected in Managed Organization with Admin Privileges

Resolve Windows 10 Enterprise keyboard detection failures caused by Group Policy restrictions, driver corruption, or USB enumeration errors.

Read More
Can't Find x86_64 Versions of Applications on MacOS arm64 (M1)

Resolve missing x86_64 app issues on M1 Macs by installing Rosetta 2 and reinstalling apps as universal binaries.

Read More
How to Hide Installation Source for an Android App

Manage Android app installation source visibility by using USB transfers or file managers to reduce browser traces and isolate data via work profiles.

Read More
Connecting Momentus 4200.2 ST9808210A Hard Drive via USB Cable

Resolve inability to access Seagate Momentus 4200.2 ST9808210A hard drive by connecting it via USB using a compatible SATA-to-USB adapter and configuring the disk in Windows.

Read More