Thread: How many characters can be in a formula

1. How many characters can be in a formula

I am trying to enter the following formula,

=IF(\$B\$4='Gate items'!\$F\$3,'Gate items'!\$B\$4:\$B\$10,IF(\$B\$4='Gate items'!\$F\$4,'Gate items'!\$B\$16:\$B\$19,IF(\$B\$4='Gate items'!\$F\$5,'Gate items'!\$B\$28:\$B\$33,IF(\$B\$4='Gate items'!\$F\$6,'Gate items'!\$B\$40:\$B\$45, IF(\$B\$4='Gate items'!\$F\$7,'Gate items'!\$B\$49,"")))))

however when I get to
=IF(\$B\$4='Gate items'!\$F\$3,'Gate items'!\$B\$4:\$B\$10,IF(\$B\$4='Gate items'!\$F\$4,'Gate items'!\$B\$16:\$B\$19,IF(\$B\$4='Gate items'!\$F\$5,'Gate items'!\$B\$28:\$B\$33,IF(\$B\$4='Gate items'!\$F\$6,'Gate items'!\$B\$40:\$B\$45, IF(\$B\$4='Gate items'!\$F\$7,'Gate items'!\$B\$

From this point I cannot enter anymore info as the computer wont let me, I have tried copying and pasting it to no avail

Any thoughts

2. I have formulae ten times longer than that! Have you expanded the formula bar downwards so that you can see what you are doing? Excel 2016 should allow much longer strings.

3. That formula is around 255 characters long - what version of Excel are you using?

Consider the likes of:
=CHOOSE(MATCH(A4,'Gate items'!F3:F7,0),'Gate items'!B4:B10,'Gate items'!B16:B19,'Gate items'!B28:B33,'Gate items'!B40:B45,'Gate items'!B49)

4. Thank you works perfectly

Posting Permissions

• You may not post new threads
• You may not post replies
• You may not post attachments
• You may not edit your posts
•