Show blank if cell is blank

broion

New Member
Joined
Jun 1, 2017
Messages
11
Hi Guys!

I feel that this is a simple problem, but I am unable to fix my formula.

Say, on A1 I have 1 date, another date on A2. e.g

A1 date = August 4, 2017
A2 date = August 5, 2017

on A3, I have this formula: =IF(A1="","",TEXT(A1,"mmmm dd, yyyy")&" until "&TEXT(A2,"mmmm dd, yyyy"))

On this formula, it' doesn't show a blank cell when A1 is blank.
 

Excel Facts

Return population for a City
If you have a list of cities in A2:A100, use Data, Geography. Then =A2.Population and copy down.
See if this fixes it for you:

=IF(OR(A1="",A1=0),"",TEXT(A1,"mmmm dd, yyyy")&" until "&TEXT(A2,"mmmm dd, yyyy"))
 
Upvote 0
...On this formula, it' doesn't show a blank cell when A1 is blank.

Then A1 is not blank. If there is a formula in A1, perhaps it is returning " " (with a space)?
Based on Post #2 , if that worked, then A1 contained a zero?
 
Upvote 0

Forum statistics

Threads
1,224,820
Messages
6,181,154
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