Link to home
Create AccountLog in
Avatar of RWayneH
RWayneHFlag for United States of America

asked on

Trying to make a formula blank.

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 ""     ??
Avatar of Subodh Tiwari (Neeraj)
Subodh Tiwari (Neeraj)
Flag of India image

Custom format the formula cell with dd/mm/yyyy;; to hide 1900-01-00.
Avatar of RWayneH

ASKER

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.
ASKER CERTIFIED SOLUTION
Avatar of Subodh Tiwari (Neeraj)
Subodh Tiwari (Neeraj)
Flag of India image

Link to home
membership
Create a free account to see this answer
Signing up is free and takes 30 seconds. No credit card required.
See answer
Avatar of RWayneH

ASKER

it is already....  I need it to be blank without the 1900-01-00 showing   ""
Avatar of RWayneH

ASKER

any other value is acceptable > today.  I am having issue making the cell = ""
Avatar of RWayneH

ASKER

ohhhh  hello the suffix of ;;  that worked.  I feel tiny.
Okay I made them bold so that you don't miss the complete syntax.
Glad it worked at last for you.
Avatar of RWayneH

ASKER

Thanks
You're welcome. Glad to help.