Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people, just like you, are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
Solved

formulae which will identify the presence of a dot (.)

Posted on 2011-02-10
15
232 Views
Last Modified: 2012-05-11
Dear experts

Need a formulae which will identify the presence of a dot (.) in a text string and if the condition is met, the formulae will return true.

Example (cell A2)

Xyz.xls      Formulae should return ‘True’

The idea is that if the result of the find/search formulae is true, then i would like to put “”, no character, else put the valuein the cell A2.

Kindly provide the formulae for the same.

Thank you
0
Comment
Question by:Excellearner
  • 4
  • 3
  • 3
  • +3
15 Comments
 
LVL 24

Assisted Solution

by:StephenJR
StephenJR earned 150 total points
ID: 34863821
This perhaps?

=IF(ISNUMBER(FIND(".",F1)),F1,"")
0
 
LVL 30

Assisted Solution

by:SiddharthRout
SiddharthRout earned 150 total points
ID: 34863822
Try this

Where A1 has the text

=IFERROR(IF(FIND(".",A1,1),"True","False"),"False")

Sid
0
 
LVL 11

Expert Comment

by:Runrigger
ID: 34863823
=IF(ISERROR(FIND(".",A2,1)),FALSE,TRUE)
0
Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

 
LVL 24

Expert Comment

by:StephenJR
ID: 34863828
I guess you want A1 rather than F1.
0
 
LVL 30

Expert Comment

by:SiddharthRout
ID: 34863832
Shortened it to

=IFERROR(IF(FIND(".",A1,1),"True"),"False")

Sid
0
 

Expert Comment

by:kostyak
ID: 34863845
What you probably want to do is use the following:
=NOT(ISERROR(FIND(".",A2)))

Open in new window

0
 
LVL 11

Expert Comment

by:Runrigger
ID: 34863851
IFERROR only available in Excel 2007 and later!
0
 
LVL 30

Expert Comment

by:SiddharthRout
ID: 34863914
Runrigger: Yes you are right.
Excellearner: Which Excel version are you using?

Sid
0
 
LVL 50

Accepted Solution

by:
barry houdini earned 200 total points
ID: 34863926
You could also use COUNTIF

=IF(COUNTIF(A1,"*.*"),"",A1)

regards, barry
0
 
LVL 50

Expert Comment

by:barry houdini
ID: 34863987
....but I should say that StephenJR,s approach is first and best IMO

barry
0
 
LVL 85

Expert Comment

by:Rory Archibald
ID: 34865815
If you just want True/False, then:
=ISNUMBER(FIND(".",A2))
0
 
LVL 85

Expert Comment

by:Rory Archibald
ID: 34865826
Missed the last part of the Q, so I agree Stephen's does exactly what you want. :)
0
 
LVL 11

Expert Comment

by:Runrigger
ID: 34869738
Barry/Rory, kindly advise IYO

is?
=IF(ISNUMBER(FIND(".",F1)),F1,"")

better than?
=IF(ISERROR(FIND(".",F1)),"",F1)

clearly I have slightly modified my formula @34863823 and I agree that Stephen's response is more complete given the later part of the question, I just wondered if ISNUMBER is better/more efficient than ISERROR?
0
 
LVL 50

Expert Comment

by:barry houdini
ID: 34869849
I doubt if there's much in it really, Runrigger. I think I have a slight preference for ISNUMBER because it's a positive test......but that's probably just me.

Otherwise which one you use might depend on how you need to structure any other parts of the formula. In this case, in a simple IF function, obviously you can just swap the TRUE/FALSE arguments as per your example so it probably doesn't matter....

regards, barry
0
 
LVL 11

Expert Comment

by:Runrigger
ID: 34869892
Thanks for the feed back Barry, I didn't think there would be much in it, but a positive test I guess is the better approach!
rgds
Dave
0

Featured Post

Networking for the Cloud Era

Join Microsoft and Riverbed for a discussion and demonstration of enhancements to SteelConnect:
-One-click orchestration and cloud connectivity in Azure environments
-Tight integration of SD-WAN and WAN optimization capabilities
-Scalability and resiliency equal to a data center

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

INDEX and MATCH can be used to great effect to replace HLOOKUP and VLOOKUP as it does not have the limitation of needing the data to be sorted so that the reference value is in the first column or row. It also has the ability to perform a bi-directi…
Some code to ensure data integrity when using macros within Excel. Also included code that helps secure your data within an Excel workbook.
The viewer will learn how to create a normally distributed random variable in Excel, use a normal distribution to simulate the return on an investment over a period of years, Create a Monte Carlo simulation using a normal random variable, and calcul…
Although Jacob Bernoulli (1654-1705) has been credited as the creator of "Binomial Distribution Table", Gottfried Leibniz (1646-1716) did his dissertation on the subject in 1666; Leibniz you may recall is the co-inventor of "Calculus" and beat Isaac…

856 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