date or text

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Hi

Is there a way of working out if the information in a list is text or a date.

In a long list I need to determine the above.

It needs an IF statement so if it is a date perform a calculation otherwise do not.

can anyone help. Any suggestions are appreciated

kind regards

Rexmann
 
Hi Rexmann

there is an ISTEXT function which returns true if the entry is text and
false if its not so you could construct an IF statement along the lines of:

=IF(ISTEXT(A1),"text","not text")

Cheers
JulieD
 
Hi JulieD

just tried it out and it works great.

Job done

thanks Rexmann
 
another way which differentiates between numbers, text and dates

=IF(LEFT(CELL("format",C6))="D","Date","")

hth

Mik
 
You might want to add a check to see if there's a date in that cell--not just
check the format:

=IF(AND(ISNUMBER(C6),LEFT(CELL("format",C6))="D"),"Date","")
 

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

Similar Threads

Date to change format 3
Todays date 5
Weekdays only! 2
countif in a subtotal function 1
keyboard shortcut for dates and Time 4
Multi layered drop down 1
Macro for data and time 2
Month(A1) in 2007 5

Back
Top