# Help Needed: Pattern Formula.

#### mwfazal

##### New Member
Hey Everyone.
i definitely need some help. I am making an excel sheet and I have put in a formula =SUMIFS('23.03.15'!BH\$4:BH\$135,'23.03.15'!\$C\$4:\$C\$135,\$C10,'23.03.15'!BG\$4:BG\$135,\$D10)..

Now the thing is When I drag it horizontally BH\$4:BH\$135 changes to BI\$4:BI\$135. What I want it is that I want it to change to BM\$4:BH\$135 and so on leaving 5 columns in between.. and the same with the BG\$4:BG\$135? Can Someone help please?

### Excel Facts

Get help while writing formula
Click the italics "fx" icon to the left of the formula bar to open the Functions Arguments dialog. Help is displayed for each argument.

#### Shrikant

##### Active Member
SUMIFS by syntax require a one-dimensional array and All the arrays in the formula must be of similar size.
So I guess what you want will not be delivered by SUMIFS.

However, Excel has surprised me frequently. So i will wait for MVPs comment here.

When you drag horizontally, do you want to jump to every 5th column or do you want to include 5 columns?

#### mwfazal

##### New Member
I should not be too hopeful then.. :/

#### steve the fish

##### Well-known Member
This sort of thing will produce an array from R4C60:R135C60 and will increment by 5 columns.

INDEX(4:135,,((COLUMNS(\$A\$1:A1)-1)*5)+60)

#### Shrikant

##### Active Member
this will be possible.
Steve the fish has already given the tip.

Let me try at my end another formula

#### mwfazal

##### New Member
This sort of thing will produce an array from R4C60:R135C60 and will increment by 5 columns.

INDEX(4:135,,((COLUMNS(\$A\$1:A1)-1)*5)+60)

I always had a problem understanding this formula. Can you explain this please? Moreover where exactly to put this formula

Replies
30
Views
1K
Replies
8
Views
157
Replies
2
Views
101
Replies
2
Views
187
Replies
0
Views
195

1,195,848
Messages
6,011,946
Members
441,656
Latest member
oo3

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

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