A Microsoft Office (Excel, Word) forum. OfficeFrustration

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » OfficeFrustration forum » Microsoft Excel » Worksheet Functions
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

Logical Test for blank and then for score



 
 
Thread Tools Display Modes
  #1  
Old April 30th, 2010, 11:15 PM posted to microsoft.public.excel.worksheet.functions
Mikesnhu
external usenet poster
 
Posts: 1
Default Logical Test for blank and then for score

I am trying to score results
- M4 = test criteria (e.g. 5)
- O4 = test result (blank or a number .001 to 9999)
- P4 = scoring (if the result is blank, retun a blank in P4. if result is
less than test criteria set P4 to 100, else 0)

I need to check for blank and return a blank so that when I total the
scores, I'm not averaging in a zero.

I need to replace this which returns a 0 when O4 is blank:
=IF(O4="",0,IF(O4=M4,100,0))
This returns an error for using the "" replacing the 0:
=IF(O4="","",IF(O4=M4,100,0))

Ideas?
  #2  
Old May 1st, 2010, 12:02 AM posted to microsoft.public.excel.worksheet.functions
PatM
external usenet poster
 
Posts: 10
Default Logical Test for blank and then for score

=IF(ISBLANK(O4),"",IF(O4=M4,100,0))
should work in cell P4.

"Mikesnhu" wrote:

I am trying to score results
- M4 = test criteria (e.g. 5)
- O4 = test result (blank or a number .001 to 9999)
- P4 = scoring (if the result is blank, retun a blank in P4. if result is
less than test criteria set P4 to 100, else 0)

I need to check for blank and return a blank so that when I total the
scores, I'm not averaging in a zero.

I need to replace this which returns a 0 when O4 is blank:
=IF(O4="",0,IF(O4=M4,100,0))
This returns an error for using the "" replacing the 0:
=IF(O4="","",IF(O4=M4,100,0))

Ideas?

 




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump


All times are GMT +1. The time now is 06:26 PM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 OfficeFrustration.
The comments are property of their posters.