Solved

Trying to make a formula blank.

Posted on 2016-09-13
9
39 Views
Last Modified: 2016-09-13
If the following Ln on a sheet, grabs a value and that value is a Date.

ActiveWorkbook.Names.Add Name:="ColI", RefersToR1C1:="=" & Me.Name & "!R" & Target.Row & "C9" ' LnReqDelDate

however if the cell it is grabbing in column 9 from, is blank it returns:  1900-01-00

I use the formula on =ColI on another sheet to put that value in.
Is there another way to write the formula  =ColI so that if it returns 1900-01-00 (meaning blank) , it can make it ""     ??
0
Comment
Question by:RWayneH
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 5
  • 4
9 Comments
 
LVL 31

Expert Comment

by:Subodh Tiwari (Neeraj)
ID: 41796370
Custom format the formula cell with dd/mm/yyyy;; to hide 1900-01-00.
0
 

Author Comment

by:RWayneH
ID: 41796486
I cannot do that.. the required format is yyyy-mm-dd  because if it is not blank it needs to stay and use the date and in that specific reformat.
0
 
LVL 31

Accepted Solution

by:
Subodh Tiwari (Neeraj) earned 500 total points
ID: 41796493
That's not the beg deal, you can custom format it with yyyy-mm-dd;;
0
Online Training Solution

Drastically shorten your training time with WalkMe's advanced online training solution that Guides your trainees to action. Forget about retraining and skyrocket knowledge retention rates.

 

Author Comment

by:RWayneH
ID: 41796495
it is already....  I need it to be blank without the 1900-01-00 showing   ""
0
 

Author Comment

by:RWayneH
ID: 41796501
any other value is acceptable > today.  I am having issue making the cell = ""
0
 

Author Comment

by:RWayneH
ID: 41796513
ohhhh  hello the suffix of ;;  that worked.  I feel tiny.
0
 
LVL 31

Expert Comment

by:Subodh Tiwari (Neeraj)
ID: 41796535
Okay I made them bold so that you don't miss the complete syntax.
Glad it worked at last for you.
0
 

Author Closing Comment

by:RWayneH
ID: 41796579
Thanks
0
 
LVL 31

Expert Comment

by:Subodh Tiwari (Neeraj)
ID: 41796580
You're welcome. Glad to help.
0

Featured Post

PeopleSoft Has Never Been Easier

PeopleSoft Adoption Made Smooth & Simple!

On-The-Job Training Is made Intuitive & Easy With WalkMe's On-Screen Guidance Tool.  Claim Your Free WalkMe Account Now

Question has a verified solution.

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

How to get Spreadsheet Compare 2016 working with the 64 bit version of Office 2016
Access developers frequently have requirements to interact with Excel (import from or output to) in their applications.  You might be able to accomplish this with the TransferSpreadsheet and OutputTo methods, but in this series of articles I will di…
The viewer will learn how to create a normally distributed random variable in Excel, use a normal distribution to simulate the return on an investment over a period of years, Create a Monte Carlo simulation using a normal random variable, and calcul…
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.

636 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