LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Mike Boerne
 
Posts: n/a
Default SEARCH function #VALUE! result

Cell Formula for AZ5:

=IF(Q5="","N",IF(SEARCH("FD",Q5,21),"Y",IF(SEARCH ("FS",Q5,21),"Y","N")))

evaluates to

#VALUE!

for non-blank Q5 cell values that do not contain "FD", or that contain "FS".
This is apparently by Microsoft design, but I still need to determine
whether cells in column Q contain certain character sets in characters 2-13
(excluding the first character), and to record a Y (Yes) in column AZ in that
event. The following are the results at present. It appears that the above
formula will not work if the "FD" is not contained in the cell, causing the
error message before the "IF FALSE" instruction evaluates. I guess what I'm
looking for is a string-based "contains" function, but I can't seem to find
one in Excel XP. My next thought is to construct a column for each
character set to be tested, then a formula to select any "Y" result, but I
doubt that will work with error messages in the cells.

Any thoughts re keeping this simple would be appreciated.

Cell Q5 Cell AZ5
(BLANK) N
PFSTEST #VALUE!
PFSFDTEST Y
PFDTEST Y
PFDFSTEST Y
PFSTEST #VALUE!
N
N

Mike B
 
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
Incorrect result using NPER worksheet function KG Old Wolf Excel Worksheet Functions 7 November 3rd 08 02:49 AM
Amount or Numbers in Words ron New Users to Excel 6 December 24th 04 07:32 PM
Is there a formula to spell out a number in excel? Sha-nay-nay Excel Worksheet Functions 2 December 18th 04 09:25 PM
Convert Numeric into Text Monty Excel Worksheet Functions 0 December 18th 04 09:25 PM
Spellnumber Norman Jones Excel Worksheet Functions 6 December 13th 04 07:21 AM


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

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

About Us

"It's about Microsoft Excel"