Automatically update formulae and add to new row

bigjim324

New Member
Joined
Jan 25, 2023
Messages
2
Office Version
  1. 2016
Platform
  1. Windows
Howdy all,

I would like to find a way to have my excel sheet automatically produce a new row of formulae with a new file reference to reflect the new month. i.e. I would like the below formula to be replicated in the cell below and have the name for the document referenced changed from 'June 22' to 'July 22', preferably at the beginning of a new month.

=IF($B$1=1,ABS(SUMPRODUCT(-('Report June 22.xlsx'!$C$2:$C$200=$A$10),'Report June 22.xlsx'!$S$2:$S$200)/SUMPRODUCT(-('Report June 22.xslx'!$C$2:$C$200=$A$10))),IFERROR((VLOOKUP($A$10,'Report June 22.xlsx'!$A$1:$U$1800,19,FALSE)),0))

Thanks!
Jimbo
 

Excel Facts

Which lookup functions find a value equal or greater than the lookup value?
MATCH uses -1 to find larger value (lookup table must be sorted ZA). XLOOKUP uses 1 to find values greater and does not need to be sorted.

Forum statistics

Threads
1,224,824
Messages
6,181,187
Members
453,020
Latest member
Mohamed Magdi Tawfiq Emam

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