Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

change EXCEL emailed spreadsheet

Status
Not open for further replies.

Kim296

MIS
Aug 24, 2012
98
US
I have received an excel spreadsheet that someone converted over from another program. It contains information for one person in multiple columns and rows. I would like to convert this to show only one persons information in one row, so that I can sort and filter the information. Does anyone know of a way to formulate a new sheet to pull from multiple rows and columns to make the information flow with one person on each row?

Example:
One person's information is as follows:
A1 information
A2 more info
A3 more info
A4 more infor
B1 same person more info
B2 same person more info
B3 same person more info
B4 same person more info
C1 same person more info
C2 same person more info
C3 same person more info
C4 samer person more info

A5 new person info
A6 same new person info
A7 same new person info
A8 same new person info
B5 same new person info
and so on, so on, so on.

Each person takes up 4 rows and multiple columns. The data base is 12017 rows long and 7 colums wide. I would like to convert the spreadsheet to show each of the 4 rows into 1 row for each person. Can anyone help with a solution?

Thanks,
Kim
 
My first question for these types of issues is:
Is this a one-time need?​
Or will this need to be done often?​

If one-time, then you can do the majority of the work in Excel itself and get the data as you need it and THEN bring it into a VFP data table.

But if you need to do this often, then you might want to think about doing the work in VFP by using Excel Automation.

Let us know so that we can better assist you.

Good Luck,
JRB-Bldr
 
Thank you both for your reply.

This is a one time thing (I hope). I was able to find a solution to my problem.

On a new spreadsheet, I inserted the following formula for each column needed:

=OFFSET(Sheet1!$A$1,(ROW()-1)*4,0)

When pulling the formula down, it grabbed each cell that was needed per column header.

Thanks for all of your feedback.
Kim
 
Does that mean you have sorted yourself out?

Regards

Griff
Keep [Smile]ing

There are 10 kinds of people in the world, those who understand binary and those who don't.

I'm trying to cut down on the use of shrieks (exclamation marks), I'm told they are not good for you.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top