If Cell is blank, then blank, and if another cell is not blank then blank

chrisbottomley1981

New Member
Joined
Oct 1, 2020
Messages
5
Office Version
  1. 365
Platform
  1. Windows
Hello,

I was wondering if you could help

I have Cell E4 with

=IF('Start Here'!AE6="","",'Start Here'!AE6)

and also F4 with

=IF('Start Here'!AF6="","",'Start Here'!AF6)

This pulls through dates

I would also like E4 to become blank if F4 pulls through a date .. so F4 will cancel out the content of E4 if F4 is not blank

I know I needs to add extra to =IF('Start Here'!AE6="","",'Start Here'!AE6) but I can't seem to find anything I understand on the web

Any assistance would be very gratefully appreciated :)
 

Excel Facts

Why does 9 mean SUM in SUBTOTAL?
It is because Sum is the 9th alphabetically in Average, Count, CountA, Max, Min, Product, StDev.S, StDev.P, Sum, VAR.S, VAR.P.
Hi & welcome to MrExcel.
How about
Excel Formula:
 =IF(OR('Start Here'!AE6="",F4<>""),"",'Start Here'!AE6)
 
Upvote 0
thank you!

I've realised a mistake on my part though .. I thought I could be clever by copying the formula to a third and fourth cell hoping that each would cancel out the last .. but when I get to the third cell, the first cell show's the date again .. :(

So I have one more than two date cells now,

E4, F4, G4 and H4

So I'm hoping that I could have

E4 shows a date to begin with
a new date is entered for the next stage of my process, and now If F4 is not blank, then E4 goes blank
a new date is entered for the next stage of my process, and now If G4 is not blank, then F4 and E4 goes blank
a new date is entered for the next stage of my process, and now If H4 is not blank, then G4, F4 and E4 go blank
 
Upvote 0
Ok, how about
Excel Formula:
 =IF(OR('Start Here'!AE6="",F4<>"",G4<>"",H4<>""),"",'Start Here'!AE6)
=IF(OR('Start Here'!AF6="",G4<>"",H4<>""),"",'Start Here'!AF6)
and similar for the other cells
 
Upvote 0

Forum statistics

Threads
1,215,011
Messages
6,122,677
Members
449,092
Latest member
tayo4dgacorbanget

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