search method

  • Thread starter Thread starter Atishoo
  • Start date Start date
A

Atishoo

I am having trouble with the following formula:
=IF(SEARCH(staff1,'Main Board'!F5),'Main Board'!G5&" "&'Main Board'!E5&"
"&'Main Board'!F6,"")

Im using this to return the text and number (time) strings in 3 cells
dependent on a text string being found within the text in the first cell "F5".

My problem is that if f5 doesnt have a text string it returns #value and I
dont want it to return anything!!

Im intending using this repeatedly across a number of ranges to create a
long list of text strings and blanks and want to then create a list of non
blanks arranged in order time ANY IDEA HOW i MIGHT ACHIEVE THIS? I dont want
to use an auto filter because I want the results to be static and not to
require selection from a drop down!
 
This is ugly, but you might try it.

=IF(iserr(SEARCH(staff1,'Main Board'!F5),'Main Board'!G5&" "&'Main
Board'!E5&"
"&'Main Board'!F6,"")),"",SEARCH(staff1,'Main Board'!F5),'Main Board'!G5&"
"&'Main Board'!E5&"
"&'Main Board'!F6,""))
 
Sorry, this might work better:

=IF(ISERR(SEARCH("staff1",'Main Board'!F5)),"",'Main Board'!G5 & " " & 'Main
Board'!E5 & " " & 'Main Board'!F6)
 
Brilliant thanks v much

TomPl said:
Sorry, this might work better:

=IF(ISERR(SEARCH("staff1",'Main Board'!F5)),"",'Main Board'!G5 & " " & 'Main
Board'!E5 & " " & 'Main Board'!F6)
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top