Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
lara5555
 
Posts: n/a
Default 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

  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
macropod
 
Posts: n/a
Default 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



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



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