Microsoft Office Forums

Go Back   Microsoft Office Forums > >

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #10  
Old 05-23-2019, 05:31 PM
Alansidman's Avatar
Alansidman Alansidman is offline macro construction Windows 10 macro construction Office 2019
עַם יִשְׂרָאֵל חַי
 
Join Date: Apr 2019
Location: Steamboat Springs
Posts: 115
Alansidman has a spectacular aura aboutAlansidman has a spectacular aura aboutAlansidman has a spectacular aura about
Default

Using Power Query which is available to you since you indicate you are using 2016. It is on the Data Tab and shown as Get and Transform.

Here is the Mcode
Code:
let
    Source = Table.FromColumns({Lines.FromBinary(File.Contents("C:\Users\alans\Desktop\Food_Lion_US_V.csv.txt"), null, null, 1252)}),
    #"Added Index" = Table.AddIndexColumn(Source, "Index", 0, 1),
    #"Inserted Modulo" = Table.AddColumn(#"Added Index", "Modulo", each Number.Mod([Index], 3), type number),
    #"Pivoted Column" = Table.Pivot(Table.TransformColumnTypes(#"Inserted Modulo", {{"Modulo", type text}}, "en-US"), List.Distinct(Table.TransformColumnTypes(#"Inserted Modulo", {{"Modulo", type text}}, "en-US")[Modulo]), "Modulo", "Column1"),
    #"Filled Up" = Table.FillUp(#"Pivoted Column",{"2", "1"}),
    #"Filtered Rows" = Table.SelectRows(#"Filled Up", each ([0] <> null)),
    #"Removed Columns" = Table.RemoveColumns(#"Filtered Rows",{"Index"}),
    #"Renamed Columns" = Table.RenameColumns(#"Removed Columns",{{"0", "Location"}, {"1", "City"}, {"2", "Phone"}})
in
    #"Renamed Columns"
The file is attached.
Attached Files
File Type: xlsx Book3.xlsx (76.6 KB, 7 views)
Reply With Quote
 



Similar Threads
Thread Thread Starter Forum Replies Last Post
Construction Schedule Rain Days kpayne Project 0 04-19-2019 08:56 AM
Call up times in Construction program Crawf Project 1 03-06-2019 01:29 PM
MS Project 2003 - Commercial Construction template Rory Todd Project 1 05-30-2016 04:27 PM
New heights of construction! Ulodesk Chitchat 0 04-27-2015 09:59 AM
macro construction Construction Project Presentation manich1 PowerPoint 3 04-17-2011 08:29 PM

Other Forums: Access Forums

All times are GMT -7. The time now is 06:37 AM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2025, vBulletin Solutions Inc.
Search Engine Optimisation provided by DragonByte SEO (Lite) - vBulletin Mods & Addons Copyright © 2025 DragonByte Technologies Ltd.
MSOfficeForums.com is not affiliated with Microsoft