pls help me....i am new to excel..this may be quite easy.

krishna334

Active Member
Joined
May 22, 2009
Messages
391
i am new to excel....pls help me...i am stuck up with a small problem...:(

suppose there is a component..say a connector which consists of 3 sub-parts too say A,B,C.

so if i need to use 2 nos of connectors for a machine...then we need to have
2 nos of the subparts A,B and C too along with the connector.
So if in one worksheet i give the quantity of connector to be 2 nos
then automatically the connector + the subparts A,B,C should
come in a new worksheet in consecutive rows with qty 2 nos in the corresponding adjacent column....
.....pls tell me if its possible with some built in functions without
any VBA coding.
 

Excel Facts

Format cells as currency
Select range and press Ctrl+Shift+4 to format cells as currency. (Shift 4 is the $ sign).
Hi and welcome to the board,

could you post some sample data with the expected results for better understanding the problem
 
Upvote 0
MY PROBLEM IS LIKE
<table x:str="" style="border-collapse: collapse; width: 283pt;" width="377" border="0" cellpadding="0" cellspacing="0"><col style="width: 85pt;" width="113"><col style="width: 127pt;" width="169"><col style="width: 71pt;" width="95"><tr style="height: 46.5pt;" height="62"> <td class="xl28" style="height: 46.5pt; width: 85pt;" width="113" height="62">Z704</td> <td class="xl26" style="border-left: medium none; width: 127pt;" width="169">DT06-4S</td> <td class="xl27" style="border-left: medium none; width: 71pt;" x:num="" width="95">4</td> </tr></table>the above is just a row in my excel sheet...these are 3 datas in adjacent columns.

Z704 just a code for connector named DT06-4S and i need 4 ( quantity ) of them.

But DT06-4S has W4S and DT04-4P-EP13 to be added along with it that too with quantity 4 and this should come in a new excel workbook as below:


<table x:str="" style="border-collapse: collapse; width: 326pt;" width="434" border="0" cellpadding="0" cellspacing="0"><col style="width: 73pt;" width="97"> <col style="width: 174pt;" width="232"> <col style="width: 79pt;" width="105"> <tbody><tr style="height: 46.5pt;" height="62"> <td class="xl29" style="height: 46.5pt; width: 73pt;" width="97" height="62">Z704</td> <td class="xl26" style="border-left: medium none; width: 174pt;" width="232">DT06-4S</td> <td class="xl28" style="border-left: medium none; width: 79pt;" x:num="" width="105">4</td> </tr> <tr style="height: 46.5pt;" height="62"> <td class="xl29" style="height: 46.5pt;" height="62">Z704</td> <td class="xl26" style="border-top: medium none; border-left: medium none; width: 174pt;" width="232">W4S</td> <td class="xl28" style="border-top: medium none; border-left: medium none;" x:num="">4</td> </tr> <tr style="height: 46.5pt;" height="62"> <td class="xl29" style="height: 46.5pt;" height="62">Z704</td> <td class="xl27" style="border-top: medium none; border-left: medium none; width: 174pt;" width="232">DT04-4P-EP13</td> <td class="xl28" style="border-top: medium none; border-left: medium none;" x:num="">4</td> </tr> </tbody></table> i dont know how to do that,,,,pls help:(:(:(:(
 
Upvote 0
First set up a master table of Parts along with their sub parts, like

<TABLE style="WIDTH: 382pt; BORDER-COLLAPSE: collapse" cellSpacing=0 cellPadding=0 width=509 border=0 x:str><COLGROUP><COL style="WIDTH: 71pt; mso-width-source: userset; mso-width-alt: 4053" width=95><COL style="WIDTH: 98pt; mso-width-source: userset; mso-width-alt: 5546" width=130><COL style="WIDTH: 104pt; mso-width-source: userset; mso-width-alt: 5930" width=139><COL style="WIDTH: 109pt; mso-width-source: userset; mso-width-alt: 6186" width=145><TBODY><TR style="HEIGHT: 14.25pt" height=19><TD class=xl24 style="BORDER-RIGHT: windowtext 0.5pt solid; BORDER-TOP: windowtext 0.5pt solid; BORDER-LEFT: windowtext 0.5pt solid; WIDTH: 71pt; BORDER-BOTTOM: windowtext 0.5pt solid; HEIGHT: 14.25pt; BACKGROUND-COLOR: white" width=95 height=19>
Part
</TD><TD class=xl24 style="BORDER-RIGHT: windowtext 0.5pt solid; BORDER-TOP: windowtext 0.5pt solid; BORDER-LEFT: windowtext; WIDTH: 98pt; BORDER-BOTTOM: windowtext 0.5pt solid; BACKGROUND-COLOR: white" width=130>
Sub part1
</TD><TD class=xl25 style="BORDER-RIGHT: windowtext 0.5pt solid; BORDER-TOP: windowtext 0.5pt solid; BORDER-LEFT: windowtext; WIDTH: 104pt; BORDER-BOTTOM: windowtext 0.5pt solid; BACKGROUND-COLOR: transparent" width=139>
Sub Part 2
</TD><TD class=xl25 style="BORDER-RIGHT: windowtext 0.5pt solid; BORDER-TOP: windowtext 0.5pt solid; BORDER-LEFT: windowtext; WIDTH: 109pt; BORDER-BOTTOM: windowtext 0.5pt solid; BACKGROUND-COLOR: transparent" width=145>
Sub Part 3
</TD></TR><TR style="HEIGHT: 14.25pt" height=19><TD class=xl24 style="BORDER-RIGHT: windowtext 0.5pt solid; BORDER-TOP: windowtext; BORDER-LEFT: windowtext 0.5pt solid; BORDER-BOTTOM: windowtext 0.5pt solid; HEIGHT: 14.25pt; BACKGROUND-COLOR: white" height=19>
Z704
</TD><TD class=xl24 style="BORDER-RIGHT: windowtext 0.5pt solid; BORDER-TOP: windowtext; BORDER-LEFT: windowtext; BORDER-BOTTOM: windowtext 0.5pt solid; BACKGROUND-COLOR: white">
DT06-4S
</TD><TD class=xl24 style="BORDER-RIGHT: windowtext 0.5pt solid; BORDER-TOP: windowtext; BORDER-LEFT: windowtext; BORDER-BOTTOM: windowtext 0.5pt solid; BACKGROUND-COLOR: white">
W4S
</TD><TD class=xl24 style="BORDER-RIGHT: windowtext 0.5pt solid; BORDER-TOP: windowtext; BORDER-LEFT: windowtext; BORDER-BOTTOM: windowtext 0.5pt solid; BACKGROUND-COLOR: white">
DT04-4P-EP13
</TD></TR><TR style="HEIGHT: 14.25pt" height=19><TD class=xl24 style="BORDER-RIGHT: windowtext 0.5pt solid; BORDER-TOP: windowtext; BORDER-LEFT: windowtext 0.5pt solid; BORDER-BOTTOM: windowtext 0.5pt solid; HEIGHT: 14.25pt; BACKGROUND-COLOR: white" height=19>
Z705
</TD><TD class=xl24 style="BORDER-RIGHT: windowtext 0.5pt solid; BORDER-TOP: windowtext; BORDER-LEFT: windowtext; BORDER-BOTTOM: windowtext 0.5pt solid; BACKGROUND-COLOR: white">
DT04-4S
</TD><TD class=xl24 style="BORDER-RIGHT: windowtext 0.5pt solid; BORDER-TOP: windowtext; BORDER-LEFT: windowtext; BORDER-BOTTOM: windowtext 0.5pt solid; BACKGROUND-COLOR: white">
W4Z
</TD><TD class=xl24 style="BORDER-RIGHT: windowtext 0.5pt solid; BORDER-TOP: windowtext; BORDER-LEFT: windowtext; BORDER-BOTTOM: windowtext 0.5pt solid; BACKGROUND-COLOR: white">
DT04-4P-EP15
</TD></TR><TR style="HEIGHT: 14.25pt" height=19><TD class=xl24 style="BORDER-RIGHT: windowtext 0.5pt solid; BORDER-TOP: windowtext; BORDER-LEFT: windowtext 0.5pt solid; BORDER-BOTTOM: windowtext 0.5pt solid; HEIGHT: 14.25pt; BACKGROUND-COLOR: white" height=19>
Z706
</TD><TD class=xl24 style="BORDER-RIGHT: windowtext 0.5pt solid; BORDER-TOP: windowtext; BORDER-LEFT: windowtext; BORDER-BOTTOM: windowtext 0.5pt solid; BACKGROUND-COLOR: white">
DT07-4S
</TD><TD class=xl24 style="BORDER-RIGHT: windowtext 0.5pt solid; BORDER-TOP: windowtext; BORDER-LEFT: windowtext; BORDER-BOTTOM: windowtext 0.5pt solid; BACKGROUND-COLOR: white">
W4A
</TD><TD class=xl24 style="BORDER-RIGHT: windowtext 0.5pt solid; BORDER-TOP: windowtext; BORDER-LEFT: windowtext; BORDER-BOTTOM: windowtext 0.5pt solid; BACKGROUND-COLOR: white">
DT04-4P-EP17
</TD></TR></TBODY></TABLE>


and try Vlookup /Index Function

B1

=VLOOKUP(A1,$E$1:$H$10,2,0)

C1

=VLOOKUP(A1,$E$1:$H$10,3,0)

D1

=VLOOKUP(A1,$E$1:$H$10,4,0)


where A1 houses the part number, E1:H10 houses the master data
 
Upvote 0

Forum statistics

Threads
1,215,836
Messages
6,127,179
Members
449,368
Latest member
JayHo

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