Data Validation IF Statement (Too Many Characters)

craig2525

New Member
Joined
Oct 30, 2018
Messages
44
Office Version
  1. 2016
Platform
  1. Windows
Hello all,
My if statement for a drop down list has too many characters. How would I reduce this to make it work? =IF(O3=$AA$11,$AA$13:$AA$27,IF(O3=$AB$11,$AB$13:$AB$27,IF(O3=$AC$11,$AC$13:$AC$27,IF(O3=$AD$11,$AD$13:$AD$27,IF(O3=$AE$11,$AE$13:$AE$27,IF(O3=$AF$11,$AF$13:$AF$27,IF(O3=$AG$11,$AG$13:$AG$27,IF(O3-7=$AI$11,$AI$13:$AI$27,IF(O3-7=$AJ$11,$AJ$13:$AJ$27,IF(O3-7=$AK$11,$AK$13:$AK$27,IF(O3-7=$AL$11,$AL$13:$AL$27,IF(O3-7=$AM$11,$AM$13:$AM$27,IF(O3-7=$AN$11,$AN$13:$AN$27,IF(O3-7=$AO$11,$AO$13:$AO$27,IF(O3+7=$AQ$11,$AQ$13:$AQ$27,IF(O3+7=$AR$11,$AR$13:$AR$27,IF(O3+7=$AS$11,$AS$13:$AS$27,IF(O3+7=$AT$11,$AT$13:$AT$27,IF(O3+7=$AU$11,$AU$13:$AU$27,IF(O3+7=$AV$11,$AV$13:$AV$27,IF(O3+7=$AW$11,$AW$13:$AW$27)))))))))))))))))))))
It is actually 3 different lists combined.

O3 is a date to set up which list to use. Previous week, current week and next week (each set of names is one of those weeks). Depending on the week, I need to use one of the lists.

Formula.png
 

Attachments

  • Formula.png
    Formula.png
    21.7 KB · Views: 5

Excel Facts

Remove leading & trailing spaces
Save as CSV to remove all leading and trailing spaces. It is faster than using TRIM().
With Excel 2016 in your hand, at best I can think of is using Named ranges for target cells. This can significantly shorten number of characters used in a formula.

Though not so sure it will work for you or not. You have to try and test it for yourselves.
 
Upvote 0

Forum statistics

Threads
1,215,161
Messages
6,123,363
Members
449,097
Latest member
thnirmitha

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top