+ Reply to Thread
Results 1 to 2 of 2

Text-functions with many criteria

  1. #1
    Registered User
    Join Date
    09-16-2019
    Location
    Denmark
    MS-Off Ver
    Excel 2016
    Posts
    13

    Text-functions with many criteria

    Hallo everyone.

    I have the following problem.
    I am currently looking at a lot of ID's, and I need to be able to cross these ID's with other ID's.
    For me to do that I need to extract som information from my ID's based on the ID's that I want to compare them with.

    The problem is, that many of the ID's I am looking at have different attributes, so you cant just say fx =left(P2;6) and extract the same six digits. The Criteria is unique for each category of ID's.

    Under here you will see the different ID categories, and what needs to be done in ordner for me to extract the information I need.
    But how do I integrate every ID category in the corresponding formula into one big formula? How do I type all the different formulas under here into one single cell?

    KON =IF(SEARCH("KON";P3)>0;LEFT(P3;FIND("-";P3)-1);"")
    FIN =IF(SEARCH("FIN";P22)>0;LEFT(P22;FIND("-";P22)-1);"")
    M2R =TRIM(IF(SEARCH("M2R";P92)>0;IFERROR(LEFT(P92;FIND("-";P92)-1);LEFT(P92;11));""))
    DEB =IF(SEARCH("DEB";P22)>0;LEFT(P22;FIND("-";P22)-1);"")
    DMI =TRIM(IF(SEARCH("DMI";P24)>0;IFERROR(LEFT(P24;FIND(" ";P24)-1);LEFT(P24;FIND("-";P24)-1));""))
    KKO =IF(SEARCH("KKO";P3)>0;LEFT(P3;FIND("-";P3)-1);"")
    ACL =IF(SEARCH("ACL";P492)>0;LEFT(P492;FIND("-";P492)-1);"")
    MDI =IF(SEARCH("MDI";P535)>0;LEFT(P535;FIND("-";P535)-1);"")
    XXXXXX-XXX LEFT(P483;10))

    Kind regards!

  2. #2
    Forum Contributor
    Join Date
    08-12-2020
    Location
    Atlanta, Georgia
    MS-Off Ver
    Office 16
    Posts
    241

    Re: Text-functions with many criteria

    My thoughts.
    Go ahead and put each of these in a separate cell going across the row. You can always hide them. Whichever one is not = to "" can be picked up in another cell that will look at all the previous ones. You have 9 different formulas.
    You can concatenate the results =concatenate(C2&d2&e2...) since all the other formulas resolve to "". There are any number of other formulas that can pull out the one that got answered, if any.

+ 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. [SOLVED] How to use If functions for 3 criteria
    By Eric Tsang in forum Excel Formulas & Functions
    Replies: 16
    Last Post: 07-25-2019, 12:28 PM
  2. [SOLVED] IF functions has specific text, then multiply or divide dependant on text string
    By npereira in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 11-27-2018, 12:19 PM
  3. combining functions/using 2 criteria
    By Gaellus in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 07-19-2016, 06:54 AM
  4. Replies: 1
    Last Post: 02-25-2013, 04:25 PM
  5. [SOLVED] Removing text from scores in a data sheet using text functions
    By mrvp in forum Excel General
    Replies: 9
    Last Post: 07-15-2012, 05:33 PM
  6. Two criteria SumIf functions?
    By pyzikchr in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 04-23-2007, 11:56 AM
  7. [SOLVED] use of vlookup and IF functions on certain criteria
    By adi in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 07-18-2006, 11:35 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