ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Discussion (Misc queries) (https://www.excelbanter.com/excel-discussion-misc-queries/)
-   -   How to drag and autofill a non consecutive range of cells? (https://www.excelbanter.com/excel-discussion-misc-queries/76302-how-drag-autofill-non-consecutive-range-cells.html)

PH

How to drag and autofill a non consecutive range of cells?
 
In column D, I have a data point every fifteen minutes for every day of the
month.
In column A, I have the date and time.
I would like to sum the data in Column D for each day of the month.

I would like to end up with two columns- one with the date (feb 1-28) and
the other with the total for each day. There are 96 data points every day-
how can I do a simple drag and fill next to the column of 1-28 that gives me
the total for each day?

If I put in the following formula, =Sum(D1:D95), that gives me the total for
Feb 1st. If I put in the next row down, =sum(D97:D191), that gives me the
total for Feb 2nd. Is there some way to add 96 to the previous range so I can
just drag down and fill the total column for each day?



How to drag and autofill a non consecutive range of cells?
 
Hi

You could try using Data Pivot Table - which is designed to summarise data.
Have a look here for an intro:
http://peltiertech.com/Excel/Pivots/pivottables.htm

Andy

"PH" wrote in message
...
In column D, I have a data point every fifteen minutes for every day of
the
month.
In column A, I have the date and time.
I would like to sum the data in Column D for each day of the month.

I would like to end up with two columns- one with the date (feb 1-28) and
the other with the total for each day. There are 96 data points every
day-
how can I do a simple drag and fill next to the column of 1-28 that gives
me
the total for each day?

If I put in the following formula, =Sum(D1:D95), that gives me the total
for
Feb 1st. If I put in the next row down, =sum(D97:D191), that gives me the
total for Feb 2nd. Is there some way to add 96 to the previous range so I
can
just drag down and fill the total column for each day?





All times are GMT +1. The time now is 08:11 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com