Solved

Ignoring Text in Date field

Posted on 2012-03-29
10
249 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
 
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
Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

 
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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Drop Down List with Unique/Distinct Values (enhancing the Combo-Box with a few steps and a little code) David miller (dlmille) Intro Have you ever created a data validation list from a database field or spreadsheet column (e.g., Zip Codes or Co…
This code takes an Excel list of URL’s and adds a header titled “URL List”. It then searches through all URL’s in column “A”, looking for duplicates. When a duplicate is found, it is moved to the top of the list. The duplicate URL’s are then highlig…
This Micro Tutorial demonstrates how to create Excel charts: column, area, line, bar, and scatter charts. Formatting tips are provided as well.
This Micro Tutorial demonstrates in Microsoft Excel how to consolidate your marketing data by creating an interactive charts using form controls. This creates cool drop-downs for viewers of your chart to choose from.

911 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

19 Experts available now in Live!

Get 1:1 Help Now