2 min readfrom Microsoft Excel | Help & Support with your Formula, Macro, and VBA problems | A Reddit Community

Changing cells that previously required exact match, but now it is enough if a cell just contains the text

Our take

To accommodate users belonging to multiple regions, your existing formula requires modification. Given your preference for a single "Region" column with delimited values (e.g., "Hawaii and Okinawa"), adjust the formula in column V to: `=IF(AND(ISNUMBER(SEARCH(V$36,C39)),NOT(V$36="")),"Yes","")`. This utilizes the `SEARCH` function, which returns a number if the text in V$36 is found within C39, enabling partial matches. For the "Region 2" column approach, a similar formula can be applied to the new column, referencing the appropriate region field. See

The persistent challenges within the /r/Excel community, as evidenced by this week's recap [This Week's /r/Excel Recap for the week of June 27 - July 03, 2026], often revolve around adapting existing formulas to accommodate evolving data structures. This particular query, concerning the need to match partial text within a region column, highlights a common tension: balancing data integrity with the flexibility required to represent increasingly complex relationships. The user’s scenario—allowing individuals to belong to multiple regions—is a practical one, reflecting real-world scenarios that simple, exact-match formulas just can't handle. The original formula, "=IF( AND(V$36=$C39; NOT(V$36="") );"Yes";"")", while functional for a singular region, quickly becomes inadequate when the possibility of multiple regions arises. The user’s consideration of two options – modifying the region column to list multiple values or introducing a second region column – demonstrates a thoughtful approach to problem-solving, and the limitations of Excel 2007 further complicate the matter, as highlighted by the edit noting this constraint. This resonates with a broader challenge many users face: adapting legacy systems to handle modern data complexities, a situation explored in another recent post [Seperating Data Into Two Different Cells] where users seek ways to parse and manage data that exceeds the original design.

The key to resolving this lies in embracing functions that allow for partial string matching. Given the Excel 2007 constraint, implementing a robust solution is tricky. The first option, concatenating multiple regions within a single cell (e.g., “Hawaii and Okinawa”), requires employing the `SEARCH` or `FIND` functions within the formula to check if V$36 contains any of the listed regions. A revised formula might look something like: `=IF(AND(NOT(V$36=""),ISNUMBER(SEARCH(V$36,C39)));"Yes";"")`. This checks if the entry cell's text is found within the combined region string. The second option, introducing a "Region 2" column, would necessitate a modified formula that checks both columns for a match: `=IF(AND(NOT(V$36=""),ISNUMBER(SEARCH(V$36,C39)),ISNUMBER(SEARCH(V$36,D39)));"Yes";"")`. While this provides a workable solution, it’s worth noting that the `SEARCH` and `FIND` functions are case-insensitive. If case sensitivity is needed, the `EXACT` function could be incorporated, although that would require a more complex nested structure, potentially impacting performance, especially with larger datasets. The user’s leaning toward the first option for future scalability is astute; it offers greater flexibility if the number of regions per person ever exceeds two.

The limitations of Excel 2007, while a constraint for this specific user, point to a larger trend: the increasing need for more sophisticated data management tools. While Excel remains a widely used tool, its capabilities for handling complex data relationships are increasingly strained. The ongoing discussions about formula complexities, as seen in the post [How is this formula supposed to be written ?], underscore the challenges users face in expressing intricate logic within Excel's formula environment. This highlights the growing appeal of AI-native spreadsheet technologies that offer more intuitive and powerful ways to model and analyze data. These newer platforms are designed to handle these kinds of evolving data structures natively, without requiring complex, brittle formulas. They often incorporate features like fuzzy matching and automated data cleaning, which significantly reduce the burden on the user.

Ultimately, this user's predicament serves as a microcosm of the broader evolution of data management. While adapting existing spreadsheets can be a temporary solution, the long-term trend points toward a shift towards tools that can inherently handle the complexities of modern data, allowing users to focus on insights rather than formula wrangling. The question becomes: As data relationships continue to grow in complexity, how much longer can we reasonably expect legacy tools like Excel 2007 to remain viable for these increasingly sophisticated data management needs?

Note: I am looking for solutions that are compatible with Excel 2007.

I have the following setup:

Entry cell for region: V36. (Example text entered: Hawaii)

Row Name (Column B) Region (Column C) .... Region (Column V)
39 Zeke Hawaii * Yes
40 Dixie Okinawa *
41 Hopper Hawaii * Yes

The Names (B) and Regions (C) are fixed data.

The entry cell for regions (V36) is a cell where I can manually enter a region's exact name (such as Hawaii or Okinawa).

The second Region (V) column checks if the person in each row matches what's in the entry cell. The column cells contain the following formula:

=IF( AND(V$36=$C39; NOT(V$36="") );"Yes";"")

Basically, if the regions match and the entry cell is not empty, Yes is displayed. Otherwise, the cell is empty.

-----

Now comes the complication: It was introduced that one person can belong to two regions.

I see multiple ways to change the raw data:

  1. Change the Region (C) column to list multiple options. ("<A> and <B>")
  2. Introduce a "Region 2" column between columns C and D.

(I lean towards option #1 in case an idea comes in the future that people can also belong to more than 2 regions. But for now, let's assume that the maximum region is 2 for everyone.)

-----

QUESTION: How does the formula for the second Region (V) column change with each option?

The original formula: =IF( AND(V$36=$C39; NOT(V$36="") );"Yes";"")

The two options:

  1. Change the Region (C) column to list multiple options. ("<A> and <B>")
  2. Introduce a "Region 2" column between columns C and D.

Edit 1 (2026.07.04): Removed irrelevant data.
Edit 2 (2026.07.04): Excel 2007 limitation.

submitted by /u/Swimming-Rope-9582
[link] [comments]

Read on the original site

Open the publisher's page for the full experience

View original article