VBA ARRAY formula

chunu

Board Regular
Joined
Jul 5, 2012
Messages
99
Office Version
  1. 2013
Platform
  1. Windows
  2. Mobile
Hi,
i want help in two things to amend the following formula.

I have to drag down every column to fill the formula, it should be filled automatically till the last empty row of column A.
second thing , range (FUNDS!$a$2:$a$50)&FUNDS!$b$2:$b$50,FUNDS!$c$2:$c$50) should be dynamic.
VBA Code:
With Sheets("MONTHLY").Range("b3:m3")       
.FormulaArray = "=SUM(IF(COLUMNS($B2:B$2)&$A3=MONTH(FUNDS!$a$2:$a$50)&FUNDS!$b$2:$b$50,FUNDS!$c$2:$c$50,0))"   
 End With

Note:-This formula or any other approach to get same result.

Thanks
Cell Formulas
RangeFormula
A3:A36A3=FACEBOOK!R:R
B3:M3B3=SUM(IF(COLUMNS($B2:B$2)&$A3=MONTH(FUNDS!$A$2:$A$50)&FUNDS!$B$2:$B$50,FUNDS!$C$2:$C$50,0))
B36:F36,B4:M35B4=SUM(IF(COLUMNS($B$2:B3)&$A4=MONTH(FUNDS!$A$2:$A$50)&FUNDS!$B$2:$B$50,FUNDS!$C$2:$C$50,0))
Press CTRL+SHIFT+ENTER to enter array formulas.
 

Excel Facts

Waterfall charts in Excel?
Office 365 customers have access to Waterfall charts since late 2016. They were added to Excel 2019.

Forum statistics

Threads
1,215,422
Messages
6,124,808
Members
449,191
Latest member
rscraig11

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