Simple Formula Is Killing Me

rockyw

Well-known Member
Joined
Dec 26, 2010
Messages
1,196
Office Version
  1. 2010
Platform
  1. Windows
I know this has to be simple. I want to return the date in a cell and if it's blank it returns nothing. The date is moving into thr cell for code so it is blank. Right now I get 1/0/0. Thanks
 

Excel Facts

Ambidextrous Undo
Undo last command with Ctrl+Z or Alt+Backspace. If you use the Undo icon in the QAT, open the drop-down arrow to undo up to 100 steps.
What is the formula in your cell?
 
Upvote 0
I know this has to be simple. I want to return the date in a cell and if it's blank it returns nothing. The date is moving into thr cell for code so it is blank. Right now I get 1/0/0. Thanks
Hi Rocky,

To be honest what you just said doesn't really make much sense, or at least we have not got enough information...

If cell (let's say A1) is not blank then another cell (let's say B1) is supposed to be returning a date. If A1 is blank however, B1 should not return a date. Is that generally the idea (give or take the actual cells being the right ones I mean)?

If I have the right idea then the formula in B1 would be something like =IF(A1<>"",TODAY(),"")

Or are you trying to do this with VBA?
 
Upvote 0
It it is putting in today's date, how can it be blank?

Can you walk us through exactly what is going on, and post your exact formulas, if you have any?
 
Upvote 0
OK the cell is blank until a code puts in a date. I used =Data!I4 but I get a 1/0/0 when the cell is empty. A code puts a date in and removes it later. I would like to see the date and nothing when the date is gone. Thanks
 
Upvote 0
Try this instead:
Code:
=IF(Data!I4,Data!I4,"")
 
Upvote 0
OK the cell is blank until a code puts in a date. I used =Data!I4 but I get a 1/0/0 when the cell is empty. A code puts a date in and removes it later. I would like to see the date and nothing when the date is gone. Thanks
To be honest that still doesn't quite fit how I would expect it to work, however would it not be something like...

=IF(Data!I4<>"",Data!I4,"")
 
Last edited:
Upvote 0
Assuming the cell is blank before the VBA code puts the date in then maybe

Rich (BB code):
=IF(Data!I4, Data!I4, "")


Will return blank if cell
Data!I4 is empty, or the value from that cell if not.
 
Upvote 0
Yes that works. It returns the dates and blank where there is none, thanks I looked and looked for an answer. Thanks
 
Upvote 0

Forum statistics

Threads
1,214,787
Messages
6,121,569
Members
449,038
Latest member
Guest1337

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top