Solved

Trying to make a formula blank.

Posted on 2016-09-13
9
32 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
  • 5
  • 4
9 Comments
 
LVL 29

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 29

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
DevOps Toolchain Recommendations

Read this Gartner Research Note and discover how your IT organization can automate and optimize DevOps processes using a toolchain architecture.

 

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 29

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 29

Expert Comment

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

Featured Post

DevOps Toolchain Recommendations

Read this Gartner Research Note and discover how your IT organization can automate and optimize DevOps processes using a toolchain architecture.

Question has a verified solution.

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

Suggested Solutions

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 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 will demonstrate in Google Sheets how to use the HYPERLINK function to create live links inside your spreadsheet.
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.

777 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