Resend my activation email : Register : Log in 
BCF: Bike Chat Forums


Help with excel (open office)

Reply to topic
Bike Chat Forums Index -> The Geek Zone
View previous topic : View next topic  
Author Message

c_dug
Super Spammer



Joined: 04 Sep 2007
Karma :

PostPosted: 20:43 - 12 Aug 2010    Post subject: Help with excel (open office) Reply with quote

Hi guys.

I'm doing an excel sheet at work. At the moment I have a row of cells dividing the two cells beside it and giving the answer e.g.

=B4/C4

and then conditional formatting turning the background of any figure over 15 red and any below green.

This is all good so far.

However for divisions including zero it is leaving #DIV/0! in the box, which then gets coloured green too.

How do I make is so that boxes containing #DIV/0! remain white?

If I get an answer before 9 tonight it will be awsome Thumbs Up If not then whenever is still good.

Thanks

c_dug
____________________
I am a bellend, I am a man of constant sorrow, I am a gummy bear, I am a rock.


Last edited by c_dug on 13:19 - 15 Aug 2010; edited 1 time in total
 Back to top
View user's profile Send private message Send e-mail You must be logged in to rate posts

ms51ves3
Super Spammer



Joined: 08 Jun 2007
Karma :

PostPosted: 20:57 - 12 Aug 2010    Post subject: Reply with quote

I'm confused. Upload the spreadsheet so I can have a gander.
 Back to top
View user's profile Send private message You must be logged in to rate posts

benvanwell
Nitrous Nuisance



Joined: 10 Apr 2007
Karma :

PostPosted: 20:57 - 12 Aug 2010    Post subject: Reply with quote

Surely you can just have an if statement to check if C4=0 first:

=if(c4=0, display whatever and format white, b4/c4 and conditional fomatting).
I'm sure you get the gist.

I would do it properly but I'm now trying to get my head around where everything is in 2010...
____________________
Currently Riding: Triumph Sprint ST 1050
Previous: GSF600s, GS500, BMW F45, CG125
 Back to top
View user's profile Send private message Send e-mail You must be logged in to rate posts

Frost
World Chat Champion



Joined: 26 May 2004
Karma :

PostPosted: 21:55 - 12 Aug 2010    Post subject: Reply with quote

https://www.timeatlas.com/5_minute_tips/general/preventing_excel_divide_by_0_error
 Back to top
View user's profile Send private message Send e-mail You must be logged in to rate posts

c_dug
Super Spammer



Joined: 04 Sep 2007
Karma :

PostPosted: 22:21 - 12 Aug 2010    Post subject: Reply with quote

Can't upload the spreadsheet, contains data the company probably deems as sensitive.

I may do another one as an example if I can be bothered, that's a little too much like work for me to be doing at home though!

I'm not sure if it will make much difference but what we have at work technically isn't excel its "open office calc" it's more like excel from windows '98. All the same formulas work though, in fact, I haven't used '98 in quite a while but I wouldn't be surprised if this actually was excel from '98 just re-branded.

How do I upload a spreadsheet? I have nothing better to do I may as well throw one together, it wont take 10 minutes.
____________________
I am a bellend, I am a man of constant sorrow, I am a gummy bear, I am a rock.
 Back to top
View user's profile Send private message Send e-mail You must be logged in to rate posts

herulach
World Chat Champion



Joined: 19 Apr 2010
Karma :

PostPosted: 22:22 - 12 Aug 2010    Post subject: Reply with quote

amend your formula to IF(ISERR(B4/C4),"-",B4/C4)

That will stick a dash in the cell if you are getting an error. Then you can amend the conditional format to show that up seperately.
____________________
YBR 125>FZS600
 Back to top
View user's profile Send private message You must be logged in to rate posts

c_dug
Super Spammer



Joined: 04 Sep 2007
Karma :

PostPosted: 22:32 - 12 Aug 2010    Post subject: Reply with quote

Sweet, thanks.

Tried making the formula but it turns out the latest excel is smart enough not to read the #DIV/0! error as less than 0.

thanks everybody
____________________
I am a bellend, I am a man of constant sorrow, I am a gummy bear, I am a rock.
 Back to top
View user's profile Send private message Send e-mail You must be logged in to rate posts

c_dug
Super Spammer



Joined: 04 Sep 2007
Karma :

PostPosted: 13:31 - 15 Aug 2010    Post subject: Reply with quote

Hi guys,

Still having no luck with this, the open office forumulas are different to the excel ones.

Openoffice is giving me an if statement prompt think which shows:

=IF(Test;then_value;otherwise_value)

Not sure what that is trying to get me to do exactly, however it does provide an IF statement creator from which I made:

=IF(B6/C6=0;"none";B6/C6)

Im still getting the #DIV/0! messege so I'm guessing I've done some of the formula wrong, assuming openoffice swaps commas for semicolons but keeps the rest of excel's rules, can you see any mistakes in my forumla?

Any other suggestions?

Thanks
____________________
I am a bellend, I am a man of constant sorrow, I am a gummy bear, I am a rock.
 Back to top
View user's profile Send private message Send e-mail You must be logged in to rate posts

bazza
World Chat Champion



Joined: 27 Aug 2004
Karma :

PostPosted: 17:34 - 15 Aug 2010    Post subject: Reply with quote

Code:
=IF(ISERROR(B6/C6=0);"none";B6/C6)



That'll be £5.00 to https://www.helpforheroes.org.uk/donations.html please.
____________________
"That's it. You people have stood in my way long enough. I'm going to clown college."
'98 Ducati 750SS, '08 Suzuki GSX650F ©2004-2014, Bazza's Harmless Banter
 Back to top
View user's profile Send private message You must be logged in to rate posts

herulach
World Chat Champion



Joined: 19 Apr 2010
Karma :

PostPosted: 07:38 - 17 Aug 2010    Post subject: Reply with quote

If you're doing it that way, then you need to check if C6 = 0. B6/C6 will never = 0 so you're always putting the division there.
____________________
YBR 125>FZS600
 Back to top
View user's profile Send private message You must be logged in to rate posts

c_dug
Super Spammer



Joined: 04 Sep 2007
Karma :

PostPosted: 17:21 - 17 Aug 2010    Post subject: Reply with quote

Couldn't get the formulas to work so in the end I used 0.00000001 instead of 0, that way it rounds down to zero anyway.
____________________
I am a bellend, I am a man of constant sorrow, I am a gummy bear, I am a rock.
 Back to top
View user's profile Send private message Send e-mail You must be logged in to rate posts
Old Thread Alert!

The last post was made 16 years, 26 days ago. Instead of replying here, would creating a new thread be more useful?
  Display posts from previous:   
This page may contain affiliate links, which means we may earn a small commission if a visitor clicks through and makes a purchase. By clicking on an affiliate link, you accept that third-party cookies will be set.

Post new topic   Reply to topic    Bike Chat Forums Index -> The Geek Zone All times are GMT + 1 Hour
Page 1 of 1

 
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You cannot download files in this forum

Read the Terms of Use! - Powered by phpBB © phpBB Group
 

Debug Mode: ON - Server: birks (www) - Page Generation Time: 0.08 Sec - Server Load: 0.75 - MySQL Queries: 13 - Page Size: 68.7 Kb