+ Reply to Thread
Results 1 to 7 of 7

[Power Query] Extracting from multiple columns into a new column

  1. #1
    Registered User
    Join Date
    02-20-2015
    Location
    NY
    MS-Off Ver
    Microsoft 365 Version 2304
    Posts
    26

    [Power Query] Extracting from multiple columns into a new column

    Good morning, all! I am currently working on setting up a template for importing purposes as my organization will soon be switching from one banking platform to another and the reports I download are not in the same format and the column information doesn't line up for each transaction type consistently. I have included a sample workbook with the data, a power query setup and the desired look I would want it to be shown. A few things I am trying to achieve:

    -From the Details tab I want to extract the text after "ORIG CO NAME=" from columns M, N and O into a new column. Currently have it where it is transforming the columns, but I lose the other data which I don't want.

    -Where I did the Insert Text between Delimiters, I want to be able to have it where if there isn't a transaction number within the delimiter that it will give me the bank reference number (Column K).

    -I am looking to change the signs in the Amount (Column E) based on the information in Column F so if a row has CR it stays positive and if it has DR is changes to a negative number.

    My Table is all over the place but I'll clean it up once I have the above steps so I do that part last to get it to the desired results tab. Thank you all for your help.
    Attached Files Attached Files
    Last edited by Bleucherie; 02-18-2024 at 01:51 PM.

  2. #2
    Forum Expert
    Join Date
    10-19-2021
    Location
    Brazil
    MS-Off Ver
    Office 365 V2401 w/ Win10 Home 64 Bit
    Posts
    2,014

    Re: [Power Query] Extracting from multiple columns into a new column

    Good Morning.

    I did 1º and 3º as columns '- Amount' and 'ORIG CO NAME', the 2º one I would like to see expected result if possible.
    Attached Files Attached Files

  3. #3
    Registered User
    Join Date
    02-20-2015
    Location
    NY
    MS-Off Ver
    Microsoft 365 Version 2304
    Posts
    26

    Re: [Power Query] Extracting from multiple columns into a new column

    Woops I just realized I attached the wrong file, so I have edited my post to include the correct one and you can see the Desired Results tab to show how it would end up looking like.

  4. #4
    Registered User
    Join Date
    02-20-2015
    Location
    NY
    MS-Off Ver
    Microsoft 365 Version 2304
    Posts
    26

    Re: [Power Query] Extracting from multiple columns into a new column

    Quote Originally Posted by DJunqueira View Post
    Good Morning.

    I did 1º and 3º as columns '- Amount' and 'ORIG CO NAME', the 2º one I would like to see expected result if possible.
    I have corrected the file I attached so you can see the desired results tab.

  5. #5
    Forum Expert
    Join Date
    10-19-2021
    Location
    Brazil
    MS-Off Ver
    Office 365 V2401 w/ Win10 Home 64 Bit
    Posts
    2,014

    Re: [Power Query] Extracting from multiple columns into a new column

    We are close, but columns 'Transaction Type' that seems to me to be the one that you want to help filter 'Bank Reference' only change for "CHECK" and the result don't look as your column 'Transaction Number' in tab 'Desired Results'.
    Also check if tab Table1 is close to what you are looking for.
    I'm hesitant to proceed because I'm not sure of the final result or the columns I should use.
    Attached Files Attached Files

  6. #6
    Registered User
    Join Date
    02-20-2015
    Location
    NY
    MS-Off Ver
    Microsoft 365 Version 2304
    Posts
    26

    Re: [Power Query] Extracting from multiple columns into a new column

    Quote Originally Posted by DJunqueira View Post
    We are close, but columns 'Transaction Type' that seems to me to be the one that you want to help filter 'Bank Reference' only change for "CHECK" and the result don't look as your column 'Transaction Number' in tab 'Desired Results'.
    Also check if tab Table1 is close to what you are looking for.
    I'm hesitant to proceed because I'm not sure of the final result or the columns I should use.
    So, in the tab 'Desired Results' the "Transaction Number" column I had set up a text between delimiter step to get the TRN number from the columns "REMARK 02" and "REMARK 03":

    Attachment 860192

    Since not all of the EFT CREDIT transactions have that TRN # I wanted to get the Bank Reference Number for those. It is fine that the CHECKS transactions are blank as I just added those lines to check whether the Amount would change signs and are not important for the import process that I do.

    Thank you for your help on this! Table1 looks pretty close to the Desired Tab, I would just eliminate the Customer Reference column since it isn't needed.

  7. #7
    Forum Expert
    Join Date
    10-19-2021
    Location
    Brazil
    MS-Off Ver
    Office 365 V2401 w/ Win10 Home 64 Bit
    Posts
    2,014

    Re: [Power Query] Extracting from multiple columns into a new column

    In the column 'Transaction Number' I need to change some cell values, but it is ok.

    Formula: copy to clipboard
    Please Login or Register  to view this content.
    Attached Files Attached Files

+ 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. Power Query: Split Column into two columns by every other row
    By HejHelloEver in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 08-10-2023, 05:59 PM
  2. [SOLVED] [Power Query] How to filter 0 from two columns in power query editor in one step?
    By daliye in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 07-16-2023, 09:44 PM
  3. [SOLVED] Power Query Transform multiple columns
    By Dicken in forum Office 365
    Replies: 2
    Last Post: 05-27-2023, 11:11 AM
  4. [SOLVED] Power Query Extracting Data from Multiple Websites
    By neverT00late in forum Excel General
    Replies: 2
    Last Post: 01-29-2023, 08:49 PM
  5. [SOLVED] Ranking in Power Query via multiple columns
    By sparkyster in forum Excel General
    Replies: 6
    Last Post: 11-19-2020, 10:56 AM
  6. Custom Permutations Column in Power Query from two columns in the same Query
    By PaintPaddy in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 07-11-2019, 02:48 PM
  7. [SOLVED] Power Query ranking multiple columns
    By rs1aj in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 04-26-2019, 11:43 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