I´m working on a formula for a validation list. What I´m doing is:
User chooses the month: May ( for example - the drop down has all 12 months )
Once the month is choosen - there is a second drop down list with the days of that specific month.
I´ve named range all the months
My problem:
The formula below is too big for the validation list formula: J2 is the field where the month is choosen. Is there a way a can reduce to use on the validation list formula or transform it into a macro?!
=IF($J$2=$Y$2;INDIRECT($Y$2);IF($J$2=$Z$2;INDIRECT($Z$2);IF($J$2=$AA$2;INDIRECT($AA$2);IF($J$2=$AB$2;INDIRECT($AB$2);IF($J$2=$AC$2;INDIRECT($J$2);IF($J$2=$AD$2;INDIRECT($J$2);IF($J$2=$AE$2;INDIRECT($J$2);IF($J$2=$AF$2;INDIRECT($J$2);IF($J$2=$AG$2;INDIRECT($J$2);IF($J$2=$AH$2;INDIRECT($J$2);IF($J$2=$AI$2;INDIRECT($J$2);IF($J$2=$AJ$2;INDIRECT($J$2);$IV$4))))))))))))
any help would be gratefull.
thanks
User chooses the month: May ( for example - the drop down has all 12 months )
Once the month is choosen - there is a second drop down list with the days of that specific month.
I´ve named range all the months
My problem:
The formula below is too big for the validation list formula: J2 is the field where the month is choosen. Is there a way a can reduce to use on the validation list formula or transform it into a macro?!
=IF($J$2=$Y$2;INDIRECT($Y$2);IF($J$2=$Z$2;INDIRECT($Z$2);IF($J$2=$AA$2;INDIRECT($AA$2);IF($J$2=$AB$2;INDIRECT($AB$2);IF($J$2=$AC$2;INDIRECT($J$2);IF($J$2=$AD$2;INDIRECT($J$2);IF($J$2=$AE$2;INDIRECT($J$2);IF($J$2=$AF$2;INDIRECT($J$2);IF($J$2=$AG$2;INDIRECT($J$2);IF($J$2=$AH$2;INDIRECT($J$2);IF($J$2=$AI$2;INDIRECT($J$2);IF($J$2=$AJ$2;INDIRECT($J$2);$IV$4))))))))))))
any help would be gratefull.
thanks