How many characters can be in a formula

Jannis

New member
Joined
May 15, 2020
Messages
16
Reaction score
0
Points
0
Excel Version(s)
2016
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
 
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.
 
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)
 
Thank you works perfectly
 
Back
Top