+ Reply to Thread
Results 1 to 5 of 5

Get and transform merge columns

  1. #1
    Registered User
    Join Date
    11-25-2017
    Location
    Belgium
    MS-Off Ver
    365 ProPlus
    Posts
    12

    Get and transform merge columns

    Is there anybody that can help me with getting result, I googeld it but can not find a solution on the net.

    I'm trying to create a query step (or steps) that produces the following result

    if column a = null and column b = "something" then take value from b
    if column a = "something" and column b = null then take value from a
    if column a = b then keep value (1 time, not double)

    "something" can be anything but wil allways be the same if on the same row

    Thanks in advance.
    Attached Files Attached Files

  2. #2
    Registered User
    Join Date
    11-25-2017
    Location
    Belgium
    MS-Off Ver
    365 ProPlus
    Posts
    12

    Re: Get and transform merge columns

    I found a solution

    both columns : replace null with delimiter
    merge using same delimiter
    replace double delimiter with nothing
    split on delimiter
    remove un needed column (the one with the null's)

    thanks for anybody who was considering helping.

  3. #3
    Banned User!
    Join Date
    02-05-2015
    Location
    San Escobar
    MS-Off Ver
    any on PC except 365
    Posts
    12,168

    Cool Re: Get and transform merge columns

    IMHO easier is with conditional column
    Please Login or Register  to view this content.
    Attached Files Attached Files
    Last edited by sandy666; 12-03-2017 at 12:03 PM.

  4. #4
    Registered User
    Join Date
    11-25-2017
    Location
    Belgium
    MS-Off Ver
    365 ProPlus
    Posts
    12

    Re: Get and transform merge columns

    hey thanks,

    I'm not working so long with queries. thats indeed faster and actualy what I was looking for.

    (now gonna take some painkillers for my head after hitting it so hard for not seeing that option for over 2 hours.)

  5. #5
    Banned User!
    Join Date
    02-05-2015
    Location
    San Escobar
    MS-Off Ver
    any on PC except 365
    Posts
    12,168

    Re: Get and transform merge columns

    few more examples and way of PowerQuery will be easy and fast

+ 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] Help! filter the same names and transform into one with different description on columns
    By James Ray in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 06-04-2015, 05:34 PM
  2. transform multiple-line cell contents into columns in excel
    By excelnovice21 in forum Excel General
    Replies: 3
    Last Post: 01-29-2015, 05:39 AM
  3. [SOLVED] transform thousands of columns to A Single row
    By weidlh46 in forum Excel General
    Replies: 5
    Last Post: 01-07-2014, 08:31 PM
  4. [SOLVED] Transform Column to several columns depending on condition.
    By dimitrov_dimityr in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 10-14-2013, 08:11 AM
  5. [SOLVED] Merge duplicate rows and merge the columns (approx 10 columns)
    By adfeddon in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 08-02-2012, 11:19 AM
  6. Transform Duplicate rows to columns
    By Ray789 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 10-04-2011, 02:56 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