Computing.Net > Forums > Office Software > Excel Find/Search returns #VALUE

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.

Excel Find/Search returns #VALUE

Reply to Message Icon

Name: bmasters123
Date: April 12, 2005 at 08:36:21 Pacific
OS: Windows 2000
CPU/Ram: Excel 97 SR2
Comment:

How can I do this in Excel?
I have 2 cells: A1="Bob", B1="Bob, Joe"
or it could be: A1="Bob", B1="Joe"
or A1="", B1="Joe"
or A1="Joe", B1=""
etc.

I want to check if B1 contains the text from A1, and if not, concatenate them together in C1, otherwise C1=B1. Here is one way I tried it:
C1:=IF(FIND(A1,B1)>0,B1,CONCATENATE(B1,", ",A1))
actually it is a little more complex than that, since I am first checking for blank cells: =IF(A1="",B1,IF(B1="",A1,IF(FIND(A1,B1)>0,B1,CONCATENATE(B1,", ",A1))

The problem I'm running into is if you don't find the A1 text in B1, it returns #VALUE! error... instead of the text values. How do you avoid this?



Sponsored Link
Ads by Google

Response Number 1
Name: bmasters123
Date: April 12, 2005 at 12:02:43 Pacific
Reply:

nevermind -- I figured it out -- just need to use 'ISERROR' as part of the formula:
=IF(A1="",B1,IF(B1="",A1,IF(ISERROR(FIND(A1,B1)),CONCATENATE(B1,", ",A),B1)))


0
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: Excel Find/Search returns #VALUE

Excel returnes #Value! www.computing.net/answers/office/excel-returnes-value/7891.html

Excel Help www.computing.net/answers/office/excel-help/5683.html

Using FIND function-VBA in Excel www.computing.net/answers/office/using-find-functionvba-in-excel/8283.html