|
|
|
||||
|
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. |
![]() |
|
|||||||
| Discuss what's fucking going on, and which programs are best and worst. One-time "program" announcements from "established" webmasters are allowed. |
|
|
Thread Tools |
|
|
#1 |
|
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
|
|
|
|
|
|
#2 |
|
Now choke yourself!
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.
__________________
|
|
|
|
|
|
#3 |
|
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
|
|
|
|
|
|
#4 |
|
Now choke yourself!
Industry Role:
Join Date: Apr 2006
Posts: 12,085
|
No worries. I <3 regex.
__________________
|
|
|
|
|
|
#5 |
|
Confirmed User
Industry Role:
Join Date: Aug 2006
Posts: 5,594
|
Data >> text to columns ;-)
|
|
|
|