Use a cell with specific text as reference to create a table from data in other cells

Scorsese

New Member
Joined
Dec 22, 2016
Messages
3
Hello all, first post over here, hope I can get to explain myself,

Im exporting data from word to excel and I got info in a mostly an arranged layout.Now Im trying to get a table with the info I need from that data arranged, and I am sure that I can use a cell "B2,B7"(PCS) with specific text as a reference to get to the data I want I just dont know what formula to use so I can use that cell as a reference and star Picking up the data from each set in a table.

Excel 2012
ABCDEFG
3MXROTOR 0
450 PCS$5.62MX8414.90.3000 0.00$281.11
5163KG NT
6163KG GR
722 NERS
8MX ROTOR
93 PCS$5.79MX8414.90.3000 0.00$17.37
1011KG NT
1111KG GR
122SKIDS
13MXSTATOR CU
1416 PCS$174.64MX8414.90.3000 0.00$2,794.28
15816 KG NT
16816 KG GR
171 BOX
18MXSTATOR CU
1924 PCS$187.82MX8414.90.3000 0.00$4,507.67
201,043.00 KG NT
211,043.00 KG GR
22MX'ROTOR50
23160 PCS$6.93MX8414.90.3000 0.00$1,108.01
24566 KG NT
25566 KG GR

<tbody>
</tbody>
testrule30.2
And what Im trying to get is the following:

Excel 2012
ABCDEFG
2ROTOR 50163163281.11MX8414.90.3000 0.00
3 ROTOR 3111117.37MX8414.90.3000 0.00
4STATOR168168162794.28MX8414.90.3000 0.00
5STATOR 24104310434507.67MX8414.90.3000 0.00
6'ROTOR 1605665661108.01MX8414.90.3000 0.00

<colgroup><col style="width: 25pxpx"><col><col><col><col><col><col><col></colgroup><thead>
</thead><tbody>
</tbody>
Sheet1

Im really lost, I dont know what formulas I could use to do that. any help is really appreciated







 

Excel Facts

Format cells as currency
Select range and press Ctrl+Shift+4 to format cells as currency. (Shift 4 is the $ sign).
We can use formulas for this, but the data looks pretty uniform to me. My first thought is to copy paste each column over individually after using the filter button to remove blanks / separate whatever data you need. (ie select only 'KG NT' and copy the amounts in column A.)

If you only have to do this once, it'll probably be faster
 
Last edited:
Upvote 0
We can use formulas for this, but the data looks pretty uniform to me. My first thought is to copy paste each column over individually after using the filter button to remove blanks / separate whatever data you need. (ie select only 'KG NT' and copy the amounts in column A.)

If you only have to do this once, it'll probably be faster

Thanks for your quick reply WarfritLive, but actually I am trying to replicate this with similar data multiple times in the future, right now I want to write down the formulas that would arrange the data and then a macro with them.
 
Upvote 0
Okay, here's what I have. I hate helper columns but I've spent too much time trying to work around them.
This should work for you.

2mo6yw6.png


Formulas:
A3: =IF(F3="MX",A2+1,A2)
A4: =IF(F4="MX",A3+1,A3)
a5: =IF(F5="MX",A4+1,A4)
etc

B3: =IF(A3=A2,B2+1,1)
B4: =IF(A4=A3,B3+1,1)
B5: =IF(A5=A4,B4+1,1)
etc

C3: =CONCATENATE(A3,".",B3)
C4: =CONCATENATE(A4,".",B4)
C5: =CONCATENATE(A5,".",B5)
etc

E29: =VLOOKUP(ROW(A1),$A$3:$J$25,7,FALSE)
F29:=SUMPRODUCT(--(A3:A25'=ROW(A1)),--(B3:B25'=2),(D3:D25))
G29: =SUMPRODUCT(--(A3:A25'=ROW(A1)),--(B3:B25'=3),(D3:D25))
H29: =SUMPRODUCT(--(A3:A25'=ROW(A1)),--(B3:B25'=4),(D3:D25))
I29: =VLOOKUP(CONCATENATE(ROW(A1),".2"),$C$3:$J$25,8,FALSE)
J29: =VLOOKUP(CONCATENATE(ROW(A1),".2"),$C$3:$J$25,6,FALSE)
K29: =VLOOKUP(CONCATENATE(ROW(A1),".2"),$C$3:$J$25,7,FALSE)
Autofill down as needed
 
Upvote 0

Forum statistics

Threads
1,214,665
Messages
6,120,804
Members
448,990
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