newbiebio78
New Member
- Joined
- Oct 3, 2017
- Messages
- 5
Hello, I am new to this forum AND new to coding in Excel.
I need to split data from one row into multiple rows based on the number in that row AND simultaneously assign a new value to another column based on another cell. Here's what I mean:
AD young
2 10
2 7
2 8
2 10
1 5
2 5
I want to split the AD column such that each AD (adult female) has her own separate column and is assigned half the number of young. It would look like this:
AD young
1 5
1 5
1 3.5
1 3.5
1 4
1 4
1 5
1 5
1 5
1 2.5
1 2.5
PLEASE HELP ME! I can't find suitable code that deals with this specific problem, nor do I know enough about VBA to alter codes written to split text in cells separated by delimiters (which is not my issue).
I need to split data from one row into multiple rows based on the number in that row AND simultaneously assign a new value to another column based on another cell. Here's what I mean:
AD young
2 10
2 7
2 8
2 10
1 5
2 5
I want to split the AD column such that each AD (adult female) has her own separate column and is assigned half the number of young. It would look like this:
AD young
1 5
1 5
1 3.5
1 3.5
1 4
1 4
1 5
1 5
1 5
1 2.5
1 2.5
PLEASE HELP ME! I can't find suitable code that deals with this specific problem, nor do I know enough about VBA to alter codes written to split text in cells separated by delimiters (which is not my issue).