Solved

Ignoring Text in Date field

Posted on 2012-03-29
10
250 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
Master Your Team's Linux and Cloud Stack

Come see why top tech companies like Mailchimp and Media Temple use Linux Academy to build their employee training programs.

 
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

ScreenConnect 6.0 Free Trial

Discover new time-saving features in one game-changing release, ScreenConnect 6.0, based on partner feedback. New features include a redesigned UI, app configurations and chat acknowledgement to improve customer engagement!

Question has a verified solution.

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

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…
Introduction This Article briefly covers methods of calculating the NPV and IRR variants in Excel as well as the limitations in calculating and interpreting IRR results. Paraphrasing Richard Shockley, author of my favourite finance reference tex…
The viewer will learn how to use a discrete random variable to simulate the return on an investment over a period of years, create a Monte Carlo simulation using the discrete random variable, and create a graph to represent the possible returns over…
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 …

770 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