I have a spreadsheet with 15000 rows in one column. I want to create a script to colour code each cell descending down the spreadsheet. What I need is:
- First 10 cells in RED
- Next 5 cells in BLUE
- Next 5 cells in GREEN
- Repeat this for all cells descending down from A1 to A1500...
Any quick pointers? They had an admin girl doing this manually for three days :/
-----EDIT
Thanks guys for the responses, extremely helpful!
But - It turns out I have misunderstood the full scale of what is. Quite complex now that I realise what is needed.
What we have is: four workbooks in one spreadsheet (tier 1a, tier 1b, tier 1c, sheet1)
The script needs to:
- Cut the first 10 cells in tier 1 and paste into sheet1 column A;
- Cut the first 5 cells in tier 2 and paste into sheet1 column A;
Cut the first 5 cells in tier 3 and paste into sheet1 column A;
Repeat in descending order for all cells in each workbook - so the end result will have 10-5-5 10-5-5 10-5-5 values etc. in sheet1 column A
Any help would be greatly appreciated :) otherwise manual it is.. please save my sanity