Records

Babio1964

New Member
Joined
May 12, 2015
Messages
8
Hello
I have a rather challenging issue on my hands. This is what I'd like to do. It's even hard to put into words so I'll get right to my example. (If necessary, I can explain why, but I have a good reason...lol)

Cell values --> A:1 "Cat" B:1 "4" This would be generated --->C:1 "Cat1" D:1 "Cat2" E:1 "Cat3" F:1 "Cat4"
Cell values --> A:2 "Dog" B:2 "3" This would be generated --->C:2 "Dog1" D:2 "Dog2" E:2 "Dog3"
Cell values --> A:3 "Pig" B:3 "5" This would be generated --->C:3 "Pig1" D:3 "Pig2" E:3 "Pig3" F:3 "Pig4" G:3 "Pig5"
Cell values --> A:4 "Rabbit" B:4 "1" This would be generated --->C:4 "Rabbit1"

in other words I already have the data in column 1 and 2, but I need to populate the columns to the right with dummy records based on the value in the 2nd column. Obviously the animal data above is an illustration, but I'm looking for a way to do this with other data. For the record, when all's said and done, I'll need to do this for 238,000 records in total, so you can understand why I'm going through the trouble of this rather tedious post.
Long story short, I'll need to get all these records I generated into one column, but first things first.
thank you for any help!!!!!
 

Excel Facts

Repeat Last Command
Pressing F4 adds dollar signs when editing a formula. When not editing, F4 repeats last command.
Here's a very quick way:


Excel 2010
ABCDEFGHIJKLMN
1Cat4Cat1Cat2Cat3Cat4
2Dog3Dog1Dog2Dog3
3Pig5Pig1Pig2Pig3Pig4Pig5
4Rabbit1Rabbit1
Sheet1
Cell Formulas
RangeFormula
C1=IF($B1<(COLUMN()-2),"",$A1&COLUMN()-2)
 
Upvote 0
Here's a very quick way:

Excel 2010
ABCDEFGHIJKLMN
CatCat1Cat2Cat3Cat4
DogDog1Dog2Dog3
PigPig1Pig2Pig3Pig4Pig5
RabbitRabbit1

<colgroup><col style="width: 25pxpx"><col><col><col><col><col><col><col><col><col><col><col><col><col><col></colgroup><thead>
</thead><tbody>
[TD="align: center"]1[/TD]

[TD="align: right"]4[/TD]

[TD="align: center"]2[/TD]

[TD="align: right"]3[/TD]

[TD="align: center"]3[/TD]

[TD="align: right"]5[/TD]

[TD="align: center"]4[/TD]

[TD="align: right"]1[/TD]

</tbody>
Sheet1

[TABLE="width: 85%"]
<tbody>[TR]
[TD]Worksheet Formulas[TABLE="width: 100%"]
<thead>[TR="bgcolor: #DAE7F5"]
[TH="width: 10px"]Cell[/TH]
[TH="align: left"]Formula[/TH]
[/TR]
</thead><tbody>[TR]
[TH="width: 10px, bgcolor: #DAE7F5"]C1[/TH]
[TD="align: left"]=IF($B1<(COLUMN()-2),"",$A1&COLUMN()-2)[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[/TR]
</tbody>[/TABLE]


Wow, not only did you understand my rather clumsy question, you gave me the solution and all within about 15 minutes
thank you!
 
Upvote 0

Forum statistics

Threads
1,223,099
Messages
6,170,114
Members
452,302
Latest member
TaMere

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