about to create a complex excel file...

zampaman

New Member
Joined
May 24, 2011
Messages
1
Hi guys,

sorry for posting here before contributing, but I can't figure it out myself. I came across this website thx to http://www.youtube.com/user/ExcelIsFun

Anyhow. The project I need to make goes as followed:

Global idea.
I need to build up a userlist. The userlist is randomly generated, though it keeps certain things into account.

Example 1:
The list should be 1000 users long, each user has an age. I want to determine that age with a random between an agegroup. For example:

Chris 18
Alfred 26
...

The agegroups will be 18-25, 26-35, 36-45, 46-55, 56-80

What I want is to build this list, according to a parameter which I choose first: I divide the 1k usernames upfront, (ie 30% 18-25, 20% 26-35, ...)

Would it be possible for me to get one table where I enter the percentages and the rest is automatically calculated?

second problem:

I need to fill the properties of the people:
for example:
haircolor: red, blond, brown
hairstyle: bold, short hair, long hair,
There is a catch, bold people can't have a haircolor, bold people can't be 18-25, etc... (not saying this statement is true, it's an example.)

How would you guys suggest I apporach this? I have tried countinga and according to a corresponding vanlue of the percentages I've chose first, I provide a randbetween 18-25 for that field... or is that ??? I'm stuck and don't know where or how I should proceed.

Thank you all in advance!

Best regards,

Tim
 

Excel Facts

How can you automate Excel?
Press Alt+F11 from Windows Excel to open the Visual Basic for Applications (VBA) editor.

Forum statistics

Threads
1,224,507
Messages
6,179,181
Members
452,893
Latest member
denay

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