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

Text search formulas with built in functions instead of lambdas

Our take

In exploring the functionality of text search formulas, consider whether built-in functions like REGEX can replicate the capabilities of your custom lambda functions, ANYCHARS and ALLCHARS. The former checks for the presence of any character from a specified string, while the latter confirms that all characters are included, regardless of order. This inquiry invites you to reflect on the balance between innovation and practicality. For additional insights on optimizing your spreadsheet experience, check out our article on using VSTACK to automatically populate ranges.

The exploration of text search formulas, particularly through the lens of lambda functions like ANYCHARS and ALLCHARS, raises a compelling question about the balance between leveraging advanced capabilities and maintaining simplicity in spreadsheet technology. The author's inquiry into whether these functions can be replicated using built-in capabilities, perhaps even through regular expressions, speaks to a broader conversation within the data management community. As we see with discussions around tools like Arm Open-Sources Metis, an AI Security Framework Outperforming Traditional SAST Tools, the tension between innovation and usability is a constant theme, one that resonates deeply with users seeking to optimize their workflows.

Lambda functions offer a new level of flexibility and customization in spreadsheet applications, empowering users to tailor their data processing capabilities to specific needs. However, as the author suggests, there is a risk of overcomplicating tasks that might be achieved with simpler, more traditional formulas. This concern is echoed in discussions from other users, such as in the article titled How do I get Excel to automatically populate ranges using vstack?, where the balance between advanced functionality and user-friendliness is equally critical. The challenge is to discern when to embrace new tools and when to rely on established methods, a decision that can significantly influence productivity and efficiency.

The debate surrounding the use of lambda functions versus built-in functions is not merely about functionality; it reflects a fundamental shift in how users interact with spreadsheets. As data becomes increasingly central to decision-making processes, the ability to manipulate and search through that data efficiently becomes paramount. The author’s concerns may stem from a valid place of wanting to maximize tool effectiveness without introducing unnecessary complexity. This is particularly important in collaborative environments where different users may have varying levels of familiarity with advanced features like lambdas.

Ultimately, the conversation invites us to consider what innovation means in the realm of data management. Are we creating a landscape that truly enhances user capability, or are we veering into a territory that alienates those who may not be as tech-savvy? The future of spreadsheet technology must prioritize accessibility and user-centered design while still embracing the innovative potential of tools like lambda functions. As we move forward, it will be essential to assess how these tools evolve to meet the needs of diverse users while simplifying processes that have long been convoluted.

As we watch this space, one question looms large: How will the balance between advanced functionality and user accessibility shape the next generation of spreadsheet tools? Will we see a trend toward more intuitive interfaces that incorporate these powerful capabilities seamlessly, or will the complexity of new technologies create barriers that stifle user engagement? The answers to these questions will significantly impact how we leverage data in our everyday workflows.

I made two lambda functions to perform the following types of string / character searches, and I'm wondering whether the same functionality is possible with formulas using only built in functions (maybe REGEX?). I'm trying to calibrate whether I'm going overboard with a new toy (lambdas) or if their use is justified.

  • ANYCHARS(SRCH, TXT)
    • If any character in SRCH is present in TXT, returns TRUE. Otherwise, returns FALSE. Case insensitive.
  • ALLCHARS(SRCH, TXT)
    • If all characters in SRCH are present in TXT, returns TRUE. Otherwise, returns FALSE. Case insensitive, and character order does not matter.

Code below:

ANYCHARS =LAMBDA(SRCH,TXT, IF(LEN(SRCH)<1, FALSE, OR(ISNUMBER(SEARCH(RIGHT(SRCH,1),TXT)), ANYCHARS(LEFT(SRCH,LEN(SRCH)-1),TXT)) )) ALLCHARS =LAMBDA(SRCH,TXT, IF(LEN(SRCH)<1, TRUE, AND(ISNUMBER(SEARCH(RIGHT(SRCH,1),TXT)), ALLCHARS(LEFT(SRCH, LEN(SRCH)-1), TXT)) )) 

Here's a screenshot of the functions in action:

https://preview.redd.it/4iktxfxx4e4h1.png?width=459&format=png&auto=webp&s=d21dc588b501708e34c7a855b97f2e460d22b2da

submitted by /u/Ancient-Swordfish292
[link] [comments]

Read on the original site

Open the publisher's page for the full experience

View original article

Tagged with

#financial modeling with spreadsheets#no-code spreadsheet solutions#rows.com#Excel compatibility#Excel alternatives for data analysis#Excel alternatives#lambda#ANYCHARS#ALLCHARS#string search#character search#built-in functions#formulas#case insensitive#REGEX#ISNUMBER#SEARCH#TRUE#FALSE#OR