hi
i'm working on excel 2003
i have a sheet with 4 columns (from column b) , and 2000-3000 rows
i want to put all the data in column a in this way : b1 in a1 , c1 in a2 , d1 in a3 , e1 in a4 , b2 in a5 , c2 in a6 etc ...
any idea ?
hi
i'm working on excel 2003
i have a sheet with 4 columns (from column b) , and 2000-3000 rows
i want to put all the data in column a in this way : b1 in a1 , c1 in a2 , d1 in a3 , e1 in a4 , b2 in a5 , c2 in a6 etc ...
any idea ?
use copy->paste special->transpose
rgds
johnjohns
Sorry, this should work
rgds![]()
Please Login or Register to view this content.
johnjohns
FWIW - you can also do this with formulae if you prefer:
Not saying you "should" just that you "could"![]()
Please Login or Register to view this content.
My Recommended Reading:
Volatility
Sumproduct & Arrays
Pivot Intro
Email from XL - VBA & Outlook VBA
Function Dictionary & Function Translations
Dynamic Named Ranges
Got it DonkeyOte! I should have used 'could' as there is still a mistake in my answer. My apologies, I was in a hurry (although that is not an excuse). Hope this may work
rgds![]()
Please Login or Register to view this content.
johnjohns
Thanks
its work great !!!
hi
i have more question : i dont know how many rows/columns i have.
how can i do this with something like ctrl+end ?
can i put this in the code / formula ?
many thanks
eran
replace the second line with this and try
rgds![]()
Please Login or Register to view this content.
johnjohns
thank you very much
is there a way also in the formula (with the "index") ?
In principle, yes:
however it would lead to a large precedent range (B:IV) which would not be ideal.![]()
Please Login or Register to view this content.
Should you opt to use a formula then you should calculate the COUNTA* once only and reference the result thereafter.
* if you have interspersed blanks (B1:IV1) then COUNTA would not suffice in terms of determining column requirement and you would use a LOOKUP or MATCH construct instead.
hi
i didnt understood what you mean : counta*
eran
You will note that within the function detailed in my previous post COUNTA is listed twice.
It follows that in this form the double calculation will be repeated for every cell that contains the formula.
Wherever possible try to minimise repetitive calculations - specifically where the result is constant for each calculation.
Here the COUNTA result will be the same for every row that uses the function (the result never changes given the precedent range is the same for each calculation)
What we would suggest is that you calculate the COUNTA separately and all subsequent calculations then refer to that single result
(in this instance given magnitude of precedent range it might make sense to use a new sheet to hold this value)
Then revise the formulae on Sheet1 to use this result rather than repeatedly recalculate it:![]()
Please Login or Register to view this content.
Again, to be clear I am not saying you *should* be using formulae for this.![]()
Please Login or Register to view this content.
If your data set is large then a VBA approach is the more sensible (where viable).
Thank you
i will chack it
thank tou again![]()
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks