Help Needed: Pattern Formula.

mwfazal

New Member
Joined
Jun 10, 2015
Messages
3
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
Joined
Dec 28, 2010
Messages
284
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?
 
Upvote 0

steve the fish

Well-known Member
Joined
Oct 20, 2009
Messages
8,886
Office Version
  1. 365
Platform
  1. Windows
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)
 
Upvote 0

mwfazal

New Member
Joined
Jun 10, 2015
Messages
3
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
 
Upvote 0

Forum statistics

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

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