I'm sure that title makes this sound far more complicated than it is (at least, I hope so).
To give some background, I have a spreadsheet that lists data chronologically. Out of that data, I have a formula that utilizes just the data from the current month, for example:
=SUM(G39:H55)-SUM(X39:X55)
covers the month of September. However, when I update the data in this spreadsheet using my current macro, old dates are removed and new dates are added. Is there a way that I can search the date column (D) for the row containing the first time a date in Sept is entered and assign that to a variable that I can then substitute into the formula for the G and X cells? Something along the following lines:
TMONTH = (formula to determine first row in col D containing a date in Sept [not necesarily the 1st])
Range("K60") = "SUM(G" & TMONTH & ":H55)-SUM(X" & TMONTH & ":X55)"
Any help would be appreciated. The people on the forums have been so helpful when I've hit a roadblock in the past!
To give some background, I have a spreadsheet that lists data chronologically. Out of that data, I have a formula that utilizes just the data from the current month, for example:
=SUM(G39:H55)-SUM(X39:X55)
covers the month of September. However, when I update the data in this spreadsheet using my current macro, old dates are removed and new dates are added. Is there a way that I can search the date column (D) for the row containing the first time a date in Sept is entered and assign that to a variable that I can then substitute into the formula for the G and X cells? Something along the following lines:
TMONTH = (formula to determine first row in col D containing a date in Sept [not necesarily the 1st])
Range("K60") = "SUM(G" & TMONTH & ":H55)-SUM(X" & TMONTH & ":X55)"
Any help would be appreciated. The people on the forums have been so helpful when I've hit a roadblock in the past!