Computing.Net > Forums > Office Software > Comparing text values in excel and

Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.

Comparing text values in excel and

Reply to Message Icon

Name: Isaklas
Date: January 5, 2009 at 13:35:53 Pacific
OS: Windows XP
CPU/Ram: Core 2 Duo, 2 gig
Product: Intel / E4500
Subcategory: Microsoft Office
Comment:

Hi

I'm trying to work out how to devise a formula in Excel 2003 which does the following ...

Searches a range of cells for a certain text value 'False' in worksheet "Data", if it finds it, this Text is copied to another cell in a different worksheet called "Work", if the text "False" is not found then it returns the Text "Pass" to the same cell as above in the worksheet called "Work".

Any ideas on how this can be achieved?

Thanks



Sponsored Link
Ads by Google

Response Number 1
Name: DerbyDad03
Date: January 5, 2009 at 16:59:25 Pacific
Reply:

How about this:

=IF(COUNTIF(DATA!A1:A9,"=FALSE")>0,"FALSE", "PASS")


0

Response Number 2
Name: Isaklas
Date: January 5, 2009 at 17:03:24 Pacific
Reply:

Apologies, just realised I'd forgotten to mention that there are essentially 3 possible text entries into each of the range being search, "Pass","Fail" (not False as I mentioned earlier), or the cell is blank.

Ideally what I'd like is to have something which copies the word "Pass" to another cell if all cells in the range searched contain the word "Pass", Copy the word "Fail" to that other cell if any of the cells are being searched contain the word "Fail" and copy a 'Blank' to the cell if not all the cells in the range actually contain some text.


0

Response Number 3
Name: jon_k
Date: January 6, 2009 at 08:48:48 Pacific
Reply:

How about this? Note this assumes the data can ONLY be PASS, FAIL or "" (blank). I've set A1:A9 as the range.

=IF(SUMPRODUCT(--(A1:A9=""))=0,IF(ISNA(MATCH("FAIL",A1:A9,0)),"PASS","FAIL"),"BLANK")


0

Response Number 4
Name: Isaklas
Date: January 7, 2009 at 12:31:22 Pacific
Reply:

That's superb thanks, exactly what I needed :)

Much appreciated


0

Sponsored Link
Ads by Google
Reply to Message Icon

Related Posts

See More







Post Locked

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.


Go to Office Software Forum Home


Sponsored links

Ads by Google


Results for: Comparing text values in excel and

Excel formula comparing text values www.computing.net/answers/office/excel-formula-comparing-text-values/5651.html

compare two columns in excel 2007 www.computing.net/answers/office/compare-two-columns-in-excel-2007/8119.html

Comparing two columns in excel www.computing.net/answers/office/comparing-two-columns-in-excel/8993.html