Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author TobiasBg

    (@tobiasbg)

    Hi,

    thanks for your question and sorry for the trouble!

    Both of these problems are caused by the division by 0 (which is not possible mathematically, as you know).
    This then returns that error message that you see, and that again causes the sorting to break, because the error message is a string and not a number.

    So, the fix is easy: Just replace the formula in the cell with the error message with a number (probably 0) for now, until Danny Wellbeck has at least 1 “Chances created”.

    Regards,
    Tobias

    Thread Starter zubair04

    (@zubair04)

    Hi Tobias,

    Thanks for your comment. I’ve changed that cell to 0 (and removed the formula). If there’s any possibility of placing in an “If Error” statement, then do let me now.

    I will now sit patiently and wait for Danny Wellbeck to create a chance.

    Plugin Author TobiasBg

    (@tobiasbg)

    Hi,

    well, you could use an if-conditional in the formula, although that’s not totally nice:

    =if( D26=0, 0, L26/if( D26=0,1,0 ) )

    (For more about why this ugly formula is necessary for this, please see http://wordpress.org/support/topic/tablepress-11-and-new-math-functions?replies=12#post-4637645 )

    Best wishes,
    Tobias

    P.S.: In case you haven’t, please rate TablePress here in the plugin directory. Thanks!

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Sorting colums with formulas’ is closed to new replies.