Convert Data in rows to be expressed in a column

EvansB2

Board Regular
Joined
Nov 25, 2008
Messages
245
Office Version
  1. 365
Platform
  1. Windows
Hi there,

I would like to speed up a process that I'm carrying out manually. With respect to the table pasted, cell B6 to B10 represents the data in row. However, I have to sum and then divide each cell by 2, as can be seen by the formula in cells B6:B10.

The sample given is a snapshot and I have multiple data spreading across many columns and thought it may be possible to have a formula in B6 that allows me to drag down automatically as I currently do it manually!

Any assistance would be gratefully received.

Regards

Ben



OFFSET_Vertical to Horizontal.xlsx
ABCDEF
1ANNUAL AMOUNTSYR1YR2YR3YR4YR5
2500300400600900
3
4
5
6Year 1400
7Year 2350
8Year 3500
9Year 4750
10Year 5450
Sheet4 (2)
Cell Formulas
RangeFormula
B6B6=(B2+C2)/2
B7B7=(C2+D2)/2
B8B8=(D2+E2)/2
B9B9=(E2+F2)/2
B10B10=(F2+H2)/2
 

Excel Facts

How to calculate loan payments in Excel?
Use the PMT function: =PMT(5%/12,60,-25000) is for a $25,000 loan, 5% annual interest, 60 month loan.
Hello,

one way in B6

=(OFFSET($B$2,0,ROW()-6)+OFFSET($B$2,0,ROW()-5))/2

and copy down as far as required
 
Upvote 0
Another option
+Fluff New.xlsm
ABCDEFG
1ANNUAL AMOUNTSYR1YR2YR3YR4YR5
2500300400600900
3
4
5
6Year 1400
7Year 2350
8Year 3500
9Year 4750
10Year 5450
Sheet2
Cell Formulas
RangeFormula
B6:B10B6=SUM(INDEX($B$2:$G$2,SEQUENCE(2,,ROWS(B$2:B2))))/2
 
Upvote 0
Another option
+Fluff New.xlsm
ABCDEFG
1ANNUAL AMOUNTSYR1YR2YR3YR4YR5
2500300400600900
3
4
5
6Year 1400
7Year 2350
8Year 3500
9Year 4750
10Year 5450
Sheet2
Cell Formulas
RangeFormula
B6:B10B6=SUM(INDEX($B$2:$G$2,SEQUENCE(2,,ROWS(B$2:B2))))/2

Thanks for this. I'll give it a go and I'm sure will save a lot of manual inputs!

Regards

Ben
 
Upvote 0
Glad we could help & thanks for the feedback.

One thing to be aware of, is that OFFSET is a volatile function & will re-calculate whenever you change any cell. Depending on the amount of data you have, this could cause your workbook to slow down.
 
Upvote 0

Forum statistics

Threads
1,214,981
Messages
6,122,565
Members
449,089
Latest member
Motoracer88

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