# How to make this neater?

#### excelos

##### Active Member
Hello,

I have in Q118, this formula:
[]=IFERROR(\$Y\$18*F111,0)+IFERROR(\$X\$18*G111,0)+IFERROR(\$W\$18*H111,0)+IFERROR(\$V\$18*I111,0)+IFERROR(\$U\$18*J111,0)+IFERROR(\$T\$18*K111,0)+IFERROR(\$S\$18*L111,0)+IFERROR(\$R\$18*M111,0)+IFERROR(\$Q\$18*N111,0)+IFERROR(\$P\$18*O111,0)+IFERROR(\$O\$18*P111,0)+IFERROR(\$N\$18*Q111,0)][

I want to drag it to the left, so that it will go up to A118. Obviously, this gives #REF errors as the cells references go outside the sheet.
Is there a way to make this neater?

Thanks!

### Excel Facts

Will the fill handle fill 1, 2, 3?
Yes! Type 1 in a cell. Hold down Ctrl while you drag the fill handle.

#### Special-K99

##### Well-known Member
What's the COMPLETE formula ?
That's not a complete formula

If you have < > characters in the formula you may need to add spaces around them when posting to this forum

##### MrExcel MVP
[…]

Is there a way to make this neater?

[…]

Try...

=SUMPRODUCT(N(OFFSET(\$N\$18:\$Y\$18,0,COLUMNS(\$N\$18:\$Y\$18)-1,1,-(COLUMN(\$N\$18:\$Y\$18)-COLUMN(\$N\$18)+1))),F111:Q111)

#### excelos

##### Active Member
Try...

=SUMPRODUCT(N(OFFSET(\$N\$18:\$Y\$18,0,COLUMNS(\$N\$18:\$Y\$18)-1,1,-(COLUMN(\$N\$18:\$Y\$18)-COLUMN(\$N\$18)+1))),F111:Q111)

Can you explain me please bit by bit?

#### excelos

##### Active Member
OFFSET still produces #REF if the formula refers to outside of the whole table cells? eg left to A1 etc?

##### MrExcel MVP
OFFSET still produces #REF if the formula refers to outside of the whole table cells? eg left to A1 etc?

How do you mean? The formula expects equally sized ranges, no more.

Replies
18
Views
288
Replies
10
Views
156
Replies
6
Views
105
Replies
3
Views
69
Replies
3
Views
522

1,129,457
Messages
5,636,380
Members
416,917
Latest member
koto1

### 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.

### Which adblocker are you using?

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

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