ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Worksheet Functions (https://www.excelbanter.com/excel-worksheet-functions/)
-   -   How do I set up multiple logical conditions on one result cell (https://www.excelbanter.com/excel-worksheet-functions/64903-how-do-i-set-up-multiple-logical-conditions-one-result-cell.html)

Ring eye

How do I set up multiple logical conditions on one result cell
 
How do I write the following condition in one cell (AA)?
cell 'C' - year bought
cell 'J' - bought commission
cell 'Q' - year sold
cell 'U' - sold commission
Cell 'AA' 2005 commission

if c4=2005,q4=2005 sum(j4,u4) if c4<2005,q4=2005 sum(0,u4)
if c4=2005,q4not=2005 sum(j4,0)

What is a good book that explain each function and gives good examples, I
can buy

Pete

How do I set up multiple logical conditions on one result cell
 
This should do it entered into AA4:

=IF(AND(C4<2005,Q4=2005),U4,IF(AND(C4=2005,Q4=2005 ),J4+U4,IF(AND(C4=2005,Q4<2005),J4,"None
of these")))

If the combinations of C4 and Q4 are not any that you state, then you
will get the text "None of these" - you might want to set this to zero
or some other value.

Hope this helps.

Pete



All times are GMT +1. The time now is 05:33 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com