I have a table that has 14 tabs. One for each of the months and 2 summary pages. On each of the months tabs I have data in cells G9:G18. On one of the summary pages I am trying to pull said data into it from the 12 months tabs, but only want the previous months and the current months data. In cell A1 of the summary tab I have the today function in place (=TODAY()) I am using cell A1 as a reference cell. I am trying to use embedded if statements to step through each month to determine if today's date is less then the last day of each month to determine what data is pulled. Below is an example of the formula that I am trying to use. The Date in cell A1 is 2/10/2016. I have tried this formula as it is shown, without the double quotes around the date, with single quotes around the date, used the DATE(,,) function, tried it with an & in front of the date and this formula always seems to return the information from the January tab. Please help
=IF(A1<="1/31/2016",January!G9,(IF(A1<="2/29/2016",February!G9,(IF(A1<="3/31/2016",March!G9,(IF(A1<="4/30/2016",April!G9,(IF(A1<="5/31/2016",May!G9,(IF(A1<="6/30/2016",June!G9,(IF(A1<="7/31/2016",July!G9,(IF(A1<="8/31/2016",August!G9,(IF(A1<="9/30/2016",September!G9,(IF(A1<="10/30/2016",October!G9,(IF(A1<="11/31/2016",November!G9,(IF(A1<=12/31/2016,December!G9,"")))))))))))))))))))))))
=IF(A1<="1/31/2016",January!G9,(IF(A1<="2/29/2016",February!G9,(IF(A1<="3/31/2016",March!G9,(IF(A1<="4/30/2016",April!G9,(IF(A1<="5/31/2016",May!G9,(IF(A1<="6/30/2016",June!G9,(IF(A1<="7/31/2016",July!G9,(IF(A1<="8/31/2016",August!G9,(IF(A1<="9/30/2016",September!G9,(IF(A1<="10/30/2016",October!G9,(IF(A1<="11/31/2016",November!G9,(IF(A1<=12/31/2016,December!G9,"")))))))))))))))))))))))