+ Reply to Thread
Results 1 to 2 of 2

Thread: formula too long error

  1. #1
    Registered User
    Join Date
    09-26-2011
    Location
    Zurich, Switzerland
    MS-Off Ver
    Excel 2003
    Posts
    1

    Question formula too long error

    Hi,

    Can someone please help me either simplify this formula or work around the excel formula error ?

    My formula is aimed running through the positions (ranks) athletes occupy at the end of each of their 34 yearly contests and present a summary such as: "3 P1, 2 P2, 1 P5" which means the contestant occupied 3 number 1 spots, 2 number 2 spots and 1 number 5 spot during the season.

    =LEFT(IF(SUM(CHOOSE($C52:$AJ52,1,0,0,0,0,0,0,0,0,0)),SUM(CHOOSE($C52:$AJ52,1,0,0,0,0,0,0,0,0,0))&" P1, ","")&
    IF(SUM(CHOOSE($C52:$AJ52,0,1,0,0,0,0,0,0,0,0)),SUM(CHOOSE($C52:$AJ52,0,1,0,0,0,0,0,0,0,0))&" P2, ","")&
    IF(SUM(CHOOSE($C52:$AJ52,0,0,1,0,0,0,0,0,0,0)),SUM(CHOOSE($C52:$AJ52,0,0,1,0,0,0,0,0,0,0))&" P3, ","")&
    IF(SUM(CHOOSE($C52:$AJ52,0,0,0,1,0,0,0,0,0,0)),SUM(CHOOSE($C52:$AJ52,0,0,0,1,0,0,0,0,0,0))&" P4, ","")&
    IF(SUM(CHOOSE($C52:$AJ52,0,0,0,0,1,0,0,0,0,0)),SUM(CHOOSE($C52:$AJ52,0,0,0,0,1,0,0,0,0,0))&" P5, ","")&
    IF(SUM(CHOOSE($C52:$AJ52,0,0,0,0,0,1,0,0,0,0)),SUM(CHOOSE($C52:$AJ52,0,0,0,0,0,1,0,0,0,0))&" P6, ","")&
    IF(SUM(CHOOSE($C52:$AJ52,0,0,0,0,0,0,1,0,0,0)),SUM(CHOOSE($C52:$AJ52,0,0,0,0,0,0,1,0,0,0))&" P7, ","")&
    IF(SUM(CHOOSE($C52:$AJ52,0,0,0,0,0,0,0,1,0,0)),SUM(CHOOSE($C52:$AJ52,0,0,0,0,0,0,0,1,0,0))&" P8, ","")&
    IF(SUM(CHOOSE($C52:$AJ52,0,0,0,0,0,0,0,0,1,0)),SUM(CHOOSE($C52:$AJ52,0,0,0,0,0,0,0,0,1,0))&" P9, ","")&
    IF(SUM(CHOOSE($C52:$AJ52,0,0,0,0,0,0,0,0,0,1)),SUM(CHOOSE($C52:$AJ52,0,0,0,0,0,0,0,0,0,1))&" P10, ",""),LEN(
    IF(SUM(CHOOSE($C52:$AJ52,1,0,0,0,0,0,0,0,0,0)),SUM(CHOOSE($C52:$AJ52,1,0,0,0,0,0,0,0,0,0))&" P1, ","")&
    IF(SUM(CHOOSE($C52:$AJ52,0,1,0,0,0,0,0,0,0,0)),SUM(CHOOSE($C52:$AJ52,0,1,0,0,0,0,0,0,0,0))&" P2, ","")&
    IF(SUM(CHOOSE($C52:$AJ52,0,0,1,0,0,0,0,0,0,0)),SUM(CHOOSE($C52:$AJ52,0,0,1,0,0,0,0,0,0,0))&" P3, ","")&
    IF(SUM(CHOOSE($C52:$AJ52,0,0,0,1,0,0,0,0,0,0)),SUM(CHOOSE($C52:$AJ52,0,0,0,1,0,0,0,0,0,0))&" P4, ","")&
    IF(SUM(CHOOSE($C52:$AJ52,0,0,0,0,1,0,0,0,0,0)),SUM(CHOOSE($C52:$AJ52,0,0,0,0,1,0,0,0,0,0))&" P5, ","")&
    IF(SUM(CHOOSE($C52:$AJ52,0,0,0,0,0,1,0,0,0,0)),SUM(CHOOSE($C52:$AJ52,0,0,0,0,0,1,0,0,0,0))&" P6, ","")&
    IF(SUM(CHOOSE($C52:$AJ52,0,0,0,0,0,0,1,0,0,0)),SUM(CHOOSE($C52:$AJ52,0,0,0,0,0,0,1,0,0,0))&" P7, ","")&
    IF(SUM(CHOOSE($C52:$AJ52,0,0,0,0,0,0,0,1,0,0)),SUM(CHOOSE($C52:$AJ52,0,0,0,0,0,0,0,1,0,0))&" P8, ","")&
    IF(SUM(CHOOSE($C52:$AJ52,0,0,0,0,0,0,0,0,1,0)),SUM(CHOOSE($C52:$AJ52,0,0,0,0,0,0,0,0,1,0))&" P9, ","")&
    IF(SUM(CHOOSE($C52:$AJ52,0,0,0,0,0,0,0,0,0,1)),SUM(CHOOSE($C52:$AJ52,0,0,0,0,0,0,0,0,0,1))&" P10, ",""))-2)

    Thanks in advance !

  2. #2
    Forum Moderator zbor's Avatar
    Join Date
    02-10-2009
    Location
    Croatia
    MS-Off Ver
    Excel 2007
    Posts
    6,223

    Re: formula too long error

    can you upload example workbook and write what you want to get?

    So some inputs and desired output.
    "Relax. What is mind? No matter. What is matter? Never mind!"

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

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

Search Engine Friendly URLs by vBSEO 3.2.0