• Log InLog In
  • Register
Liquid`
Team Liquid Liquipedia
EST 02:23
CET 08:23
KST 16:23
  • Home
  • Forum
  • Calendar
  • Streams
  • Liquipedia
  • Features
  • Store
  • EPT
  • TL+
  • StarCraft 2
  • Brood War
  • Smash
  • Heroes
  • Counter-Strike
  • Overwatch
  • Liquibet
  • Fantasy StarCraft
  • TLPD
  • StarCraft 2
  • Brood War
  • Blogs
Forum Sidebar
Events/Features
News
Featured News
ByuL: The Forgotten Master of ZvT28Behind the Blue - Team Liquid History Book19Clem wins HomeStory Cup 289HomeStory Cup 28 - Info & Preview13Rongyi Cup S3 - Preview & Info8
Community News
Weekly Cups (Feb 16-22): MaxPax doubles0Weekly Cups (Feb 9-15): herO doubles up2ACS replaced by "ASL Season Open" - Starts 21/0258LiuLi Cup: 2025 Grand Finals (Feb 10-16)46Weekly Cups (Feb 2-8): Classic, Solar, MaxPax win2
StarCraft 2
General
Terran AddOns placement How do you think the 5.0.15 balance patch (Oct 2025) for StarCraft II has affected the game? Nexon's StarCraft game could be FPS, led by UMS maker ByuL: The Forgotten Master of ZvT Oliveira Would Have Returned If EWC Continued
Tourneys
PIG STY FESTIVAL 7.0! (19 Feb - 1 Mar) Sparkling Tuna Cup - Weekly Open Tournament SEL Doubles (SC Evo Bimonthly) WardiTV Team League Season 10 RSL Season 4 announced for March-April
Strategy
Custom Maps
Publishing has been re-enabled! [Feb 24th 2026] Map Editor closed ?
External Content
The PondCast: SC2 News & Results Mutation # 515 Together Forever Mutation # 514 Ulnar New Year Mutation # 513 Attrition Warfare
Brood War
General
Soma Explains: JD's Unrelenting Aggro vs FlaSh Recent recommended BW games TvZ is the most complete match up BGH Auto Balance -> http://bghmmr.eu/ ACS replaced by "ASL Season Open" - Starts 21/02
Tourneys
BWCL Season 64 Announcement The Casual Games of the Week Thread [Megathread] Daily Proleagues [LIVE] [S:21] ASL Season Open Day 1
Strategy
Soma's 9 hatch build from ASL Game 2 Fighting Spirit mining rates Simple Questions, Simple Answers Zealot bombing is no longer popular?
Other Games
General Games
Battle Aces/David Kim RTS Megathread Nintendo Switch Thread Online Quake Live Config Editor Tool Diablo 2 thread Path of Exile
Dota 2
The Story of Wings Gaming Official 'what is Dota anymore' discussion
League of Legends
Heroes of the Storm
Simple Questions, Simple Answers Heroes of the Storm 2.0
Hearthstone
Deck construction bug Heroes of StarCraft mini-set
TL Mafia
Vanilla Mini Mafia Mafia Game Mode Feedback/Ideas TL Mafia Community Thread
Community
General
US Politics Mega-thread NASA and the Private Sector Things Aren’t Peaceful in Palestine UK Politics Mega-thread YouTube Thread
Fan Clubs
The IdrA Fan Club The herO Fan Club!
Media & Entertainment
[Manga] One Piece [Req][Books] Good Fantasy/SciFi books Anime Discussion Thread
Sports
2024 - 2026 Football Thread Formula 1 Discussion TL MMA Pick'em Pool 2013
World Cup 2022
Tech Support
Laptop capable of using Photoshop Lightroom?
TL Community
The Automated Ban List
Blogs
Just Watchers: Why Some Only…
TrAiDoS
Unintentional protectionism…
Uldridge
ASL S21 English Commentary…
namkraft
Life Update and thoughts.
FuDDx
How do archons sleep?
8882
Customize Sidebar...

Website Feedback

Closed Threads



Active: 2253 users

Excel Pros Please Help! - Page 3

Blogs > Golgotha
Post a Reply
Prev 1 2 3 All
josemb40
Profile Blog Joined March 2009
Peru611 Posts
December 15 2011 21:23 GMT
#41
Concatenate the values with '&' and then check if there are any duplicates
wiiiiiiiiiiiiiiiii
Glacierz
Profile Blog Joined May 2010
United States1245 Posts
December 15 2011 21:25 GMT
#42
and make sure you read through this:

http://www.wallst-training.com/WST_Excel_Shortcuts.pdf

It will make you look like a pro if you ever do a live demo of anything excel related. The goal here is to do everything without using a mouse.
bellweather
Profile Blog Joined April 2009
United States404 Posts
Last Edited: 2011-12-16 02:57:36
December 16 2011 02:56 GMT
#43
Not testing this code, but you said you have some experience with VBA so I'm assuming you can edit appropriately. Sort first, then run.

Sub combineDuplicates()

For i = 2 to ActiveSheet.UsedRange.SpecialCells(xlCellTypeLastCell).Row
If Cells(i,2).Value = Cells(i-1,2).Value And Cells(i,3).Value = Cells(i-1,3).Value And Cells(i,4).Value=Cells(i-1,4).Value Then

For j = 4 to ActiveSheet.UsedRange.SpecialCells(xlCellTypeLastCell).Column
Cells(i-1,j) = Cells(i-1,j).Value & ";" & Cells(i,j).Value
Next j

Cells(i,j).EntireRow.Delete
i = i-1
Next i

End Sub

This is assuming column 2,3,4 are your name identifiers and anything after are things that should be concatenated.

edit: and yes I know this code is weak super lame for you VBA'ers out there, but deal with it
A mathematician is a blind man in a dark room looking for a black cat which isnt' there. -Charles Darwin
endy
Profile Blog Joined May 2009
Switzerland8970 Posts
December 16 2011 03:08 GMT
#44
You don't even need VBA. There is a built-in function called "remove duplicates" that does exactly what you need.

Select your 6000 as well as the columns name, cell, address. Click on the Excel tab "Data". Then click on the icon "Remove Duplicates". And voilà.
ॐ
infinity21 *
Profile Blog Joined October 2006
Canada6683 Posts
Last Edited: 2011-12-16 03:41:52
December 16 2011 03:40 GMT
#45
If you have that many columns, I don't think you can take any shortcuts...
Only way I can think of right now is
1) sort
2) concatenate the first and last name into a column at the end, say Z
3) for row i, declare a dynamic array of size (countif(Z: Z ,Zi), original # of columns)
4) have a function that looks at each entry starting from row i to row i + countif(Z: Z, Zi) -1 and appends to the dynamic array if it isn't in the array already
5) paste the dynamic array with a function that automatically inserts a separator between each entry and doesn't put in blanks
6) i=i+countif(Z: Z, Zi) and repeat
Official Entusman #21
MisterD
Profile Blog Joined June 2010
Germany1338 Posts
Last Edited: 2011-12-16 17:34:09
December 16 2011 17:32 GMT
#46
On December 16 2011 04:49 infinity21 wrote:
1) Sort
2) Remove duplicates
3) Add a column with the function =COUNTIF(A:A,A2) where 2 is the row number
4) Filter for the new column for values >=2
If there's entries for 3+ phone numbers, you're going to have to append the numbers to a different column
If you're lucky and there's only a few rows with >=2 phone #s, then you can do it manually without having to code in VBA.

Show nested quote +
On December 16 2011 04:45 MisterD wrote:
set up a mysql database with phpmyadmin, export table as csv, import table in phpmyadmin, do your modifications through SQL queries, export as csv, import to excel sheet. If you are familiar with mysql/phpmyadmin, that's probably the easiest way if it's just a one time deal. If either of these conditions is false though, ignore this post

I don't think someone who doesn't know VBA would know SQL lol


well -- i do? the "new gen" university software developers around here are all java grown. with the advancement of mac and linux on personal use computers, there's no point in even trying to use a microsoft language during education. SQL however is pretty much the first thing in any database lecture. so there's a whole bunch of people who are this way.

though you are probably correct with your assumption "out in the market", where microsoft languages are a lot more popular due to their legacy.
Gold isn't everything in life... you need wood, too!
infinity21 *
Profile Blog Joined October 2006
Canada6683 Posts
December 16 2011 18:44 GMT
#47
On December 17 2011 02:32 MisterD wrote:
Show nested quote +
On December 16 2011 04:49 infinity21 wrote:
1) Sort
2) Remove duplicates
3) Add a column with the function =COUNTIF(A:A,A2) where 2 is the row number
4) Filter for the new column for values >=2
If there's entries for 3+ phone numbers, you're going to have to append the numbers to a different column
If you're lucky and there's only a few rows with >=2 phone #s, then you can do it manually without having to code in VBA.

On December 16 2011 04:45 MisterD wrote:
set up a mysql database with phpmyadmin, export table as csv, import table in phpmyadmin, do your modifications through SQL queries, export as csv, import to excel sheet. If you are familiar with mysql/phpmyadmin, that's probably the easiest way if it's just a one time deal. If either of these conditions is false though, ignore this post

I don't think someone who doesn't know VBA would know SQL lol


well -- i do? the "new gen" university software developers around here are all java grown. with the advancement of mac and linux on personal use computers, there's no point in even trying to use a microsoft language during education. SQL however is pretty much the first thing in any database lecture. so there's a whole bunch of people who are this way.

though you are probably correct with your assumption "out in the market", where microsoft languages are a lot more popular due to their legacy.

Yeah I was referring more to the workplace. People who knows SQL are business analysts or database administrators (generalizing here obv) so they usually have some programming skills like Java, C++, etc. And imo if you know how to program in either one of those two, you can pick up VBA in a couple of hours which has been the case for me at least. Not to say that there are zero jobs that require SQL and no VBA, but those are more of the exceptions.
Official Entusman #21
Prev 1 2 3 All
Please log in or register to reply.
Live Events Refresh
Next event in 1h 37m
[ Submit Event ]
Live Streams
Refresh
StarCraft 2
WinterStarcraft519
Lowko157
NeuroSwarm 101
SortOf 96
StarCraft: Brood War
Sea 30033
GuemChi 3218
actioN 671
PianO 536
Mong 478
Leta 213
ToSsGirL 82
NaDa 51
Dewaltoss 20
Jaeyun 15
[ Show more ]
Backho 13
Icarus 9
League of Legends
JimRising 642
Counter-Strike
Stewie2K897
m0e_tv495
Other Games
summit1g9544
C9.Mang0320
Happy186
Livibee70
Mew2King41
Organizations
Other Games
gamesdonequick700
Counter-Strike
PGL222
StarCraft 2
Blizzard YouTube
StarCraft: Brood War
BSLTrovo
sctven
[ Show 12 non-featured ]
StarCraft 2
• davetesta32
• AfreecaTV YouTube
• intothetv
• Kozan
• IndyKCrew
• LaughNgamezSOOP
• Migwel
• sooper7s
StarCraft: Brood War
• BSLYoutube
• STPLYoutube
• ZZZeroYoutube
League of Legends
• Lourlo1712
Upcoming Events
Replay Cast
1h 37m
Wardi Open
4h 37m
Monday Night Weeklies
9h 37m
Replay Cast
16h 37m
Replay Cast
2 days
Replay Cast
2 days
The PondCast
3 days
KCM Race Survival
3 days
Replay Cast
3 days
Ultimate Battle
4 days
Light vs ZerO
[ Show More ]
Replay Cast
4 days
CranKy Ducklings
5 days
Replay Cast
5 days
Sparkling Tuna Cup
6 days
Replay Cast
6 days
Liquipedia Results

Completed

Acropolis #4 - TS5
PiG Sty Festival 7.0
Underdog Cup #3

Ongoing

KCM Race Survival 2026 Season 1
Jeongseon Sooper Cup
Spring Cup 2026
WardiTV Winter 2026
Nations Cup 2026
ESL Pro League S23 Stage 1&2
PGL Cluj-Napoca 2026
IEM Kraków 2026
BLAST Bounty Winter 2026
BLAST Bounty Winter Qual
eXTREMESLAND 2025

Upcoming

ASL Season 21: Qualifier #1
ASL Season 21: Qualifier #2
ASL Season 21
Acropolis #4 - TS6
Acropolis #4
IPSL Spring 2026
CSLAN 4
HSC XXIX
uThermal 2v2 2026 Main Event
Bellum Gens Elite Stara Zagora 2026
RSL Revival: Season 4
NationLESS Cup
Asian Champions League 2026
IEM Atlanta 2026
PGL Astana 2026
BLAST Rivals Spring 2026
CCT Season 3 Global Finals
FISSURE Playground #3
IEM Rio 2026
PGL Bucharest 2026
Stake Ranked Episode 1
BLAST Open Spring 2026
ESL Pro League S23 Finals
TLPD

1. ByuN
2. TY
3. Dark
4. Solar
5. Stats
6. Nerchio
7. sOs
8. soO
9. INnoVation
10. Elazer
1. Rain
2. Flash
3. EffOrt
4. Last
5. Bisu
6. Soulkey
7. Mini
8. Sharp
Sidebar Settings...

Advertising | Privacy Policy | Terms Of Use | Contact Us

Original banner artwork: Jim Warren
The contents of this webpage are copyright © 2026 TLnet. All Rights Reserved.