Creating Frequencies

Nicrutio

New Member
Joined
Apr 25, 2018
Messages
3
Hi,

I'm new here and hopeful this posting follows all guidelines.

I tried to search for this but was unsure what I was looking for.

I have spreadsheet that is thousands of rows long. Every 7 rows contains: a total; and 6 rows of data that make up that total.

I would like to add a column and create some formula that easily calculates what the frequency is for all those rows for every seven rows (see below).

[TABLE="width: 220"]
<colgroup><col span="2"></colgroup><tbody>[TR]
[TD="align: right"]6,870[/TD]
[TD="align: right"]0.00[/TD]
[/TR]
[TR]
[TD="align: right"]2120[/TD]
[TD="align: right"]0.309[/TD]
[/TR]
[TR]
[TD="align: right"]1540[/TD]
[TD="align: right"]0.224[/TD]
[/TR]
[TR]
[TD="align: right"]1130[/TD]
[TD="align: right"]0.164[/TD]
[/TR]
[TR]
[TD="align: right"]860[/TD]
[TD="align: right"]0.125[/TD]
[/TR]
[TR]
[TD="align: right"]1110[/TD]
[TD="align: right"]0.162[/TD]
[/TR]
[TR]
[TD="align: right"]110[/TD]
[TD="align: right"]0.016[/TD]
[/TR]
[TR]
[TD] [/TD]
[TD="align: right"][/TD]
[/TR]
[TR]
[TD="align: right"]31,980[/TD]
[TD="align: right"]0.00[/TD]
[/TR]
[TR]
[TD="align: right"]11660[/TD]
[TD="align: right"]0.365[/TD]
[/TR]
[TR]
[TD="align: right"]7580[/TD]
[TD="align: right"]0.237[/TD]
[/TR]
[TR]
[TD="align: right"]5030[/TD]
[TD="align: right"]0.157[/TD]
[/TR]
[TR]
[TD="align: right"]3130[/TD]
[TD="align: right"]0.098[/TD]
[/TR]
[TR]
[TD="align: right"]3830[/TD]
[TD="align: right"]0.120[/TD]
[/TR]
[TR]
[TD="align: right"]750[/TD]
[TD="align: right"]0.023[/TD]
[/TR]
[TR]
[TD] [/TD]
[TD="align: right"][/TD]
[/TR]
[TR]
[TD="align: right"]25,520[/TD]
[TD="align: right"]0.000[/TD]
[/TR]
[TR]
[TD="align: right"]7750[/TD]
[TD="align: right"]0.304[/TD]
[/TR]
[TR]
[TD="align: right"]6010[/TD]
[TD="align: right"]0.236[/TD]
[/TR]
[TR]
[TD="align: right"]4250[/TD]
[TD="align: right"]0.167[/TD]
[/TR]
[TR]
[TD="align: right"]2790[/TD]
[TD="align: right"]0.109[/TD]
[/TR]
[TR]
[TD="align: right"]3850[/TD]
[TD="align: right"]0.151[/TD]
[/TR]
[TR]
[TD="align: right"]870[/TD]
[TD="align: right"]0.034[/TD]
[/TR]
</tbody>[/TABLE]

Thanks for any help.
 

Excel Facts

How can you automate Excel?
Press Alt+F11 from Windows Excel to open the Visual Basic for Applications (VBA) editor.

Book1
AB
16,8701.000
221200.309
315400.224
411300.164
58600.125
611100.162
71100.016
831,9801.000
9116600.365
1075800.237
1150300.157
1231300.098
1338300.120
147500.023
1525,5201.000
1677500.304
1760100.236
1842500.167
1927900.109
2038500.151
218700.034
Sheet1
Cell Formulas
RangeFormula
B1=$A1/OFFSET($A1,-MOD(ROW($A1)-ROW($A$1),7),0)


If you're starting on a row other than 1 then you'll need to adjust as appropriate. Note that the total rows show as 1 and not 0; formula could be adjusted on that but it would make it longer.

WBD
 
Upvote 0

Forum statistics

Threads
1,224,823
Messages
6,181,175
Members
453,021
Latest member
Justyna P

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