Hi OssieMac and Jeeped,
I originally had the dateif function in column C and the unit # in column D. However, inserting rows does not copy over the formula. That's not a big deal if I was owning this, but need to dummy proof it for others.
In addition, I do have other data in the worksheet.
I'll try named ranges for each column next. But, I still wonder if there is a means to work with a data range within the named range like the Index function. I was not able to implement the Index function successfully.
update: I named each range but got stump with the syntax when trying to write the sumif formula.
Named ranges: NumUnits, Date1, Date2 (to simplify I used Today() for Date 2)
=SUMIF(NumUnits,DATEDIF(Date1,TODAY(),"y")<4)
The formula above did not work. I also tried ctrl+shift to make it an array formula. I think the issue is syntax.
I think the solution is to pre-define the size of the table re-organize worksheet 1 such that the dynamic table is situated below the rest of the data. For example, the table starts in row 45 to row 60; and rows 61 on are blank. Then, in Worksheet 2 use
the Indirect function to copy the data from row 45 to a row 2000 (assuming that the size of the table after new additions and removals will not exceed a certain limit).
Doing so will enable me to apply formulas to the mirrored data without worrying about the affect of adding and removing rows to the original data table. What do you guys think? ... not the most elegant but is simple and band-aids the problem. :)
Update: I solved it: {=SUM(IF(DATEDIF(Date1,TODAY(),"y")<5,NumUnits))}
The syntax of the SumIF prevented the manipulation of data within the range. So, I thought, what if I just used a if and sum the results. BTW this must be entered as an array.