That's exactly how I was able to get it done. THanks for the suggestion.
Main Topics
Browse All TopicsPlease refer to the "Interview.xls" Excel file I have attached.
It contains two Worksheets - Input and Output where I have included a sample data.
The input Worksheet consists of interview data that I need to format and convert into what appears on the output Worksheet.
I need to format only the data between columns F and R. Here is what I am looking to accomplish:
For each row in "input", I need to come up with 3 rows in "output", one each for the tuple (land1, bio1, cost1), (land2, bio2, cost2), (land3, bio3, cost3).
Based on the CHOICE, i.e. the value on column R in "input", I need to insert a 1 or a 0 in the column CHOICE in "output".
Since the CHOICE in "input" is 1, I need to insert a 1 next to the tuple (land1, bio1, cost1) and a 0 next to the tuple (land2, bio2, cost2), (land3, bio3, cost3).
And finally, I want to add 1, 2 and 3 for ALT which will repeat.
Been a long day and I can't seem to wrap my head around this. Is there an easier way of doing this?
This Question has been solved and asker verified All Experts Exchange premium technology solutions are available to subscription members.
Experts Exchange has been collecting answers to technology questions since 1996…3 million and counting! If you have a question, chances are we already have your answer.
If you can't find the exact answer you're looking for, ask our exclusive community of 50,000 experts. You’ll get a personalized answer from a trusted professional.
Thousands of free tech tips, tricks, how-to’s and tutorials are available in our peer reviewed articles section. See for yourself how smart our experts are, no login required.
Access the answers to your technology questions today.
30-day free trial. Register in 60 seconds.
Members of the expert community talk about why the experience at Experts Exchange is different than what you will find anywhere else.

Try it out and discover for yourself.
30-day free trial. Register in 60 seconds.
Join the community of experts here and help other tech pros by answering question in your area of expertise. You can earn FREE access to all Experts Exchange's premium features and resources.
Business Accounts
Answer for Membership
by: billprewPosted on 2009-09-17 at 19:59:08ID: 25362680
How would you use a macro in this scenario? Will you have lots of data in the input sheet and want to build a new output sheet. Or adding to it over time?
I think this can actually be done without macros, just proper cell referencing, would that be viable?
~bp