TEXTJOIN / Project Manager

List All Pending Permits

I need to join all 'Permit Types' that have a status of 'Pending' into a single cell for the weekly summary.

formula.xlsx
=TEXTJOIN(", ", TRUE, IF(B2:B6="Pending", A2:A6, ""))

How it works: This formula uses `TEXTJOIN` to concatenate text strings. The first argument `", "` specifies the delimiter (a comma followed by a space) to separate each permit type. The second argument `TRUE` tells `TEXTJOIN` to ignore any empty cells that result from the `IF` function. The `IF(B2:B6="Pending", A2:A6, "")` part is an array formula that checks each cell in the 'Status' range (B2:B6). If a status is 'Pending', it returns the corresponding 'Permit Type' from column A (A2:A6); otherwise, it returns an empty string. `TEXTJOIN` then takes this array of permit types (and empty strings) and joins only the non-empty ones, separated by the specified delimiter.

Data Setup

Permit Type Status
Building Permit Pending
Electrical Permit Approved
Plumbing Permit Pending
Zoning Variance Rejected
Fire Safety Permit Pending

Step-by-Step Guide

1

Ensure your permit data is organized with 'Permit Type' in one column (e.g., Column A) and 'Status' in another (e.g., Column B).

2

Select the cell where you want the combined list of pending permits to appear (e.g., C2).

3

Enter the formula: `=TEXTJOIN(", ", TRUE, IF(B2:B6="Pending", A2:A6, ""))`

4

Press Enter. If you are using an older version of Excel that doesn't support dynamic arrays, you might need to press CTRL+SHIFT+ENTER to enter it as an array formula.

Explore More