How am I able to make excel range from min to max year

Jacko1996

New Member
Joined
May 29, 2015
Messages
21
So i have sets of data ranging from a certain year. What I want to do is run a yearly column from min to the max, with the sum of the rainfall next to that.

It looks like below
1893000000000002
1894439.6106.8537.1000000000
189500000000000191.7
1896234.9725.289.629.53
1907145.8306.3337.934.6115.3176.727.528.715.335.176.8120.7

<colgroup><col span="8"><col><col><col span="3"></colgroup><tbody>
</tbody>

However I want it to look like this

1893SUM OF RAINFALL FOR THAT YEAR
1894SUM OF RAINFALL FOR THAT YEAR
1895SUM OF RAINFALL FOR THAT YEAR
1896SUM OF RAINFALL FOR THAT YEAR
1907SUM OF RAINFALL FOR THAT YEAR

<tbody>
</tbody>

Thanks
 

Excel Facts

Select all contiguous cells
Pressing Ctrl+* (asterisk) will select the "current region" - all contiguous cells in all directions.
Just insert a new column after the year for "total" and enter something like:

=sum(c2:c100) and fill down
 
Upvote 0
No i know how to do that, how do i make the year row start at min year of the data and end at the max year?
 
Upvote 0
Like this?
Copy formula down as needed.
Excel Workbook
ABCDEFGHIJKLMN
1Yearjanfebmaraprmayjunjulaugsepoctnovdec
21893000000000002
31894439.6106.8537.1000000000
4189500000000000191.7
51896234.9725.289.629.53
61907145.8306.3337.934.6115.3176.727.528.715.335.176.8120.7
7
8YearTotal
918932
1018941083.5
111895191.7
1218961082.2
1319071420.7
14
Sheet
 
Upvote 0
Yeah that would work however the range must be dynamic to update to different data sets placed in so the min and max years will change.
 
Upvote 0
Maybe something like this.
Copy the formulas down as far as you think year range for years needs to be.

NOTE: the formula in A11 for years is an array formula and must be entered with
Excel Workbook
ABCDEFGHIJKLMN
1Yearjanfebmaraprmayjunjulaugsepoctnovdec
21893000000000002
31894439.6106.8537.1000000000
4189500000000000191.7
51896234.9725.289.629.53
61907145.8306.3337.934.6115.3176.727.528.715.335.176.8120.7
7
8Min=1894
9Max=1896
10YearTotal
1118941083.5
121895191.7
1318961082.2
14
15
16
CTRL-SHIFT-ENTER.
 
Upvote 0

Similar threads

Forum statistics

Threads
1,214,957
Messages
6,122,466
Members
449,086
Latest member
kwindels

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top