Solved

IF ignoring special characters

Posted on 2013-11-29
6
146 Views
Last Modified: 2013-11-29
=IF(LEFT(B2,5)="Slide","",IF(AND(ISNUMBER(B2),B2>0),"",IF(B2="a name","","Action")))

                                                                         
Hi, if B2 contains character  -------

i would like to ignore, leave blank, i would implicity state this but the amount of dashes varies e.g

-------
-----------------

and on some lines are stacked on tope of each other

Thanks
0
Comment
Question by:Seamus2626
  • 3
  • 2
6 Comments
 
LVL 43

Expert Comment

by:Saqib Husain, Syed
Comment Utility
=IF(or(LEFT(B2,5)="Slide",LEFT(B2,5)="-----"),"",IF(AND(ISNUMBER(B2),B2>0),"",IF(B2="a name","","Action")))
0
 

Author Comment

by:Seamus2626
Comment Utility
Hi ssaqibh,

that did not ignore

===================

thanks
0
 
LVL 50

Expert Comment

by:barry houdini
Comment Utility
Perhaps try

=IF(OR(LEFT(B2,5)="Slide",COUNTIF(B2,"*--*")),"",IF(AND(ISNUMBER(B2),B2>0),"",IF(B2="a name","","Action")))

regards, barry
0
Threat Intelligence Starter Resources

Integrating threat intelligence can be challenging, and not all companies are ready. These resources can help you build awareness and prepare for defense.

 
LVL 43

Expert Comment

by:Saqib Husain, Syed
Comment Utility
replace the ----- with =====
0
 
LVL 43

Accepted Solution

by:
Saqib Husain, Syed earned 500 total points
Comment Utility
Or maybe

=IF(or(LEFT(B2,5)="Slide",LEFT(B2,5)="-----",LEFT(B2,5)="====="),"",IF(AND(ISNUMBER(B2),B2>0),"",IF(B2="a name","","Action")))
0
 

Author Closing Comment

by:Seamus2626
Comment Utility
Barry, your formula dramatically increased what i was expecting back. ssaqibh bought back what i was expecting

many thanks
0

Featured Post

6 Surprising Benefits of Threat Intelligence

All sorts of threat intelligence is available on the web. Intelligence you can learn from, and use to anticipate and prepare for future attacks.

Join & Write a Comment

Dealing with unintended Excel Active-X resizing quirks (VBA code simulates "self correction") David Miller (dlmille) Intro Not everyone is a fan of Active-X controls in spreadsheets (as opposed to the UserForm approach, the older Form controls …
Approximate matching with VLOOKUP and MATCH seems to me to be a greatly under-used technique, and one which is vital for getting good performance out of large lookups. Until recently I would always have advised using an exact match for simplicity an…
The viewer will learn how to simulate a series of sales calls dependent on a single skill level and learn how to simulate a series of sales calls dependent on two skill levels. Simulating Independent Sales Calls: Enter .75 into cell C2 – “skill leve…
The viewer will learn how to use the =DISCRINV command to create a discrete random variable, use this command to model a set of probabilities and outcomes in a Monte Carlo simulation, and learn how to find the standard deviation of a set of probabil…

771 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

11 Experts available now in Live!

Get 1:1 Help Now