• Log InLog In
  • Register
Liquid`
Team Liquid Liquipedia
EDT 04:54
CEST 10:54
KST 17:54
  • 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
Maestros of the Game: Week 1/Play-in Preview9[ASL20] Ro24 Preview Pt2: Take-Off7[ASL20] Ro24 Preview Pt1: Runway132v2 & SC: Evo Complete: Weekend Double Feature4Team Liquid Map Contest #21 - Presented by Monster Energy9
Community News
Weekly Cups (August 25-31): Clem's Last Straw?26Weekly Cups (Aug 18-24): herO dethrones MaxPax6Maestros of The Game—$20k event w/ live finals in Paris46Weekly Cups (Aug 11-17): MaxPax triples again!15Weekly Cups (Aug 4-10): MaxPax wins a triple6
StarCraft 2
General
Speculation of future Wardii series Weekly Cups (August 25-31): Clem's Last Straw? Geoff 'iNcontroL' Robinson has passed away #1: Maru - Greatest Players of All Time Maestros of the Game: Week 1/Play-in Preview
Tourneys
Sparkling Tuna Cup - Weekly Open Tournament Maestros of The Game—$20k event w/ live finals in Paris Monday Nights Weeklies LiuLi Cup - September 2025 Tournaments 🏆 GTL Season 2 – StarCraft II Team League
Strategy
Custom Maps
External Content
Mutation # 489 Bannable Offense Mutation # 488 What Goes Around Mutation # 487 Think Fast Mutation # 486 Watch the Skies
Brood War
General
ASL20 General Discussion BW General Discussion BGH Auto Balance -> http://bghmmr.eu/ Starcraft at lower levels TvP Victoria gamers
Tourneys
[Megathread] Daily Proleagues Is there English video for group selection for ASL [ASL20] Ro24 Group F [IPSL] CSLAN Review and CSLPRO Reimagined!
Strategy
Simple Questions, Simple Answers Muta micro map competition Fighting Spirit mining rates [G] Mineral Boosting
Other Games
General Games
Stormgate/Frost Giant Megathread Warcraft III: The Frozen Throne Nintendo Switch Thread Mechabellum Teeworlds - online game
Dota 2
Official 'what is Dota anymore' discussion
League of Legends
Heroes of the Storm
Simple Questions, Simple Answers Heroes of the Storm 2.0
Hearthstone
Heroes of StarCraft mini-set
TL Mafia
TL Mafia Community Thread Vanilla Mini Mafia
Community
General
US Politics Mega-thread Things Aren’t Peaceful in Palestine Russo-Ukrainian War Thread Canadian Politics Mega-thread YouTube Thread
Fan Clubs
The Happy Fan Club!
Media & Entertainment
Anime Discussion Thread Movie Discussion! [Manga] One Piece [\m/] Heavy Metal Thread
Sports
2024 - 2026 Football Thread Formula 1 Discussion TeamLiquid Health and Fitness Initiative For 2023
World Cup 2022
Tech Support
Computer Build, Upgrade & Buying Resource Thread High temperatures on bridge(s) Gtx660 graphics card replacement
TL Community
The Automated Ban List TeamLiquid Team Shirt On Sale
Blogs
A very expensive lesson on ma…
Garnet
hello world
radishsoup
Lemme tell you a thing o…
JoinTheRain
How Culture and Conflict Imp…
TrAiDoS
RTS Design in Hypercoven
a11
Evil Gacha Games and the…
ffswowsucks
INDEPENDIENTE LA CTM
XenOsky
Customize Sidebar...

Website Feedback

Closed Threads



Active: 718 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 States1244 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 2h 6m
[ Submit Event ]
Live Streams
Refresh
StarCraft 2
ProTech73
StarCraft: Brood War
Calm 9949
actioN 425
ggaemo 226
ZerO 134
PianO 130
Soma 82
Pusan 77
Leta 72
Sharp 70
sSak 66
[ Show more ]
soO 32
Aegong 31
Sexy 19
Sacsri 18
yabsab 14
HiyA 10
Bale 7
Dota 2
BananaSlamJamma204
XcaliburYe124
Counter-Strike
olofmeister931
shoxiejesuss633
Other Games
summit1g6027
ceh9457
Tasteless444
Happy239
OGKoka 102
ZerO(Twitch)12
Organizations
Other Games
gamesdonequick626
StarCraft 2
Blizzard YouTube
StarCraft: Brood War
BSLTrovo
sctven
[ Show 13 non-featured ]
StarCraft 2
• LUISG 19
• AfreecaTV YouTube
• intothetv
• Kozan
• IndyKCrew
• LaughNgamezSOOP
• Migwel
• sooper7s
StarCraft: Brood War
• BSLYoutube
• STPLYoutube
• ZZZeroYoutube
League of Legends
• Jankos425
• HappyZerGling74
Upcoming Events
LiuLi Cup
2h 6m
Replay Cast
15h 6m
The PondCast
1d 1h
RSL Revival
1d 1h
Maru vs SHIN
MaNa vs MaxPax
Maestros of the Game
1d 8h
Classic vs TriGGeR
Reynor vs SHIN
OSC
1d 18h
MaNa vs SHIN
SKillous vs ShoWTimE
Bunny vs TBD
Cham vs TBD
RSL Revival
2 days
Reynor vs Astrea
Classic vs sOs
Maestros of the Game
2 days
Serral vs Ryung
ByuN vs Zoun
BSL Team Wars
2 days
Team Bonyth vs Team Dewalt
CranKy Ducklings
3 days
[ Show More ]
RSL Revival
3 days
GuMiho vs Cham
ByuN vs TriGGeR
Cosmonarchy
3 days
TriGGeR vs YoungYakov
YoungYakov vs HonMonO
HonMonO vs TriGGeR
Maestros of the Game
3 days
Solar vs Bunny
Clem vs Rogue
[BSL 2025] Weekly
3 days
RSL Revival
4 days
Cure vs Bunny
Creator vs Zoun
Maestros of the Game
4 days
Maru vs Lambo
herO vs ShoWTimE
BSL Team Wars
4 days
Team Hawk vs Team Sziky
Sparkling Tuna Cup
5 days
Liquipedia Results

Completed

CSL Season 18: Qualifier 2
SEL Season 2 Championship
HCC Europe

Ongoing

Copa Latinoamericana 4
BSL 20 Team Wars
KCM Race Survival 2025 Season 3
BSL 21 Qualifiers
ASL Season 20
CSL 2025 AUTUMN (S18)
Maestros of the Game
Sisters' Call Cup
BLAST Open Fall Qual
Esports World Cup 2025
BLAST Bounty Fall 2025
BLAST Bounty Fall Qual
IEM Cologne 2025
FISSURE Playground #1
BLAST.tv Austin Major 2025

Upcoming

LASL Season 20
2025 Chongqing Offline CUP
BSL Season 21
BSL 21 Team A
Chzzk MurlocKing SC1 vs SC2 Cup #2
RSL Revival: Season 2
EC S1
BLAST Rivals Fall 2025
Skyesports Masters 2025
IEM Chengdu 2025
PGL Masters Bucharest 2025
Thunderpick World Champ.
MESA Nomadic Masters Fall
CS Asia Championships 2025
ESL Pro League S22
StarSeries Fall 2025
FISSURE Playground #2
BLAST Open Fall 2025
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 © 2025 TLnet. All Rights Reserved.