tallgeese980
Board Regular
- Joined
- Nov 19, 2009
- Messages
- 80
Hi all i have created a formula that i believe can be refined and shorted because it has become a huge mess. The formula below is used to pull data based on a specific date.
=IF(BS$7>=$D$9,IF(AND(($D$9<="12/31/2012"+0),($D$9>"12/31/2011"+0)),'Input Data'!$H$85*HLOOKUP('Input Data'!$C$3,'Allocation %s'!$C$3:$L$23,5,0),IF(AND(($D$9<="12/31/2013"+0),($D$9>"12/31/2012"+0)),'Input Data'!$H$91*HLOOKUP('Input Data'!$C$3,'Allocation %s'!$C$3:$L$23,5,0),IF(AND(($D$9<="12/31/2014"+0),($D$9>"12/31/2013"+0)),'Input Data'!$H$97*HLOOKUP('Input Data'!$C$3,'Allocation %s'!$C$3:$L$23,5,0),IF(AND(($D$9<="12/31/2015"+0),($D$9>"12/31/2014"+0)),'Input Data'!$H$103*HLOOKUP('Input Data'!$C$3,'Allocation %s'!$C$3:$L$23,5,0),IF(AND(($D$9<="12/31/2016"+0),($D$9>"12/31/2015"+0)),'Input Data'!$H$109*HLOOKUP('Input Data'!$C$3,'Allocation %s'!$C$3:$L$23,5,0),IF(AND(($D$9<="12/31/2017"+0),($D$9>"12/31/2016"+0)),'Input Data'!$H$109*HLOOKUP('Input Data'!$C$3,'Allocation %s'!$C$3:$L$23,5,0),0)))))),0)
=IF(BS$7>=$D$9,IF(AND(($D$9<="12/31/2012"+0),($D$9>"12/31/2011"+0)),'Input Data'!$H$85*HLOOKUP('Input Data'!$C$3,'Allocation %s'!$C$3:$L$23,5,0),IF(AND(($D$9<="12/31/2013"+0),($D$9>"12/31/2012"+0)),'Input Data'!$H$91*HLOOKUP('Input Data'!$C$3,'Allocation %s'!$C$3:$L$23,5,0),IF(AND(($D$9<="12/31/2014"+0),($D$9>"12/31/2013"+0)),'Input Data'!$H$97*HLOOKUP('Input Data'!$C$3,'Allocation %s'!$C$3:$L$23,5,0),IF(AND(($D$9<="12/31/2015"+0),($D$9>"12/31/2014"+0)),'Input Data'!$H$103*HLOOKUP('Input Data'!$C$3,'Allocation %s'!$C$3:$L$23,5,0),IF(AND(($D$9<="12/31/2016"+0),($D$9>"12/31/2015"+0)),'Input Data'!$H$109*HLOOKUP('Input Data'!$C$3,'Allocation %s'!$C$3:$L$23,5,0),IF(AND(($D$9<="12/31/2017"+0),($D$9>"12/31/2016"+0)),'Input Data'!$H$109*HLOOKUP('Input Data'!$C$3,'Allocation %s'!$C$3:$L$23,5,0),0)))))),0)