![]() |
IF Statements for 3 cells
Hi,
I have 3 cells (B5, C5 and/or D5) that need to meet a certain criteria without going over the maximum in any combination of the 3 cells. The maximum is $400. Any of these cells can be equal to $400, but if one or two gets to $400 first, how do I make the ones that are less than $400 say zero? (I have a small file to send if needed) Thanks, CP |
I assume you have existing equations in these cells
eq(b5),eq(c5),eq(d5) It is real easy to get into circular references with this type of logic. Try in b5 =if(or(eq(c5)=400,eq(d5)=400),0,eq(b5)) in c5 =if(or(eq(b5)=400,eq(d5)=400),0,eq(c5)) in d5 =if(or(eq(c5)=400,eq(b5)=400),0,eq(d5)) "CP" wrote: Hi, I have 3 cells (B5, C5 and/or D5) that need to meet a certain criteria without going over the maximum in any combination of the 3 cells. The maximum is $400. Any of these cells can be equal to $400, but if one or two gets to $400 first, how do I make the ones that are less than $400 say zero? (I have a small file to send if needed) Thanks, CP |
All times are GMT +1. The time now is 04:21 PM. |
Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com