Help With Major Excel Problem
Closed
nilnaij
Posts
3
Registration date
Monday 21 October 2013
Status
Member
Last seen
23 October 2013
-
21 Oct 2013 à 04:20
TrowaD Posts 2921 Registration date Sunday 12 September 2010 Status Contributor Last seen 27 December 2022 - 29 Oct 2013 à 11:56
TrowaD Posts 2921 Registration date Sunday 12 September 2010 Status Contributor Last seen 27 December 2022 - 29 Oct 2013 à 11:56
Related:
- Help With Major Excel Problem
- Excel mod apk for pc - Download - Spreadsheets
- Vat calculation excel - Guide
- Kernel for excel repair - Download - Backup and recovery
- Arrow keys not working in excel - Guide
- Excel clear formatting - Guide
5 responses
TrowaD
Posts
2921
Registration date
Sunday 12 September 2010
Status
Contributor
Last seen
27 December 2022
555
22 Oct 2013 à 10:29
22 Oct 2013 à 10:29
Hi Nilnaij,
So Happy = Sad ?
I thought you wanted to single out the first word.
Turn:
ABC LTD
ABC PTE LTD
ABC PTE
Beijing Ltd
Beijing Pte Ltd
Beijing Pte
Happy Ltd
Sad Pte Ltd
Into:
ABC
ABC
ABC
Beijing
Beijing
Beijing
Happy
Sad
Could you give result as you would like to see it?
Best regards,
Trowa
So Happy = Sad ?
I thought you wanted to single out the first word.
Turn:
ABC LTD
ABC PTE LTD
ABC PTE
Beijing Ltd
Beijing Pte Ltd
Beijing Pte
Happy Ltd
Sad Pte Ltd
Into:
ABC
ABC
ABC
Beijing
Beijing
Beijing
Happy
Sad
Could you give result as you would like to see it?
Best regards,
Trowa
TrowaD
Posts
2921
Registration date
Sunday 12 September 2010
Status
Contributor
Last seen
27 December 2022
555
21 Oct 2013 à 12:09
21 Oct 2013 à 12:09
Hi Nilnaij,
Is it an idea to use find/replace. First replace (Ctrl+H) ltd with nothing and then pte with nothing. You could use an additional column if you don't like to mess with the original. Just keep in mind to SELECT YOUR COLUMN FIRST.
Best regards,
Trowa
Is it an idea to use find/replace. First replace (Ctrl+H) ltd with nothing and then pte with nothing. You could use an additional column if you don't like to mess with the original. Just keep in mind to SELECT YOUR COLUMN FIRST.
Best regards,
Trowa
nilnaij
Posts
3
Registration date
Monday 21 October 2013
Status
Member
Last seen
23 October 2013
21 Oct 2013 à 20:12
21 Oct 2013 à 20:12
Hi Trowad
I used the top example as a minor reference within my column I have other accurate names also which contains LTD and PTE
A7: Happy Ltd
A8: Sad Pte Ltd <-- These 2 are accurate so if I were to utilize ur method I might affect these correct columns too
The method im actually looking for is something to single out those cells that are similar without affecting those cells without any similarities
Thanks for the tip though! :D
I used the top example as a minor reference within my column I have other accurate names also which contains LTD and PTE
A7: Happy Ltd
A8: Sad Pte Ltd <-- These 2 are accurate so if I were to utilize ur method I might affect these correct columns too
The method im actually looking for is something to single out those cells that are similar without affecting those cells without any similarities
Thanks for the tip though! :D
nilnaij
Posts
3
Registration date
Monday 21 October 2013
Status
Member
Last seen
23 October 2013
23 Oct 2013 à 03:53
23 Oct 2013 à 03:53
Hi Trowa, Thanks for your earlier reply
I wana try to standardize
ABC PTE LTD
ABC PTE LTD
ABC PTE LTD
BEIJING PTE LTD
BEIJING PTE LTD
BEIJING PTE LTD
Happy Ltd
Sad Pte Ltd
I gave up on eyeballing for the similarities to change because I have 650k of Row, if there was a way I could identify all these cells at the same time and group them together so I can make the changes it would be so much easier. Like looking around with a partial cell match or smth.
Thanks man!
I wana try to standardize
ABC PTE LTD
ABC PTE LTD
ABC PTE LTD
BEIJING PTE LTD
BEIJING PTE LTD
BEIJING PTE LTD
Happy Ltd
Sad Pte Ltd
I gave up on eyeballing for the similarities to change because I have 650k of Row, if there was a way I could identify all these cells at the same time and group them together so I can make the changes it would be so much easier. Like looking around with a partial cell match or smth.
Thanks man!
TrowaD
Posts
2921
Registration date
Sunday 12 September 2010
Status
Contributor
Last seen
27 December 2022
555
29 Oct 2013 à 11:56
29 Oct 2013 à 11:56
Hi Nilnaij,
Try this and see if it works (it works with sample data):
1)
Column A: Here are the company names.
Column B: This is a formula: =Len(A1). Drag the formula down to match column A.
Column C: Copy/paste company names here. Select column --> find/replace (Ctrl+H):
PTE with nothing
LTD with nothing
Space with nothing
2)
Select column A, B and C. Sort data:
Column C --> ascending
Column B --> descending
3)
Run the following code:
4)
Now you can delete columns B and C.
Best regards,
Trowa
Try this and see if it works (it works with sample data):
1)
Column A: Here are the company names.
Column B: This is a formula: =Len(A1). Drag the formula down to match column A.
Column C: Copy/paste company names here. Select column --> find/replace (Ctrl+H):
PTE with nothing
LTD with nothing
Space with nothing
2)
Select column A, B and C. Sort data:
Column C --> ascending
Column B --> descending
3)
Run the following code:
Sub RunMe()
Dim lRow As Integer
lRow = Range("C" & Rows.Count).End(xlUp).Row
For Each cell In Range("C1:C" & lRow)
cell.Offset(0, -2).Copy
If cell.Value = cell.Offset(1, 0).Value Then
cell.Offset(1, -2).PasteSpecial
End If
Next cell
Application.CutCopyMode = False
End Sub
4)
Now you can delete columns B and C.
Best regards,
Trowa