Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 50
Default Conditional Formula Question

I have the following Columns (A and B) with binary output (1 and 0), such
that A and B would not both contain 1 but both could contain 0. What formula
would I use in column C that calculates % change between cells D1 and E1 only
when there has been a 1 in A and followed by a 1 in B. See example:
A B C
1 0 0.00%
1 0 0.00%
1 0 0.00%
0 0 0.00%
0 1 3.00%
0 1 0.00%
0 1 0.00%
1 0 0.00%
0 1 3.00%
0 1 0.00%

Thanks
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 623
Default Conditional Formula Question

An If statement testing the two conditions should work:

=if(and(b2=1,a1=1),(e1-d1)/d1,0)

--
Regards,
Fred


"iperlovsky" wrote in message
...
I have the following Columns (A and B) with binary output (1 and 0), such
that A and B would not both contain 1 but both could contain 0. What formula
would I use in column C that calculates % change between cells D1 and E1 only
when there has been a 1 in A and followed by a 1 in B. See example:
A B C
1 0 0.00%
1 0 0.00%
1 0 0.00%
0 0 0.00%
0 1 3.00%
0 1 0.00%
0 1 0.00%
1 0 0.00%
0 1 3.00%
0 1 0.00%

Thanks



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 maybe IF question Zsolt Szabó Excel Discussion (Misc queries) 3 December 10th 06 09:01 PM
Conditional formatting formula question Simon Excel Discussion (Misc queries) 1 July 10th 06 01:23 PM
question about conditional sum jinvictor Excel Discussion (Misc queries) 1 June 8th 06 08:03 AM
Conditional Formula question Renee Excel Discussion (Misc queries) 3 April 13th 06 08:05 PM
conditional sum question Devlin Excel Worksheet Functions 6 August 17th 05 07:27 AM


All times are GMT +1. The time now is 03:39 PM.

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

About Us

"It's about Microsoft Excel"