Dear all,
I need help to arrange my data. I have excel data in two columns (9 models and rain amount) as in the sheet named data and I want each model's rain data to appear in a separate column as in the sheet named format. See attached.
Dear all,
I need help to arrange my data. I have excel data in two columns (9 models and rain amount) as in the sheet named data and I want each model's rain data to appear in a separate column as in the sheet named format. See attached.
hi there. in cell B2, try this array formula:
Formula:
Please Login or Register to view this content.
...confirmed by pressing CTRL+SHIFT+ENTER to activate the array, not just ENTER. You will know the array is active when you see curly braces { } appear around your formula. If you do not CTRL+SHIFT+ENTER you will get an error or a clearly incorrect answer.
do consider VBA too as the above might slow down Excel a lot if your data is massive. if you wish to use VBA, post it in the Excel Programming / VBA / Macros thread so that experts there may help
Thanks, if you have clicked on the * and added our rep.
If you're satisfied with the answer, click Thread Tools above your first post, select "Mark your thread as Solved".
"Contentment is not the fulfillment of what you want, but the realization of what you already have."
Tips & Tutorials I Compiled | How to Get Quick & Good Answers
Hi
Or you can try this normal formula in B2
Formula:
Please Login or Register to view this content.
Regards
Since benishiryo suggested a vba solution I'll have a go at one. Code like this:
Macro uses autofilter to get the different data. It assumes that range B1:K1 contains the relevant labels for your data, you can have more or less labels but they must start at cell B1 and all labels must be found in row 1.![]()
Please Login or Register to view this content.
The order you add the labels in row 1 will give you the order of columns with the filtered result.
Macro starts by deleting all data in sheet "Format" except information in row 1.
Alf
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks