+ Reply to Thread
Results 1 to 4 of 4

I need a formula that search for numbers and displays one or more text correspondents

  1. #1
    Registered User
    Join Date
    12-14-2022
    Location
    Cluj-Napoca, Romania
    MS-Off Ver
    Google Sheets
    Posts
    2

    I need a formula that search for numbers and displays one or more text correspondents

    Hello everyone!

    I have this formula:

    =IF(REGEXMATCH(C2, "05"), "General",IF(REGEXMATCH(C2, "15"), "API",IF(REGEXMATCH(C2, "10"), "FEM-Design",IF(REGEXMATCH(C2, "20"), "WIN-Statik",IF(REGEXMATCH(C2, "25"), "Dimension",IF(REGEXMATCH(C2, "27")))))))

    I use it in Google Sheets to transform an Index Number (coming from a CRM) into the Software associated with this Index in the CRM.

    I then go with the text information in ActiveCampaign.

    The problem is the following: the formula works for cases where a contact is interested in only one software (for example 15 -> API). But if the contact is interested in more than one software (for example 15, 10) the form will not display the software names with a comma (for example API, FEM-Design).

    Can you help me modify the formula so it works for more index numbers it finds?

    Thank you.
    Last edited by BogdanAGH; 12-14-2022 at 06:28 AM.

  2. #2
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    44,445

    Re: I need a formula that search for numbers and displays one or more text correspondents

    Instead of nesting the IFs, you would need to keep them separate (but in the same cell) and concatenate the results.

    Formula: copy to clipboard
    Please Login or Register  to view this content.
    Trevor Shuttleworth - Retired Excel/VBA Consultant

    I dream of a better world where chickens can cross the road without having their motives questioned

    'Being unapologetic means never having to say you're sorry' John Cooper Clarke


  3. #3
    Registered User
    Join Date
    12-14-2022
    Location
    Cluj-Napoca, Romania
    MS-Off Ver
    Google Sheets
    Posts
    2

    Re: I need a formula that search for numbers and displays one or more text correspondents

    Yes, that works, but I need to use the comma just if there are more than one softwares. Do you think there is a solution for that too?

    Thank you very much for your help!

  4. #4
    Forum Guru
    Join Date
    08-28-2014
    Location
    USA
    MS-Off Ver
    Excel 2019
    Posts
    17,563

    Re: I need a formula that search for numbers and displays one or more text correspondents

    Hello BogdanAGH and Welcome to Excel Forum.
    If this were Excel you could use:
    Formula: copy to clipboard
    Please Login or Register  to view this content.

    I think that might translate to:
    Formula: copy to clipboard
    Please Login or Register  to view this content.

    EDIT: the order of the &IF sections in the formula and the order of arrangement of the values in cell C2 is important.
    Let us know if you have any questions.
    Last edited by JeteMc; 12-16-2022 at 10:50 AM. Reason: Updated formulas & added EDIT
    Consider taking the time to add to the reputation of everybody that has taken the time to respond to your query.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Formula that displays the power number of a scientific notation?
    By bigscientist in forum Excel Formulas & Functions
    Replies: 11
    Last Post: 09-25-2021, 02:41 AM
  2. Replies: 5
    Last Post: 06-11-2019, 04:37 AM
  3. [SOLVED] need a formula that searches and matches 4 columns across to sheets and displays a value
    By mickgibbons1 in forum Excel Formulas & Functions
    Replies: 30
    Last Post: 05-03-2017, 06:29 AM
  4. need a marco that searches and matches 4 columns across to sheets and displays a value
    By mickgibbons1 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 04-28-2017, 05:14 AM
  5. Replies: 4
    Last Post: 07-24-2015, 02:26 AM
  6. Replies: 4
    Last Post: 12-01-2008, 03:37 PM
  7. [SOLVED] in excell the cell only displays formula, not the number
    By sherry blah blah blah in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 11-09-2005, 08:55 PM

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1