LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
CJ CJ is offline
external usenet poster
 
Posts: 18
Default Formula using IF? Vlookup? Lookup? I'm not sure.

In summation, here is what I need!!
if ANY fails exist, then read Fail
if ANY blanks exist, then read blank
if ALL entries = pass, then read pass.

I have cells G20:G22 that can contain either Pass, Fail, or ""
I have a cell H18 that I want to show me the following.

IF *All* G20:G22 = "Pass"
Then "Pass"
ELSE
IF *Any* G20:G22 = "Fail"
Then "Fail"
Else
""
END IF

I'm sure that isn't the correct syntax in code, but I'm trying to
explain it. Here are examples of what I need....

****************
G20 =""
G21 =""
G22 =""
then H18 =""

****************
G20 ="Pass"
G21 =""
G22 =""

then H18 =""

****************
G20 ="Pass"
G21 ="Pass"
G22 =""

then H18 =""

****************
G20 ="Fail"
G21 ="Pass"
G22 =""

then H18 ="Fail"

****************
G20 =""
G21 ="Fail"
G22 =""

then H18 ="Fail"

****************
G20 ="Pass"
G21 ="Pass"
G22 ="Pass"

then H18 ="Pass"



Thanks for your help!!!

 
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


Similar Threads
Thread Thread Starter Forum Replies Last Post
Lookup Data in two seperate Spreadsheets Padraig Excel Worksheet Functions 6 June 28th 06 03:05 PM
lookup formula Marcus Excel Worksheet Functions 3 October 25th 05 06:10 PM
Vlookup formula Excel version 2002 biz Excel Discussion (Misc queries) 0 September 7th 05 01:07 AM
Match / Vlookup within an Array formula Hari Prasadh Excel Discussion (Misc queries) 3 February 3rd 05 04:37 PM
How do I use Range Names listed in a VLookup table in a formula? Essbasedvlpr32 Excel Worksheet Functions 3 December 15th 04 10:11 PM


All times are GMT +1. The time now is 12:07 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"