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  

Return Value using If statement or Lookup?



 
 
Thread Tools Display Modes
  #1  
Old June 24th, 2009, 09:08 PM posted to microsoft.public.excel.worksheet.functions
Malva
external usenet poster
 
Posts: 1
Default Return Value using If statement or Lookup?

I have column a1 thru a100 are pass/fail values, column b1 will return a
"fail" if any of the rows in column a1:a100 has a "fail" value. Do you have
a if statement I can use?
  #2  
Old June 24th, 2009, 09:21 PM posted to microsoft.public.excel.worksheet.functions
NBVC[_38_]
external usenet poster
 
Posts: 1
Default Return Value using If statement or Lookup?


=IF(Countif(A1:A100,"Fail")0,"Fail","")


--
NBVC

Where there is a will there are many ways.
'The Code Cage' (http;//www.thecodecage.com)
------------------------------------------------------------------------
NBVC's Profile: http://www.thecodecage.com/forumz/member.php?userid=74
View this thread: http://www.thecodecage.com/forumz/sh...d.php?t=109898

  #3  
Old June 24th, 2009, 09:42 PM posted to microsoft.public.excel.worksheet.functions
Rick Rothstein[_2_]
external usenet poster
 
Posts: 2,013
Default Return Value using If statement or Lookup?

Your use of the phrase "pass/fail values", coupled with the fact you want to
report the word "fail" in another column, suggests to me there are numerical
values in Column A and that there is a certain value marking the point at
which an item is considered failed. However, you didn't tell us what value
marks a failure nor whether numbers higher or lower than it constitute a
failed item. Also, your use of the term "column b1" is confusing as b1 is a
cell, not a column. Given your omissions, I will make some assumptions and
then give you a formula for those assumption (you will have to modify it to
fit your actual conditions). Assuming 123 is the value marking where
failures occur and that numbers equal to or higher than this value are
considered as failed, and that you want the word "fail" in Column B next to
each failed value, then give this formula a try (put it in B1 and copy it
down)...

=IF(A1=123,"Fail","")

--
Rick (MVP - Excel)


"Malva" wrote in message
...
I have column a1 thru a100 are pass/fail values, column b1 will return a
"fail" if any of the rows in column a1:a100 has a "fail" value. Do you
have
a if statement I can use?


 




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 07:54 AM.


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