Solved

Ignoring Text in Date field

Posted on 2012-03-29
10
248 Views
Last Modified: 2012-03-29
Good day!
I am using the Excel (2007) WorkDay() function to calculate dates from a schedule.
However some of the lines have text instead of Dates.

How can I format the formula to ignore text.
I use the =if(A1="",""  etc.. if it is blank. But it #VALUE errors out if there is text.
Would an =IF(ISTEXT work?

Thanks!

First Question after having been gone from Ex-Ex for a long time!  Howdy All!
0
Comment
Question by:RayLBailey
  • 4
  • 3
  • 2
  • +1
10 Comments
 
LVL 11

Expert Comment

by:Runrigger
Comment Utility
how about exploring the IFERROR function;

=IFERROR(WORKDAY(A1),"Do something else")
0
 
LVL 43

Expert Comment

by:Saqib Husain, Syed
Comment Utility
Yes

=istext(your_formula)

should work
0
 

Author Comment

by:RayLBailey
Comment Utility
Okay, should have posted my formula so you can help me figure out how to use the IsError
.
=IF(E2="","",WORKDAY(K2,-TimeDate!$C$5,))
0
 
LVL 11

Expert Comment

by:Runrigger
Comment Utility
try this

=iferror(WORKDAY(K2,-TimeDate!$C$5,),"")
0
 
LVL 5

Expert Comment

by:INHOUSERES
Comment Utility
=IF(ISTEXT(A1),"",WEEKDAY(A1))
0
Top 6 Sources for Identifying Threat Actor TTPs

Understanding your enemy is essential. These six sources will help you identify the most popular threat actor tactics, techniques, and procedures (TTPs).

 
LVL 43

Accepted Solution

by:
Saqib Husain, Syed earned 500 total points
Comment Utility
=IF(E2="","",if(istext(k2),"",WORKDAY(K2,-TimeDate!$C$5,)))
0
 

Author Closing Comment

by:RayLBailey
Comment Utility
I accepted the ISError because it handles if there is a bad number in the field instead of DATE or t text.

Thanks!

Ray
0
 
LVL 11

Expert Comment

by:Runrigger
Comment Utility
ermmm, looks like you awarded points to the wrong one then :-(
0
 

Author Comment

by:RayLBailey
Comment Utility
ARRRRGH!  Sorry!
0
 
LVL 11

Expert Comment

by:Runrigger
Comment Utility
It's not a problem, the focus for me was to offer help to you, not to earn points, and I am happy that we were able to do so.
0

Featured Post

What Security Threats Are You Missing?

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

Join & Write a Comment

What is a Form List Box? (skip if you know this) The forms List Box is the alternative to the ActiveX list box. If you are using excel 2007, you first make sure you have a developer tab (click the Orb)->"Excel Options"->Popular->"Show Developer tab…
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…
This Micro Tutorial will demonstrate how to create pivot charts out of a data set. I also added a drop-down menu which allows to choose from different categories in the data set and the chart will automatically update.
Excel styles will make formatting consistent and let you apply and change formatting faster. In this tutorial, you'll learn how to use Excel's built-in styles, how to modify styles, and how to create your own. You'll also learn how to use your custo…

743 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