Welcome to the GoFuckYourself.com - Adult Webmaster Forum forums.

You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content and access many other special features. Registration is fast, simple and absolutely free so please, join our community today!

If you have any problems with the registration process or your account login, please contact us.

Post New Thread Reply

Register GFY Rules Calendar
Go Back   GoFuckYourself.com - Adult Webmaster Forum > >
Discuss what's fucking going on, and which programs are best and worst. One-time "program" announcements from "established" webmasters are allowed.

 
Thread Tools
Old 03-28-2008, 12:21 AM   #1
qxm
Confirmed User
 
Join Date: Jul 2006
Location: NoHo
Posts: 5,970
MS EXCEL Gurus Step Inside

OK, this might not take an excel guru........this is what I'm trying to do:

I have a list of items listed in columns, each cell of that column has data formatted like this:

COLUMN:

data1, data2, data3
data4, data5, data6

I need a macro or something similar which would allow me to erase everything found after a comma and only keep the first set of data ....so the output should be:

COLUMN:

data1
data4

Any ideas anyone????
__________________

ICQ: 266990876

Last edited by qxm; 03-28-2008 at 12:22 AM..
qxm is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 03-28-2008, 12:47 AM   #2
GrouchyAdmin
Now choke yourself!
 
GrouchyAdmin's Avatar
 
Industry Role:
Join Date: Apr 2006
Posts: 12,085
Just import as a CSV, click A1 at the top, ctrl-c, go to page 2, paste?

If you want to use something like TextPad, you could just 'replace, regex, ',.*$', nothing, replace all.

Or, you could just abuse unix if it's not xls format. Don't need nothin fancy.
cut -d, -f1 < file

However, I won't pretend to have tried to make an excel macro in years.
__________________
GrouchyAdmin is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 03-28-2008, 01:12 AM   #3
qxm
Confirmed User
 
Join Date: Jul 2006
Location: NoHo
Posts: 5,970
ahhh the 'replace, regex, ',.*$' thing worked like a charm.............

I was thinking I would have to create a macro .... haven't done one in years either.....but this worked just fine........thanks m8!!!!!
__________________

ICQ: 266990876
qxm is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 03-28-2008, 01:31 AM   #4
GrouchyAdmin
Now choke yourself!
 
GrouchyAdmin's Avatar
 
Industry Role:
Join Date: Apr 2006
Posts: 12,085
No worries. I <3 regex.
__________________
GrouchyAdmin is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 03-28-2008, 02:38 AM   #5
CunningStunt
Confirmed User
 
CunningStunt's Avatar
 
Industry Role:
Join Date: Aug 2006
Posts: 5,594
Data >> text to columns ;-)
CunningStunt is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Post New Thread Reply
Go Back   GoFuckYourself.com - Adult Webmaster Forum > >

Bookmarks



Advertising inquiries - marketing at gfy dot com

Contact Admin - Advertise - GFY Rules - Top

©2000-, AI Media Network Inc



Powered by vBulletin
Copyright © 2000- Jelsoft Enterprises Limited.