LO Calc - Only display results on active row?

Hi All

I have several of Spreadsheets that work with monthly figures. They also have columns with calculations of these figures. (ie Totals, averages etc). At the moment I get a lot of 'DIV by Zero' results and the current total repeating BELOW the current month.

Is there a way to only show calculated results on "active" (ie current) month rows?? Maybe the equivalent of the old 'If - Then' Basic function. (If there is a figure >0 in column B then calculate column C.

Would be interested to know - thanks.

OpSys PClinuxOS, LO 4.1.3.2.

IanW
Pretoria RSA

I have several of Spreadsheets that work with monthly figures. They also have columns with calculations of these figures. (ie Totals, averages etc). At the moment I get a lot of 'DIV by Zero' results ...

Then you must have your formulae wrong.

... and the current total repeating BELOW the current month.

Er, one can only guess what you might be trying to do.

Is there a way to only show calculated results on "active" (ie current) month rows?? Maybe the equivalent of the old 'If - Then' Basic function. (If there is a figure >0 in column B then calculate column C.

Yes: there is the IF() function: is that a close enough equivalent? Just put
=IF(condition;expression-for-true;expression-for-false) .
Your expression for false may well be consecutive double-quote marks, representing the null string.

I trust this helps.

Brian Barker

Thanks Brian

I have managed to get rid of the 'DIV 0' problem but still have a problem with a decreasing total.

My DEC TOTAL formula is 'Current Cell minus the Cell above' and this echos the last result down the whole Spreadsheet. Is there a way round this as well?'

IanW
Pretoria RSA

Yes - but you don't say what the controlling factor might be. There must be some aspect of the list that indicates the point at which you want the totals to stop. Instead of using
=X100-X99
you need something like
=IF(condition;X100-X99;"")
with "condition" being something like A100>0 or A100<>"" - referring to whichever column shows how far you want your values to be calculated.

Brian Barker

Thanks a lot Brian - that did it!!!

My formula is now 'IF(First column cell>0,subtract the two cells,"")'

And that has fixed it 100% - I appreciate the help!!

IanW
Pretoria RSA