+ Reply to Thread
Results 1 to 3 of 3

A formula to solve my Code problem

  1. #1
    Registered User
    Join Date
    05-22-2018
    Location
    Turkey
    MS-Off Ver
    MS Office Professional Plus 2016
    Posts
    2

    A formula to solve my Code problem

    Hi all,

    I have a table like in the picture

    And also I tried to copy paste below

    Pro_code are my products and on the rows starting from A to E are my raw materials

    At new column I want to create an unique code that will show which RM's that my products are using

    For instance i distinct counted rm's for Product 1 and the product using RM A and RM C so new column should make a code named A_C

    What kind of formula should i proceed?

    PRO_CODE A B C D E New Column
    2.39.06.030 1 1 A_C
    2.39.06.031 1 1 1 A_B_C
    2.39.06.032 1 C
    2.39.06.033 1 1 B_C
    2.39.06.034 1 E
    2.39.06.036 1 C




    Capture.PNG

  2. #2
    Forum Expert
    Join Date
    06-08-2012
    Location
    Left the forum!
    MS-Off Ver
    Left the forum!
    Posts
    5,189

    Re: A formula to solve my Code problem

    If it is as simple as 5 columns then something like

    =SUBSTITUTE(TRIM(IF(N(B2),B$1&" ","")&IF(N(C2),C$1&" ","")&IF(N(D2),D$1&" ","")&IF(N(E2),E$1&" ","")&IF(N(F2),F$1&" ",""))," ","_")

    If, in reality you have a lot more columns to work with then you might be better to look at a UDF like ACONCAT

    I think that office 365 includes a similar function, but other versions do not, you would need to add it as a custom function.

  3. #3
    Registered User
    Join Date
    05-22-2018
    Location
    Turkey
    MS-Off Ver
    MS Office Professional Plus 2016
    Posts
    2

    Re: A formula to solve my Code problem

    Works perfectly,

    Thank you so much

+ 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. How to enter value formula to solve the problem
    By se7en2001 in forum Excel General
    Replies: 10
    Last Post: 05-08-2016, 10:56 AM
  2. Formula to solve a problem
    By mkmkmkmk in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 11-19-2015, 01:45 PM
  3. How to solve the problem with the right formula
    By gerard_gonzales33 in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 10-16-2012, 05:36 AM
  4. Need formula to solve the problem
    By chintanbtech in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 01-17-2012, 12:48 PM
  5. Sumif or other Formula to solve problem
    By Vibro in forum Excel General
    Replies: 2
    Last Post: 06-14-2011, 10:11 PM
  6. [SOLVED] solve formula problem
    By InvGrp2 in forum Excel General
    Replies: 6
    Last Post: 11-15-2007, 09:48 AM
  7. How to write VBA code to solve this problem
    By jaccker in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 04-03-2006, 11:35 PM

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