Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
KidMW14
 
Posts: n/a
Default Conditional Functions

I have data in 2 columns that I want to work with. In one column (O) is a
percentage that sometimes equals 0. In the other (P) is a percentage that
never equals 0. Now in the third column (Q), I have the function =(P2-O2)/O2,
but sometimes, when O=0%, the function doesn't work. So I changed it to say
=IF(OR(O2=0%,(P2-O2)/O2200%),200%,(P2-O2)/O2). I never want the Q column to
be more than 200%. It works for numbers that quotient to more than 200%, but
for functions where O=0%, it says #DIV/0!, where it should just say 200%, as
I've instructed it.
What should I do?
  #2   Report Post  
Paul Sheppard
 
Posts: n/a
Default Conditional Functions


KidMW14 Wrote:
I have data in 2 columns that I want to work with. In one column (O) is
a
percentage that sometimes equals 0. In the other (P) is a percentage
that
never equals 0. Now in the third column (Q), I have the function
=(P2-O2)/O2,
but sometimes, when O=0%, the function doesn't work. So I changed it to
say
=IF(OR(O2=0%,(P2-O2)/O2200%),200%,(P2-O2)/O2). I never want the Q
column to
be more than 200%. It works for numbers that quotient to more than
200%, but
for functions where O=0%, it says #DIV/0!, where it should just say
200%, as
I've instructed it.
What should I do?


Hi KidMW14

Try this formula instead
=IF(A1=0,200,IF((B1-A1)/A1200,200,(B1-A1)/A1))


--
Paul Sheppard


------------------------------------------------------------------------
Paul Sheppard's Profile: http://www.excelforum.com/member.php...o&userid=24783
View this thread: http://www.excelforum.com/showthread...hreadid=484615

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
Conditional Functions KidMW14 Excel Worksheet Functions 1 November 13th 05 08:06 AM
Conditional Functions KidMW14 Excel Worksheet Functions 3 November 13th 05 04:39 AM
Conditional format combined with functions DAJ Excel Worksheet Functions 1 November 3rd 05 01:01 AM
Multiple FIND functions in Conditional Formatting RocketFuMaster Excel Worksheet Functions 2 March 2nd 05 06:09 PM
conditional functions j Excel Worksheet Functions 2 December 10th 04 02:55 PM


All times are GMT +1. The time now is 02:58 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"