+ Reply to Thread
Results 1 to 3 of 3

Adding an conditional row in Power Query and exporting the data as CSV file

  1. #1
    Registered User
    Join Date
    10-15-2021
    Location
    Arkansas, United States
    MS-Off Ver
    2016
    Posts
    2

    Adding an conditional row in Power Query and exporting the data as CSV file

    Hello everyone!

    I hope I have posted this in the correct area and that I am able to work this correctly without rambling. I am currently working on a resolution to simplify adding insurance deductions into our payroll/HR software at work.

    Currently, I have to go into the employee profile in our software and enter the insurance deduction (employee amount) and the insurance benefit (employer amount). With over 500 employees, this task can be tedious and time-consuming.

    I have recently discovered that I can do a bulk deduction by uploading a CSV file into our software. I have learned that I can download a report from our vendor that shows the insurance roster information, however, it only shows the deduction and not the benefit. For example, if an employee has a medical plan high option (MPLO), I have to enter that into the CSV file as two lines. One line would have the deduction (MPLO) and one line would have the medical plan benefit (MPB). I also have to add the benefit for any dental deduction. The only insurance that does not have a benefit is our vision insurance (VS)


    My current process:
    1. Download report from vendor
    2. Clean up the report in Power Query
    3. Copy and paste data into a new workbook, add new rows for benefits, and save as a CSV file.
    4. Upload the CSV file into our software.

    What I want to do:[*]Download report from the vendor[*]Clean up the report in Power Query-adding conditional column for medical (MPB) and dental benefit (DPB)[*]Create a Macro that would allow me to export a CSV file in the correct format-I'd like to be able to export by month[*]Upload the CSV file into our software.[*]Be happy that I saved myself hours of work.

    I've uploaded two worksheets, one that shows what my cleaned-up vendor report looks like, and what the CSV file looks like. The only columns that will ever change in the CSV file are columns A, C, V. The others will always be the exact same.

    If anyone could give me any insight into what I need to do/learn to accomplish this or something better, please let me know!
    Attached Files Attached Files

  2. #2
    Forum Guru
    Join Date
    08-15-2004
    Location
    Tokyo, Japan
    MS-Off Ver
    2013 O.365
    Posts
    22,560

    Re: Adding an conditional row in Power Query and exporting the data as CSV file

    VBA
    Create CSV file.
    Please Login or Register  to view this content.

  3. #3
    Registered User
    Join Date
    10-15-2021
    Location
    Arkansas, United States
    MS-Off Ver
    2016
    Posts
    2

    Re: Adding an conditional row in Power Query and exporting the data as CSV file

    Thank you! This has gotten me started!

+ 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. Adding manual data entry columns to Power Query table
    By louhilla in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 10-19-2021, 12:33 PM
  2. Replies: 8
    Last Post: 07-23-2020, 03:09 AM
  3. [SOLVED] Adding/Updating Data to an existing Power Query
    By LisaWilliams231 in forum Excel General
    Replies: 5
    Last Post: 05-03-2020, 12:41 PM
  4. [SOLVED] Adding manual data to a power query?
    By S7ewie in forum Excel General
    Replies: 20
    Last Post: 01-19-2019, 08:44 AM
  5. [SOLVED] Adding Missing Dates To A .CSV File Via Power Query?..
    By Ourkid123uk in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 05-04-2017, 03:54 PM
  6. Adding data to the end of a table with Power Query
    By afila in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 06-14-2016, 08:29 AM
  7. Exporting Facebook group comments to Excel using Power Query?
    By trapperjohn22 in forum Excel General
    Replies: 2
    Last Post: 02-27-2016, 04:12 AM

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