LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.setup
tom tom is offline
external usenet poster
 
Posts: 570
Default SEARCH function within IF function

Excel 2003 SP2
I'm attempting to use the SEARCH function for a couple of strings in a cell.
Specifically, I need to search for "Customer", "Vendor" and "Item". Seems
simple but when I use the following IF statement, I get a #VALUE response on
the FALSE condition.
Here's the statement
IF(Search("Customer",B2,1)0,"Yes","No")
Columns==== B C D
E
Customer Master File =If(Search...) =if(Search....)
=If(Search...)
Vendor Master File etc etc
etc
Item Master File etc etc
etc

If Bxxxx has "Customer" I get the "Yes". However, if Bxxxx does NOT have
"Customer" I get the #Value response. I've tried several iterations of
nested IFs and other SEARCHes but I'm still getting #VALUE.

My desired result is if Bxxxx has "Customer" then "Yes", if Bxxxx has
"Vendor" then "No" or blank. I'm essentially establishing columns C, D and E
to be Customer, Vendor and Item Related. Hence, if Bxxxx contains "Customer"
then Cxxxx would be "Yes". If Bxxxx contains "Vendor" then Dxxxx would be
"Yes" and if Bxxxx contains "Item" then Exxxx would be "Yes". Otherwise, I'd
like to see a "No" or a blank ("").
What solutions are there and what am I doing wrong here? Seems like an
ISERROR type of approach or SEARCH but I'm stuck.
TIA
Tom
 
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
Excel search function LegalPC Excel Discussion (Misc queries) 2 August 8th 06 07:47 PM
VLookup function to search an entire workbook liseladele Excel Worksheet Functions 0 November 10th 05 12:35 AM
Excel option to store trendline's coefficients in cells for use Miguel Saldana Charts and Charting in Excel 9 June 20th 05 08:45 PM
Search function nc Excel Discussion (Misc queries) 7 May 13th 05 03:08 PM
clock Wildman Excel Worksheet Functions 2 April 26th 05 10:31 AM


All times are GMT +1. The time now is 11:18 PM.

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"