Over a million developers have joined DZone.
{{announcement.body}}
{{announcement.title}}

Manipulate Excel Fields

DZone's Guide to

Manipulate Excel Fields

·
Free Resource
// This code makes it easy to take multiple Excel fields and make them however many fields you want. First save the Excel file as CSV.


import csv
reader = csv.reader(open("absolute path to CSV file"), dialect='excel')
for row in reader:
   firstname = row[0]
   lastname = row[1]

   ## Then you can take the fields and arrange them however you want.
   ## Copy and paste them however you'd like.
   print firstname, lastname
Topics:

Opinions expressed by DZone contributors are their own.

THE DZONE NEWSLETTER

Dev Resources & Solutions Straight to Your Inbox

Thanks for subscribing!

Awesome! Check your inbox to verify your email so you can start receiving the latest in tech news and resources.

X

{{ parent.title || parent.header.title}}

{{ parent.tldr }}

{{ parent.urlSource.name }}