Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 3
Default How to use the search in an if statement

I have a spreadsheet with numbers in column B and letters in column C. I
need to search for "J" in Column C and if there is not a J there and there is
a number 0 in Column B, I need to put a "B" in Column D. I figured out the
search function, but when there is not a J, I am just getting an error, what
formula should can I use?
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Eva Eva is offline
external usenet poster
 
Posts: 197
Default How to use the search in an if statement

Hi
Use the formula below:

=IF(ISERROR(SEARCH("j",C5,1))=TRUE,0,IF(B50,"B",0 ))
For the ones that there are not "J", the formula returns 0,if there is J but
the number is less than 0, then also returns 0
Click yes if helped
--
Greatly appreciated
Eva


"trinamariem" wrote:

I have a spreadsheet with numbers in column B and letters in column C. I
need to search for "J" in Column C and if there is not a J there and there is
a number 0 in Column B, I need to put a "B" in Column D. I figured out the
search function, but when there is not a J, I am just getting an error, what
formula should can I use?

  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 3
Default How to use the search in an if statement

I put that into my spreadsheet and its not working for me. I updated the
cell references to my actual cells and changed the 0 to "". My column B is
56, Column C is D1 and the result is 0 when I would expect a B. I did the
formula auditing so I could try to understand what was happening and it shows
me this:

IF(ISERROR(SEARCH("J',C12,1))=TRUE,"",IF(B120,"B" ,""))
IF(ISERROR(SEARCH("J',"D1",1))=TRUE,"",IF(B120,"B ",""))
IF(ISERROR(#VALUE!)=TRUE,"",IF(B120,"B",""))
IF(TRUE=TRUE,"",IF(B120,"B",""))
IF(TRUE,"",IF(B120,"B",""))
then it goes to blank
"Eva" wrote:

Hi
Use the formula below:

=IF(ISERROR(SEARCH("j",C5,1))=TRUE,0,IF(B50,"B",0 ))
For the ones that there are not "J", the formula returns 0,if there is J but
the number is less than 0, then also returns 0
Click yes if helped
--
Greatly appreciated
Eva


"trinamariem" wrote:

I have a spreadsheet with numbers in column B and letters in column C. I
need to search for "J" in Column C and if there is not a J there and there is
a number 0 in Column B, I need to put a "B" in Column D. I figured out the
search function, but when there is not a J, I am just getting an error, what
formula should can I use?

  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 3
Default How to use the search in an if statement

Nevermind, I figured it out, thanks for your help

"trinamariem" wrote:

I put that into my spreadsheet and its not working for me. I updated the
cell references to my actual cells and changed the 0 to "". My column B is
56, Column C is D1 and the result is 0 when I would expect a B. I did the
formula auditing so I could try to understand what was happening and it shows
me this:

IF(ISERROR(SEARCH("J',C12,1))=TRUE,"",IF(B120,"B" ,""))
IF(ISERROR(SEARCH("J',"D1",1))=TRUE,"",IF(B120,"B ",""))
IF(ISERROR(#VALUE!)=TRUE,"",IF(B120,"B",""))
IF(TRUE=TRUE,"",IF(B120,"B",""))
IF(TRUE,"",IF(B120,"B",""))
then it goes to blank
"Eva" wrote:

Hi
Use the formula below:

=IF(ISERROR(SEARCH("j",C5,1))=TRUE,0,IF(B50,"B",0 ))
For the ones that there are not "J", the formula returns 0,if there is J but
the number is less than 0, then also returns 0
Click yes if helped
--
Greatly appreciated
Eva


"trinamariem" wrote:

I have a spreadsheet with numbers in column B and letters in column C. I
need to search for "J" in Column C and if there is not a J there and there is
a number 0 in Column B, I need to put a "B" in Column D. I figured out the
search function, but when there is not a J, I am just getting an error, what
formula should can I use?

Reply
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
Help with solving this if statement which uses a search for text s forest8 Excel Discussion (Misc queries) 9 August 23rd 09 04:06 AM
Functions (search within search result) reply to this please Nick Excel Worksheet Functions 1 February 17th 09 03:57 AM
If then statement to search for text possible? Ken Wright Excel Discussion (Misc queries) 6 January 31st 06 09:52 PM
How do I search excel spreadsheets using multiple search criteria. Kasper Excel Worksheet Functions 4 December 15th 05 12:26 AM
Search for a specific character in a cell in an if statement mcl Excel Worksheet Functions 2 January 4th 05 09:14 PM


All times are GMT +1. The time now is 02:55 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"