how can i extract data from cells?

smilyben

New Member
Joined
May 30, 2022
Messages
2
Office Version
  1. 365
Platform
  1. Windows
I have an excel file; all heading are repeated and some of data are repeated in cells. I want to transform this file to one heading and a line off data.
Since the original document contains almost 25000 lines, i want to do it with formula . I attached mini sheet and and the outcome i wanted.
Can you help me please.

HC sample.xlsx
ABCDEFGHIJKLMNOPQRSTUV
1
2Dosya NoAdı SoyadıNameNameDate AgeSexphone
31724MCMCMC15.02.196454K543No 1No 1PSOS0STTSTITITUOUO
41724MCMCMC15.02.196454K5431121911752KDKD AH AH 10.60 Positive18.09.2019 14:3218.09.2019 14:32BFBF
51121911752KDKD AH AH 10.60 Positive18.09.2019 14:3218.09.2019 14:32BFBF
626838FCFCFC1.01.198736K536No 1No 1PSOS0STTSTITITUOUO
726838FCFCFC1.01.198736K53699211116521EHEH AH AH 13.03 Positive20.09.2019 09:4720.09.2019 09:47FEFE
899211116521EHEH AH AH 13.03 Positive20.09.2019 09:4720.09.2019 09:47FEFE
98826AHAHAH1.01.193684E536No 1No 1PSOS0STTSTITITUOUO
108826AHAHAH1.01.193684E53633211152EHEH AH AH 13.65 Positive20.09.2019 11:0220.09.2019 11:02BFBF
1133211152EHEH AH AH 13.65 Positive20.09.2019 11:0220.09.2019 11:02BFBF
12414GKGKGK25.06.197451K537No 1No 1PSOS0STTSTITITUOUO
13414GKGKGK25.06.197451K53720202199118521EHEH AH AH 13.88 Positive20.09.2019 11:2620.09.2017 11:26:39FEFE
1420202199118521EHEH AH AH 13.88 Positive20.09.2019 11:2620.09.2019 11:26FEFE
15129MAMAMA20.11.198338E534No 1No 1PSOS0STTSTITITUOUO
16129MAMAMA20.11.198338E5343321801166522EHEH AH AH 13.29 Positive20.09.2016 14:4420.09.2016 14:44FEFE
173321801166522EHEH AH AH 13.29 Positive20.09.2016 14:4420.09.2016 14:44FEFE
Sayfa1



HC sample.xlsx
ABCDEFGHIJKLMNOPQRST
1NameNameDate AgeSexphoneNo 1No 1PSOS0STTSTITITUOUO
2MCMC15.02.196454K5431121911752KDKD AH AH 10.60 Positive18.09.2019 14:3218.09.2019 14:32BFBF
3FCFC1.01.198736K53699211116521EHEH AH AH 13.03 Positive20.09.2019 09:4720.09.2019 09:47FEFE
4AHAH1.01.193684E53633211152EHEH AH AH 13.65 Positive20.09.2019 11:0220.09.2019 11:02BFBF
5GKGK25.06.197451K53720202199118521EHEH AH AH 13.88 Positive20.09.2019 11:2620.09.2019 11:26FEFE
6MAMA20.11.198338E5343321801166522EHEH AH AH 13.29 Positive20.09.2016 14:4420.09.2016 14:44FEFE
Sayfa2
 

Attachments

  • 1.png
    1.png
    58.7 KB · Views: 3
  • 2.png
    2.png
    24.4 KB · Views: 3

Excel Facts

Difference between two dates
Secret function! Use =DATEDIF(A2,B2,"Y")&" years"&=DATEDIF(A2,B2,"YM")&" months"&=DATEDIF(A2,B2,"MD")&" days"
Assuming that this is a one-time task (rather than a recurring one) and assuming that the data is sorted for column Q (or you don't care about the sorting), I would do it as follows:
- paste A2:H2 to A3:H3
- delete rows 1 and 2
- sort for column Q => all yellow rows will be in one block
- from this yellow block delete all rows but the one which has the full headings (including the contents of the inital A2:H2)
- sort for column H => all white rows will be in one block
- delete the block with the white rows
- sort for column Q
- move the yellow row (heading) to the beginning of your table
 
Upvote 0
Solution

Forum statistics

Threads
1,215,487
Messages
6,125,073
Members
449,205
Latest member
Healthydogs

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