Solved

Ignoring Text in Date field

Posted on 2012-03-29
10
251 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
ID: 37781451
how about exploring the IFERROR function;

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

Expert Comment

by:Saqib Husain, Syed
ID: 37781460
Yes

=istext(your_formula)

should work
0
 

Author Comment

by:RayLBailey
ID: 37781483
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
Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

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 11

Expert Comment

by:Runrigger
ID: 37781492
try this

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

Expert Comment

by:INHOUSERES
ID: 37781497
=IF(ISTEXT(A1),"",WEEKDAY(A1))
0
 
LVL 43

Accepted Solution

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

Author Closing Comment

by:RayLBailey
ID: 37781533
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
ID: 37781537
ermmm, looks like you awarded points to the wrong one then :-(
0
 

Author Comment

by:RayLBailey
ID: 37782424
ARRRRGH!  Sorry!
0
 
LVL 11

Expert Comment

by:Runrigger
ID: 37782439
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

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

This tutorial explains how to create a series of drop-down lists that are dependent upon prior selections to guide (“force”) the user to make the correct selection and reduce data errors within Microsoft Excel. Excel 2010 was used for this tutorial;…
This article descibes how to create a connection between Excel and SAP and how to move data from Excel to SAP or the other way around.
The viewer will learn how to create two correlated normally distributed random variables in Excel, use a normal distribution to simulate the return on different levels of investment in each of the two funds over a period of ten years, and, create a …
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.

808 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