Caporegime
- Joined
- 13 May 2003
- Posts
- 34,559
- Location
- Warwickshire
Hi all
I have loads of spreadsheets with monthly data in, as below. I want to sum the year-to-date figures depending on the user entering the relevant month - 1 for Jan, 2 for Feb, etc. so that if the user entered "2", it would add January and February figures for each column to give me YTD data. I will have columns at the end of the data that have year-to-date totals.
I know about sum and choose, but I can't get it to work unless the cells are next to each other. For example, =SUM(CHOOSE,Month,B10:B20) would add the quantities sales and costs rather than just the quantities for each month.
Hopefully I've explained myself well enough. Many thanks, this will hopefully save me manually entering the monthly YTD figures for all my spreadsheets!
I have loads of spreadsheets with monthly data in, as below. I want to sum the year-to-date figures depending on the user entering the relevant month - 1 for Jan, 2 for Feb, etc. so that if the user entered "2", it would add January and February figures for each column to give me YTD data. I will have columns at the end of the data that have year-to-date totals.
I know about sum and choose, but I can't get it to work unless the cells are next to each other. For example, =SUM(CHOOSE,Month,B10:B20) would add the quantities sales and costs rather than just the quantities for each month.

Hopefully I've explained myself well enough. Many thanks, this will hopefully save me manually entering the monthly YTD figures for all my spreadsheets!