How to extract information from the same column

K0st4din

Active Member
Joined
Feb 8, 2012
Messages
488
Office Version
  1. 2016
  2. 2013
  3. 2011
  4. 2010
  5. 2007
Platform
  1. Windows
Hello, everyone,
I've been struggling for several days and I can't find a solution on one of my tables.
I'm asking for your help, because I'm going crazy with her.
In one column I have a lot of information, which I try to arrange part of it in different columns.
I haven't tried anything, but obviously nothing comes to my mind how to create it.
I will attach an example to make it clearer what I am trying to do.
In column B2:B I have addresses, street names of people, districts, Phones and under these phones I have Names again.
This is where I try to extract from the same column. If in a cell it sees this Name next to it in the next cell to put the phone.
2021-03-11_093754.jpg
 

Excel Facts

How to find 2nd largest value in a column?
MAX finds the largest value. =LARGE(A:A,2) will find the second largest. =SMALL(A:A,3) will find the third smallest
I suggest that you update your Account details (or click your user name at the top right of the forum) so helpers always know what Excel version(s) & platform(s) you are using as the best solution often varies by version. (Don’t forget to scroll down & ‘Save’)

MrExcel has a tool called “XL2BB” that lets you post samples of your data that will allow us to copy/paste it to our Excel spreadsheets, so we can work with the same copy of data that you are. Instructions on using this tool can be found here: XL2BB Add-in
We cannot copy from an image like you have provided.

Note that there is also a "Test Here” forum on this board. This is a place where you can test using this tool (or any other posting techniques that you want to test) before trying to use those tools in your actual posts.
 
Upvote 0
Hi, I think I managed the plugin to display the table! And now everything must be as it should be!

test name lek.xlsm
BCDEFGHI
1
22. joki moki oodPenko ivanov topalov - lekar lekarTelefon: 08554555855, 55558888555
3oblast: london, obshtina Qmbol, naseleno mqsto: gr. London
4adres: nqkakyw si 23
5Upravitel: imeto na liceto I nqkoj drug
6Telefon: 08554555855, 55558888555
71. Penko ivanov topalov - lekar lekar
82. Drago Drasov Minev - lekar lekar
93. Blago Ivanow Nqkoi - lekar lekar
10
113. kukuruki duduruki ooddido mesoto hapvane - lekar lekarTelefon: 08554555855, 55558888555
12oblast: london, obshtina Qmbol, naseleno mqsto: gr. London
13adres: nqkakyw 723
14Upravitel: imeto na liceto I nqkoj drug
15Telefon: 08554555855, 55558888555
161. dido mesoto hapvane - lekar lekar
Sheet1
 
Upvote 0
Thanks for the XL2BB data and updating your profile. (y)

If your sample data is representative with the phone number in the row above the name then this should do it for you.

K0st4din.xlsm
BCDEFGH
1
22. joki moki oodPenko ivanov topalov - lekar lekarTelefon: 08554555855, 55558888555
3oblast: london, obshtina Qmbol, naseleno mqsto: gr. London
4adres: nqkakyw si 23
5Upravitel: imeto na liceto I nqkoj drug
6Telefon: 08554555855, 55558888555
71. Penko ivanov topalov - lekar lekar
82. Drago Drasov Minev - lekar lekar
93. Blago Ivanow Nqkoi - lekar lekar
10
113. kukuruki duduruki ooddido mesoto hapvane - lekar lekarTelefon: 08554555855, 55558888555
12oblast: london, obshtina Qmbol, naseleno mqsto: gr. London
13adres: nqkakyw 723
14Upravitel: imeto na liceto I nqkoj drug
15Telefon: 08554555855, 55558888555
161. dido mesoto hapvane - lekar lekar
Sheet1
Cell Formulas
RangeFormula
H2,H11H2=INDEX(B$2:B$16,MATCH("*"&G2,B$2:B$16,0)-1)


If that sample data was not truly representative, then give us some more that is (& include the expected results again).
 
Upvote 0
Hello
yes, really this is only a small part of everything I try to do.
For this reason (since the tables are in a different language from English, I will make a copy in English) and I will explain what I am having trouble with.
For starters, these are the same / similar columns with a lot of ordered information. From this column I try to extract only the information I need and then in case of specific matches to arrange them in one line.
But so far the mission is very time consuming and I have entered several formulas for each column, and then I rearrange them to be in the same order.
I'm crazy to the Nth degree!

test name lek.xlsm
ABCDEFGHIJKL
1DistrictLocalityAddressGeneral practitionerPhone
22. joki moki oodlondon citygr. London citynqkakyw si 23Penko ivanov topalov - General practitionerPhone: 08554555855, 55558888555
3District: london city, obshtina Qmbol, Locality: gr. London citylondon citygr. London citynqkakyw si 23Drago Drasov Minev - General practitionerPhone: 08554555855, 55558888555
4Address: nqkakyw si 23london citygr. London citynqkakyw si 23Blago Ivanow Nqkoi - General practitionerPhone: 08554555855, 55558888555
5Upravitel: imeto na liceto I nqkoj drugVeliko gradoves. new jursey strnqkakyw 723dido mesoto hapvane - General practitionerPhone: 08554555855, 55558888555
6Phone: 08554555855, 55558888555ShoumenS.IVANOVO4 Vasil Kolarov Str., Health service, kit and manipulation - address under Article 103 of the National Development Plan for MD 2015MARIA IVANOVA RADUSHEVA - General practitionerPhone: 0885159
71. Penko ivanov topalov - General practitionerShoumenS.LOVETS7 Kozloduy StreetMARIA IVANOVA RADUSHEVA - General practitionerPhone: 0885159
82. Drago Drasov Minev - General practitionerShoumenS.IVANOVOVasil Kolarov Str., Health service, kit and manipulationMARIA IVANOVA RADUSHEVA - General practitionerPhone: 0885159
93. Blago Ivanow Nqkoi - General practitionerShoumenS.LOVETS23 Svoboda Street, health service, manipulation roomMARIA IVANOVA RADUSHEVA - General practitionerPhone: 0885159
10ShoumenVARBITSA53 Septemvriysko Vastanie Str., 2nd floor, set 3 and manipulationMARIA IVANOVA RADUSHEVA - General practitionerPhone: 0885159
113. kukuruki duduruki oodShoumenSHUMEN100 Tsar Osvoboditel Str., 2nd floor, set 213, 3rd floor, 301, 302, 303, 304 and manipulation room 306, 100 Tsar Osvoboditel Str. 1, complex № 102, 103, 105 and manipulative № 104, 1A Lozengrad Str.Albena Todorova Marinova - General PractitionerPhone: 054 / 830,0886189
12District: Veliko gradove, obshtina Qmbol, Locality: s. new jursey strShoumenSHUMEN100 Tsar Osvoboditel Str., 2nd floor, set 213, 3rd floor, 301, 302, 303, 304 and manipulation room 306, 100 Tsar Osvoboditel Str. 1, complex № 102, 103, 105 and manipulative № 104, 1A Lozengrad Str.Veselin Krumov Valkov - General PractitionerPhone: 054 / 830,0886189
13Address: nqkakyw 723ShoumenSHUMEN100 Tsar Osvoboditel Str., 2nd floor, set 213, 3rd floor, 301, 302, 303, 304 and manipulation room 306, 100 Tsar Osvoboditel Str. 1, complex № 102, 103, 105 and manipulative № 104, 1A Lozengrad Str.Dilek Ekremova Hyusnieva - General PractitionerPhone: 054 / 830,0886189
14Upravitel: imeto na liceto I nqkoj drugShoumenSHUMEN100 Tsar Osvoboditel Str., 2nd floor, set 213, 3rd floor, 301, 302, 303, 304 and manipulation room 306, 100 Tsar Osvoboditel Str. 1, complex № 102, 103, 105 and manipulative № 104, 1A Lozengrad Str.Emilia Yosifova Ilieva - General PractitionerPhone: 054 / 830,0886189
15Phone: 08554555855, 55558888555ShoumenSHUMEN100 Tsar Osvoboditel Str., 2nd floor, set 213, 3rd floor, 301, 302, 303, 304 and manipulation room 306, 100 Tsar Osvoboditel Str. 1, complex № 102, 103, 105 and manipulative № 104, 1A Lozengrad Str.Yanko Petrov Yankov - General PractitionerPhone: 054 / 830,0886189
161. dido mesoto hapvane - General practitioner
17
181. AIP for PMP - Dr. MARIA IVANOVA RADUSHEVA
19District: Shoumen, Municipality: VARBITSA, Locality: S.IVANOVO
20Address: 4 Vasil Kolarov Str., Health service, kit and manipulation - address under Article 103 of the National Development Plan for MD 2015
21District: Shoumen, Municipality: VARBITSA, Locality: S.LOVETS
22Address: 7 Kozloduy Street
23District: Shoumen, Municipality: VARBITSA, Locality: S.IVANOVO
24Address: Васи4 Vasil Kolarov Str., Health service, kit and manipulation
25District: Shoumen, Municipality: VARBITSA, Locality: S.LOVETS
26Address: 23 Svoboda Street, health service, manipulation room
27District: Shoumen, Municipality: VARBITSA, Locality: VARBITSA
28Address: 53 Septemvriysko Vastanie Str., 2nd floor, set 3 and manipulation
29Manager: MARIA IVANOVA RADUSHEVA
30Phone: 0885159
311. MARIA IVANOVA RADUSHEVA - General practitioner
32
3382. LK BIOSHANCE
34District: Shoumen, Municipality: SHUMEN, Locality: SHUMEN
35Address: 100 Tsar Osvoboditel Str., 2nd floor, set 213, 3rd floor, 301, 302, 303, 304 and manipulation room 306, 100 Tsar Osvoboditel Str. 1, complex № 102, 103, 105 and manipulative № 104, 1A Lozengrad Str.
36Manager: VESELIN KRUMOV VALKOV
37Phone: 054 / 830,0886189
381. Albena Todorova Marinova - General Practitioner
392. Veselin Krumov Valkov - General Practitioner
403. Dilek Ekremova Hyusnieva - General Practitioner
414. Emilia Yosifova Ilieva - General Practitioner
425. Yanko Petrov Yankov - General Practitioner
43
44
45
46
47
48
Sheet1


Actually, I extract in different columns with different formulas, then each information is shifted and from here on the rearrangement begins to reach the example shown and the actual tables. I was thinking about a macro, but I don't know how to push it to automate things.
 
Upvote 0
OK, try this. Should work in all your versions except Excel 2007.

K0st4din.xlsm
ABCGH
1General practitioner
22. joki moki oodPenko ivanov topalov - General practitionerPhone: 08554555855, 55558888555
3District: london city, obshtina Qmbol, Locality: gr. London cityDrago Drasov Minev - General practitionerPhone: 08554555855, 55558888555
4Address: nqkakyw si 23Blago Ivanow Nqkoi - General practitionerPhone: 08554555855, 55558888555
5Upravitel: imeto na liceto I nqkoj drugdido mesoto hapvane - General practitionerPhone: 08554555855, 55558888555
6Phone: 08554555855, 55558888555MARIA IVANOVA RADUSHEVA - General practitionerPhone: 0885159
71. Penko ivanov topalov - General practitionerMARIA IVANOVA RADUSHEVA - General practitionerPhone: 0885159
82. Drago Drasov Minev - General practitionerMARIA IVANOVA RADUSHEVA - General practitionerPhone: 0885159
93. Blago Ivanow Nqkoi - General practitionerMARIA IVANOVA RADUSHEVA - General practitionerPhone: 0885159
10MARIA IVANOVA RADUSHEVA - General practitionerPhone: 0885159
113. kukuruki duduruki oodAlbena Todorova Marinova - General PractitionerPhone: 054 / 830,0886189
12District: Veliko gradove, obshtina Qmbol, Locality: s. new jursey strVeselin Krumov Valkov - General PractitionerPhone: 054 / 830,0886189
13Address: nqkakyw 723Dilek Ekremova Hyusnieva - General PractitionerPhone: 054 / 830,0886189
14Upravitel: imeto na liceto I nqkoj drugEmilia Yosifova Ilieva - General PractitionerPhone: 054 / 830,0886189
15Phone: 08554555855, 55558888555Yanko Petrov Yankov - General PractitionerPhone: 054 / 830,0886189
161. dido mesoto hapvane - General practitioner
17
181. AIP for PMP - Dr. MARIA IVANOVA RADUSHEVA
19District: Shoumen, Municipality: VARBITSA, Locality: S.IVANOVO
20Address: 4 Vasil Kolarov Str., Health service, kit and manipulation - address under Article 103 of the National Development Plan for MD 2015
21District: Shoumen, Municipality: VARBITSA, Locality: S.LOVETS
22Address: 7 Kozloduy Street
23District: Shoumen, Municipality: VARBITSA, Locality: S.IVANOVO
24Address: Васи4 Vasil Kolarov Str., Health service, kit and manipulation
25District: Shoumen, Municipality: VARBITSA, Locality: S.LOVETS
26Address: 23 Svoboda Street, health service, manipulation room
27District: Shoumen, Municipality: VARBITSA, Locality: VARBITSA
28Address: 53 Septemvriysko Vastanie Str., 2nd floor, set 3 and manipulation
29Manager: MARIA IVANOVA RADUSHEVA
30Phone: 0885159
311. MARIA IVANOVA RADUSHEVA - General practitioner
32
3382. LK BIOSHANCE
34District: Shoumen, Municipality: SHUMEN, Locality: SHUMEN
35Address: 100 Tsar Osvoboditel Str., 2nd floor, set 213, 3rd floor, 301, 302, 303, 304 and manipulation room 306, 100 Tsar Osvoboditel Str. 1, complex № 102, 103, 105 and manipulative № 104, 1A Lozengrad Str.
36Manager: VESELIN KRUMOV VALKOV
37Phone: 054 / 830,0886189
381. Albena Todorova Marinova - General Practitioner
392. Veselin Krumov Valkov - General Practitioner
403. Dilek Ekremova Hyusnieva - General Practitioner
414. Emilia Yosifova Ilieva - General Practitioner
425. Yanko Petrov Yankov - General Practitioner
Sheet2
Cell Formulas
RangeFormula
H2:H15H2=INDEX(B:B,AGGREGATE(14,6,ROW(B$1:B$42)/((ROW(B$1:B$42)<MATCH("*"&G2,B:B,0))*(LEFT(B$1:B$42,6)="Phone:")),1))
 
Upvote 0
Thank you very much, but unfortunately in the office, 2007 is used and if the formula explodes there, I will not be able to work and I will only have to work at home.
If you say, I will make a brand new query, but since the idea is absolutely the same, let me ask - from the results shown (data) in column B2:B, can something be done (even with a macro) to show the table with all the information on the right, ie District, Locality, Address, General practitioner, Phone

Thank you very much!
 
Upvote 0

Forum statistics

Threads
1,214,660
Messages
6,120,787
Members
448,994
Latest member
rohitsomani

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top