Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3
Default IF, and, or statements combined

I have this formula where both rows is zero, but I do not want the error
Div#/0 or #value instead I want to display a zero.
I have:
IF(a7=0,0,100*(a7/a8))
IF(a8=0,0,100*(a7/a8))
Now I want to combine both to use if a7 or a8 are equal to zero, then give a
zero. otherwise give me the value ( which in some cases is a positive value
or percent)
any ideas???
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 5,934
Default IF, and, or statements combined

The second one will do it all...

=IF(A8=0,0,100*A7/A8)

--
Rick (MVP - Excel)


"lite" wrote in message ...
I have this formula where both rows is zero, but I do not want the error
Div#/0 or #value instead I want to display a zero.
I have:
IF(a7=0,0,100*(a7/a8))
IF(a8=0,0,100*(a7/a8))
Now I want to combine both to use if a7 or a8 are equal to zero, then give a
zero. otherwise give me the value ( which in some cases is a positive value
or percent)
any ideas???

Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Can the last two if statements be combined together? Brad Excel Programming 5 April 1st 09 08:22 PM
IF STATEMENTS COMBINED WITH VLOOKUPS peggyL Excel Worksheet Functions 2 July 1st 08 09:10 PM
Use of Combined IF and AND statements ConfusedNHouston Excel Discussion (Misc queries) 2 March 11th 08 06:30 PM
Combined Statements Don Excel Discussion (Misc queries) 1 May 29th 07 11:24 PM
Conditional formatting combined with multiple IF statements Hendrik Excel Worksheet Functions 7 March 22nd 07 06:03 PM


All times are GMT +1. The time now is 07:27 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"