Function Problems

Create an Overall Status Formula for Duplicate Names in Excel

Aamir Naveed AkramAamir Naveed Akram Dec 2, 2026 868 views

Question details

Create an overall status for each name using multiple status records on another worksheet.

Create an Overall Status Formula for Duplicate Names in Excel
Product
Microsoft Excel
Device & OS
not provided
Scenario
Names can appear more than once on a source worksheet, and a summary worksheet needs to show Pending, Submitted, or a combined status.
Observed behavior
The desired result depends on how each source status is classified and whether all records or only the latest record should count.
Before you start

Decide which source statuses count as Pending or Submitted and whether the result should combine all records or use the latest one. The example below assumes names are in Sheet1 column A, statuses are in Sheet1 column B, and the name to summarize is in Sheet2 cell A2.

Solution 1Recommended

Combine statuses with a COUNTIFS formula

Use this formula when every matching record should contribute to the overall status.

This example treats Pending, Data Entry, and Signatures as Pending, and Submitted as Submitted. If both groups appear for a name, it returns Pending/Submitted.

Other statuses, including Software, are ignored because their meaning was not defined. A name with no recognized status returns a blank; define additional rules before including those statuses.

1
Check the source columns

On Sheet1, place names in A2:A1000 and their corresponding statuses in B2:B1000. Adjust the ranges in the formula if your records extend beyond row 1000.

2
List the names to summarize

On Sheet2, enter a name in cell A2 and list any other names below it.

3
Enter the status formula

In Sheet2 cell B2, enter: =IF(A2="","",IF(COUNTIFS(Sheet1!$A$2:$A$1000,A2,Sheet1!$B$2:$B$1000,"Pending")+COUNTIFS(Sheet1!$A$2:$A$1000,A2,Sheet1!$B$2:$B$1000,"Data Entry")+COUNTIFS(Sheet1!$A$2:$A$1000,A2,Sheet1!$B$2:$B$1000,"Signatures")>0,IF(COUNTIFS(Sheet1!$A$2:$A$1000,A2,Sheet1!$B$2:$B$1000,"Submitted")>0,"Pending/Submitted","Pending"),IF(COUNTIFS(Sheet1!$A$2:$A$1000,A2,Sheet1!$B$2:$B$1000,"Submitted")>0,"Submitted","")))

4
Fill and verify the results

Drag the fill handle from B2 down alongside the names. Compare a few results with the matching rows on Sheet1, especially names with both Pending and Submitted records.

Combine statuses with a COUNTIFS formula
This formula does not select the latest record: If the latest status should take priority, add a date or timestamp to each source record and define how to handle records with the same timestamp.
Work with status formulas in WPS

Summarize duplicate-name statuses in WPS Spreadsheets

Use the same COUNTIFS approach in WPS Spreadsheets to combine recognized statuses for each name across worksheets.

  1. 1. Open the workbook: Open WPS Spreadsheets and use Open to select your Excel workbook.
  2. 2. Arrange the source data: On the Sheet1 tab, put names in column A and statuses in column B. On Sheet2, list the names to summarize starting in A2.
  3. 3. Enter the formula: On Sheet2, select B2 and enter the COUNTIFS formula from the solution above. Adjust the sheet names and ranges if your workbook uses different locations.
  4. 4. Fill down and check: Drag the fill handle from B2 down to calculate a status for each listed name, then compare the results with the source rows.
Combine Pending and Submitted records for duplicate namesOpen and edit Microsoft Excel XLSX and XLS filesUse familiar spreadsheet formulas and worksheet tabs
QA img-9

Frequently Asked Questions

Why does the formula return Pending/Submitted?

It finds at least one Pending, Data Entry, or Signatures record and at least one Submitted record for the same name on Sheet1.

Why is the overall status blank?

Check Sheet2 cell A2 and the matching rows in Sheet1. The formula returns blank if the name is empty or no matching record has a recognized status within rows 2 through 1000.

How should I handle a Software status?

First decide whether Software counts as Pending, Submitted, or a separate result. Then update the COUNTIFS conditions and output rules; the example formula ignores Software.

Can the formula use only the most recent status?

The example combines all matching records. To use the latest status instead, add a date or timestamp column on Sheet1 and define a tie-breaking rule before building a latest-record formula.