mmcompact
asked on
Convert vertical list to table
I posted a similar question here, but I missed some situations and haven't got a satisfactory answer. So here is the question:
search0214.xls
In the file, "data" sheet need to contain lists of data converted from Sheet1-3. Normally in Sheet1-3, every 8 rows should have data for one row in "data" sheet.
For example, first row in "data":
Seller is from 7th cell down from the first cell
Store is the link address of that cell
Recent transaction is the number part of the 4th cell down from the first cell
From is the 5th cell down from the first cell
Related Items Number is the number part of the 8th cell down from the first cell
Related Items Address is the link address of that cell
The solution in my previous post pretty much solve the problem, but here's the question:
Usually it's 8 cells a block, but there's some exceptions. Like A65-71 in Sheet1 only has 7 rows, because it doesn't have a row "¿¿¿¿¿ ¿¿¿¿" like others.
Any ideas to solve this? thanks
search0214.xls
In the file, "data" sheet need to contain lists of data converted from Sheet1-3. Normally in Sheet1-3, every 8 rows should have data for one row in "data" sheet.
For example, first row in "data":
Seller is from 7th cell down from the first cell
Store is the link address of that cell
Recent transaction is the number part of the 4th cell down from the first cell
From is the 5th cell down from the first cell
Related Items Number is the number part of the 8th cell down from the first cell
Related Items Address is the link address of that cell
The solution in my previous post pretty much solve the problem, but here's the question:
Usually it's 8 cells a block, but there's some exceptions. Like A65-71 in Sheet1 only has 7 rows, because it doesn't have a row "¿¿¿¿¿ ¿¿¿¿" like others.
Any ideas to solve this? thanks
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
The macro can be written. That is not the point. You mentioned that you got an unsatisfactory answer. How was that unsatisfactory? And If that is the case why did you select my answer in the previous post?
Sid
Sid
ASKER
it was me didn't go further down enough into the list to find there's some different rows, your answer was good until it hit the odd number, but it's not your answers problem
Ok Fair enough.
So now basically you want a code which can check in code blocks of 8 or 7?
Sid
So now basically you want a code which can check in code blocks of 8 or 7?
Sid
ASKER
they appear randomly in the list, so not quite sure what to do next
Seller is from 7th cell down from the first cell
Store is the link address of that cell
Recent transaction is the number part of the 4th cell down from the first cell
From is the 5th cell down from the first cell
Related Items Number is the number part of the 8th cell down from the first cell
Related Items Address is the link address of that cell
Ok. Instead of using a loop, I can write a code to read the block of texts but since I don't understand Chinese, I am unable to figure out the text and hence the position of the texts.
Sid
have you try my sample?
ASKER
wchh,
it didn't work
it didn't work
you need to run macro 'table'...
ASKER
wchh,
I see it now. It works, thank you
I see it now. It works, thank you
What do you mean?
Sid