smide
Board Regular
- Joined
- Dec 20, 2015
- Messages
- 164
- Office Version
- 2016
- Platform
- Windows
Hello.
I need some assistance with an excel spreadsheet which contains very raw output report in row 1 columns (A-ZW).
In row1 in Sheet2 I have a raw report output which contains certain Products id's.
The problem is that I need to find cells that contain this data about product's id's, then to extract only id numbers from those cells without unnecessary characters in those cells.
There are four type of cells which contain product's id characteristics (all cells are in row 1, Sheet2 as I said):
Example:
1) events:[{"id":45 - I need only number 45 from this cell
2) {"id":626702572 - I need only number 626702572
but there are also "dummy" cells with similar "id" characteristics:
3) account:[{"id":2370
or
4) annual:[{"id":3460
I do not need id from these cells !! (from 3) and/or 4) )
Extended example
Sheet2 (raw report)[TABLE="class: grid, width: 250, align: center"]
<tbody>[TR]
[TD][/TD]
[TD="align: center"]A[/TD]
[TD="align: center"]B[/TD]
[TD="align: center"]C[/TD]
[TD="align: center"]D[/TD]
[TD="align: center"]E[/TD]
[TD="align: center"]F[/TD]
[TD="align: center"]G[/TD]
[TD="align: center"]H[/TD]
[TD="align: center"]I[/TD]
[TD="align: center"]J[/TD]
[/TR]
[TR]
[TD]1[/TD]
[TD]events:[{"id":[/TD]
[TD]status:"I" [/TD]
[TD]events:[{"id":7650
[/TD]
[TD]starts:[/TD]
[TD]maxTotal:50 [/TD]
[TD]{"id":976[/TD]
[TD]account:[{"id":2370[/TD]
[TD]cutoff:[/TD]
[TD]{"id":45700[/TD]
[TD]...[/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
</tbody>[/TABLE]
* deliberately I skipped id from G1(!) cell because I do not need id with this characteristics (case 3) )
Sheet1 (after macro or formula run)
[TABLE="class: grid, width: 250, align: center"]
<tbody>[TR]
[TD="align: center"][/TD]
[TD="align: center"]A[/TD]
[TD="align: center"]B[/TD]
[/TR]
[TR]
[TD="align: center"]1[/TD]
[TD="align: center"][/TD]
[TD="align: center"][/TD]
[/TR]
[TR]
[TD="align: center"]2[/TD]
[TD="align: center"]7650[/TD]
[TD="align: center"][/TD]
[/TR]
[TR]
[TD="align: center"]3[/TD]
[TD="align: center"]976[/TD]
[TD="align: center"][/TD]
[/TR]
[TR]
[TD="align: center"]4[/TD]
[TD="align: center"]45700[/TD]
[TD="align: center"][/TD]
[/TR]
[TR]
[TD="align: center"]5[/TD]
[TD="align: center"].....[/TD]
[TD="align: center"][/TD]
[/TR]
</tbody>[/TABLE]
I need some assistance with an excel spreadsheet which contains very raw output report in row 1 columns (A-ZW).
In row1 in Sheet2 I have a raw report output which contains certain Products id's.
The problem is that I need to find cells that contain this data about product's id's, then to extract only id numbers from those cells without unnecessary characters in those cells.
There are four type of cells which contain product's id characteristics (all cells are in row 1, Sheet2 as I said):
Example:
1) events:[{"id":45 - I need only number 45 from this cell
2) {"id":626702572 - I need only number 626702572
but there are also "dummy" cells with similar "id" characteristics:
3) account:[{"id":2370
or
4) annual:[{"id":3460
I do not need id from these cells !! (from 3) and/or 4) )
Extended example
Sheet2 (raw report)[TABLE="class: grid, width: 250, align: center"]
<tbody>[TR]
[TD][/TD]
[TD="align: center"]A[/TD]
[TD="align: center"]B[/TD]
[TD="align: center"]C[/TD]
[TD="align: center"]D[/TD]
[TD="align: center"]E[/TD]
[TD="align: center"]F[/TD]
[TD="align: center"]G[/TD]
[TD="align: center"]H[/TD]
[TD="align: center"]I[/TD]
[TD="align: center"]J[/TD]
[/TR]
[TR]
[TD]1[/TD]
[TD]events:[{"id":[/TD]
[TD]status:"I" [/TD]
[TD]events:[{"id":7650
[/TD]
[TD]starts:[/TD]
[TD]maxTotal:50 [/TD]
[TD]{"id":976[/TD]
[TD]account:[{"id":2370[/TD]
[TD]cutoff:[/TD]
[TD]{"id":45700[/TD]
[TD]...[/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
</tbody>[/TABLE]
* deliberately I skipped id from G1(!) cell because I do not need id with this characteristics (case 3) )
Sheet1 (after macro or formula run)
[TABLE="class: grid, width: 250, align: center"]
<tbody>[TR]
[TD="align: center"][/TD]
[TD="align: center"]A[/TD]
[TD="align: center"]B[/TD]
[/TR]
[TR]
[TD="align: center"]1[/TD]
[TD="align: center"][/TD]
[TD="align: center"][/TD]
[/TR]
[TR]
[TD="align: center"]2[/TD]
[TD="align: center"]7650[/TD]
[TD="align: center"][/TD]
[/TR]
[TR]
[TD="align: center"]3[/TD]
[TD="align: center"]976[/TD]
[TD="align: center"][/TD]
[/TR]
[TR]
[TD="align: center"]4[/TD]
[TD="align: center"]45700[/TD]
[TD="align: center"][/TD]
[/TR]
[TR]
[TD="align: center"]5[/TD]
[TD="align: center"].....[/TD]
[TD="align: center"][/TD]
[/TR]
</tbody>[/TABLE]
Last edited: