macro adjust to a certain row, specified by a date

mphansen

New Member
Joined
Jun 23, 2002
Messages
45
Is it possible to have a macro adjust to a certain row, specified by a date ?

Optimally, I'm looking for a macro that will look for the current month in Column A (i.e. September) and insert the formula:

IF(OR(ISERROR(MATCH(B1,'[Performance.xls]Manager'!$C:$C,0)),B1=""),"",INDEX('[Performance.xls]Manager'!$A:$G,MATCH(B1,'[Performance.xls]Manager'!$C:$C,0),6))< The formula pulls data from a static file that is updated monthly, therefore, I'll insert a CopyPasteValue macro so that the data is not lost with each new month >

Is there code that knows where to insert the formula according to date ? Guidance appreciated - Mark
ReturnData.xls
ABCDEFG
1$1:$301AgnosAggerBisonBerkDomDirk
2Name
3Feb-020.67%0.68%0.52%-1.43%-4.26%1.90%
4Mar-020.20%0.19%1.25%3.71%2.12%-0.80%
5Apr-020.83%0.85%1.76%3.27%1.29%5.80%
6May-021.01%0.91%1.21%0.21%-2.17%1.90%
7Jun-020.41%0.41%-1.00%-1.64%-9.44%6.20%
8Jul-021.07%1.07%-0.25%-4.27%-4.19%4.30%
9Aug-020.51%0.52%1.60%-4.37%6.05%1.10%
10Sep-02Manager'!$C:$C,0)),B1=]0.13%
11Oct-02
12Nov-02
13Dec-02
Sheet1
 

Excel Facts

Using Function Arguments with nested formulas
If writing INDEX in Func. Arguments, type MATCH(. Use the mouse to click inside MATCH in the formula bar. Dialog switches to MATCH.

Forum statistics

Threads
1,144,312
Messages
5,723,653
Members
422,508
Latest member
Lordkit1

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