IF and AND statement
Hi All, I need to write a statement that is along the following: =IF(F4=G4,1,0)+IF(F20=G20,1,0)+IF(G36=F36,1,0) but to only calulate is the cells selected are greater than zero. Any ideas? Lara -- lara5555 ------------------------------------------------------------------------ lara5555's Profile: http://www.excelforum.com/member.php...fo&userid=2741 View this thread: http://www.excelforum.com/showthread...hreadid=538399 |
IF and AND statement
Hi Lara,
If all of the paired cells must be greater than 0, try: =IF((F4=G4)*(F40),1,0)*IF((F20=G20)*(F200),1,0)* IF((G36=F36)*(F360),3,0) If some of the paired cells must be greater than 0, try: =IF((F4=G4)*(F40),1,0)+IF((F20=G20)*(F200),1,0)+ IF((G36=F36)*(F360),1,0) Cheers "lara5555" wrote in message ... Hi All, I need to write a statement that is along the following: =IF(F4=G4,1,0)+IF(F20=G20,1,0)+IF(G36=F36,1,0) but to only calulate is the cells selected are greater than zero. Any ideas? Lara -- lara5555 ------------------------------------------------------------------------ lara5555's Profile: http://www.excelforum.com/member.php...fo&userid=2741 View this thread: http://www.excelforum.com/showthread...hreadid=538399 |
All times are GMT +1. The time now is 06:26 PM. |
Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
ExcelBanter.com