• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 198
  • Last Modified:

IF with timestamp

=IF(LEFT(B3,5)="Slide","",IF(RIGHT(B3,3)=time,"","Action"))


Im trying to ignore a row if it has a timestamp, my if above gives a #name error, can anyone advise how i could do this?

Thanks
0
Seamus2626
Asked:
Seamus2626
  • 3
  • 2
  • 2
1 Solution
 
SeanStricklandCommented:
Can you post a sample of the workbook and list the desired action?  Should be relatively simple.

Sean
0
 
Saqib Husain, SyedEngineerCommented:
What is the result of

right(B3,3)
0
 
Seamus2626Author Commented:
04/11/2013  13:27:18

Thats the stamp

Result = 625
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.

 
SeanStricklandCommented:
If a time stamp does not exist in B3, what does?

If it's text or a blank cell, you can use this:
=IF(LEFT(B3,5)="Slide","",IF(AND(ISNUMBER(B3),B3>0),"","Action"))

or, more simply: (this would ignore blanks and text whereas the one above ignores negative values)

=IF(LEFT(B3,5)="Slide","",IF(ISNUMBER(B3),"","Action"))
0
 
Seamus2626Author Commented:
Perfect
0
 
Saqib Husain, SyedEngineerCommented:
I think this code will fail if the cell contains a numeric entry which is not a timestamp.
0
 
SeanStricklandCommented:
Depends on your necessary usage.  Often times, you wouldn't use a column of data that's intended for a timestamp for anything more than a numerical timestamp, a blank cell, or maybe some descriptive text if it's a really simple spreadsheet.

Agreed, though - if you have a multi-functional column that contains a "value" field and you're using some sort of descriptor to differentiate it at a row-level, the code may fail.

Sean
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Keep up with what's happening at Experts Exchange!

Sign up to receive Decoded, a new monthly digest with product updates, feature release info, continuing education opportunities, and more.

  • 3
  • 2
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now