Formula that has increments and can be transposed.

Ow321

New Member
Joined
Jun 14, 2018
Messages
2
Hi everybody,

I am trying to work out the median across a row E.g. C1:F1. I need to drag this calculation to the right and in doing so, keep the column the same but have the row skip 7,

So on a new sheet A1 contains =Median('Sheet1'!C1:F1), B1 contains =Median('Sheet1'!C8:F8) etc.

It would be great if it is possible to do this while maintaining the ability to drag the calculation down to change the row.

so A2 contains =Median('Sheet1'!C2:F2) etc.

Not sure if this is possible?

Thank you


EDIT:
A simplified version of my workbook here:
https://drive.google.com/file/d/1LEC...ew?usp=sharing
 
Last edited by a moderator:

Excel Facts

Repeat Last Command
Pressing F4 adds dollar signs when editing a formula. When not editing, F4 repeats last command.

DRSteele

Well-known Member
Joined
Mar 31, 2015
Messages
2,493
Office Version
  1. 365
Platform
  1. Windows
Welcome to the forum.

With this sample data I used INDIRECT to increment the rows into columns. The data must start in ColC and go to ColH, start in Row1 then seven more rows, then 7...etc. You will have to properly adjust the syntax for the sheet name inside INDIRECT.


Book1
BCDEFGH
1data10.158430.4602890.9442110.4781550.8698410.36003
2
3
4
5
6
7
8data20.3906060.8823330.6481110.875880.9414970.556156
9
10
11
12
13
14
15data30.9044230.0097520.5412330.5621820.6210260.677017
16
17
18proof0.4692220.7619960.591604
19expanding indirect0.4692220.7619960.591604
Sheet8
Cell Formulas
RangeFormula
C18=MEDIAN(C1:H1)
C19=MEDIAN(INDIRECT("c"&(COLUMNS(C$13:$C13)-1)*7+1&":h"&(COLUMNS(C$13:$C13)-1)*7+1))
D18=MEDIAN(C8:H8)
D19=MEDIAN(INDIRECT("c"&(COLUMNS($C$13:D13)-1)*7+1&":h"&(COLUMNS($C$13:D13)-1)*7+1))
E18=MEDIAN(C15:H15)
E19=MEDIAN(INDIRECT("c"&(COLUMNS($C$13:E13)-1)*7+1&":h"&(COLUMNS($C$13:E13)-1)*7+1))
 
Last edited:

Ow321

New Member
Joined
Jun 14, 2018
Messages
2
With a bit of adapting this worked perfectly for me, 4 hours saved! Thank you.

Please, could I ask you to explain what the formula is actually doing in plain words? I'd like to be able to understand it.
 
Master Excel Bundle

Excel contains over 450 functions, with more added every year. That’s a huge number, so where should you start? Right here with this bundle.

Forum statistics

Threads
1,167,298
Messages
5,853,136
Members
431,549
Latest member
NnAa

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
Top