Use the Isblank & Iferror Excel function With Date/Time Cell reference

msvoboda27

New Member
Joined
Feb 9, 2018
Messages
30
Office Version
  1. 365
  2. 2021
Platform
  1. Windows
Hello,
I'm ashamed to say having a harder a much time then I hoped to create an excel formula for a work report and ask the experts fo your help. Please!
I have a straight forward excel table and reference a date/time/AM/PM from one cell and perform a text string function to break out the yr/month/date and time of day. If the date is added to the cell the text string function works properly and populates the data. If I have no date I am still getting data populated. My goal is to have no data appear in the corresponding cells that I'm using the text string function when no date is in the date cell I'm referencing.
What do I need to do so that if no date populates it shows data no data? I thought a iferror or isblank but haven't figured it out.
Thank you!
dateYrMonthDaytime of Week
11/22/19 12:10 PMshows (2019)shows: (Nov)Shows: (Friday)(PM)
empty cellshows: (1900)Shows: (Jan)Shows: (Saturday)(AM)
Obviously I am doing something wrong but unsure how to address. can someone please help, Below are my formulas
ADateYrMonthDayTime of Day
211/22/219=TEXT($A2,"yyyy")=TEXT($A2,"mmm")=TEXT($A2"dddd")=TEXT($A2,"AM/PM")
 

Attachments

  • Excel Error 11222019.png
    Excel Error 11222019.png
    110 KB · Views: 189

Excel Facts

Select all contiguous cells
Pressing Ctrl+* (asterisk) will select the "current region" - all contiguous cells in all directions.
You are absolutely correct that resolved. it. Thank YOU. It makes so much more sense after you see the answer :)
Thanks for taking the time to respond.
Sincerely, Michael
 
Upvote 0
@gavino
ISBLANK will return False if the cell contains a formula that returns "", whilst DanteAmor's formula will treat it as empty.
 
Upvote 0
Perfect I will test isblank later today, I really love learning about new things Excel can do, it's really limitless!
Kind regards, Michael
 
Upvote 0

Forum statistics

Threads
1,224,823
Messages
6,181,175
Members
453,021
Latest member
Justyna P

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