Results 1 to 4 of 4

Thread: How many characters can be in a formula

  1. #1
    Seeker Jannis's Avatar
    Join Date
    May 2020
    Posts
    7
    Articles
    0
    Excel Version
    2016

    How many characters can be in a formula



    Register for a FREE account, and/
    or Log in to avoid these ads!

    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. #2
    Administrator AliGW's Avatar
    Join Date
    Nov 2015
    Location
    Ipswich, Suffolk, England
    Posts
    1,470
    Articles
    0
    Excel Version
    Office 365 Subscription
    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.
    Ali
    Enthusiastic self-taught user of MS Excel!

  3. #3
    Super Moderator p45cal's Avatar
    Join Date
    Dec 2012
    Posts
    1,779
    Articles
    0
    Excel Version
    365
    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. #4
    Seeker Jannis's Avatar
    Join Date
    May 2020
    Posts
    7
    Articles
    0
    Excel Version
    2016
    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
  •