Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default IF then formula

Im working on a formula that I need to do the following:

Look at cell B98 and if that cell has a "X" in it do the
following.

Add cells AM98+AN98 if the total is 0 or less put a X in
the Cell.

I think that I'm close.

=IF B97=X then(SUM($AM98+$AN98<=0),"X"," "))

Thanks for any Help
Keith.
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 280
Default IF then formula

=IF(FIND("X",UPPER(B98))0,IF(SUM($AM98,$AN98)<=0, "X"," "),"")

"keith" wrote in message
...
Im working on a formula that I need to do the following:

Look at cell B98 and if that cell has a "X" in it do the
following.

Add cells AM98+AN98 if the total is 0 or less put a X in
the Cell.

I think that I'm close.

=IF B97=X then(SUM($AM98+$AN98<=0),"X"," "))

Thanks for any Help
Keith.



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 280
Default IF then formula

Better (supresses error in find):

=IF(NOT(ISERR(FIND("X",UPPER(B98)))),IF(SUM($AM98, $AN98)<=0,"X"," "),"")

"keith" wrote in message
...
Im working on a formula that I need to do the following:

Look at cell B98 and if that cell has a "X" in it do the
following.

Add cells AM98+AN98 if the total is 0 or less put a X in
the Cell.

I think that I'm close.

=IF B97=X then(SUM($AM98+$AN98<=0),"X"," "))

Thanks for any Help
Keith.



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 01:13 PM.

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"