Date great or lower and equals

lyptikal

New Member
Joined
Aug 4, 2017
Messages
4
Hi First post on here as i'm racking my brains

i have a formula on 2 cells to tell me if 1 date is greater than another, the only trouble is if there is a date that is the same it tells me its lower when i need it to tell me its greater

does anyone know what i can add to tell me when a date is equal and also when there is only 1 date as well as if a date is greater :)

Here is the formula =IF(G2>H2,"✓","X")

in my book i have it setup like this

Target Date | Appointment date
01/08/2107 04/08/2017

The formula above will tell me this is out of target

im importing info for the whole month from another spreadsheet that i need to tell me whats in target whats out of target and what doesn't have an appointment date

Any help is greatly appreciated :eeek:
 

Excel Facts

Who is Mr Spreadsheet?
Author John Walkenbach was Mr Spreadsheet until his retirement in June 2019.
Welcome to the forums!

Try:

=IF(G2>=H2,"✓","X"
 
Upvote 0
Thanks,

ah almost there, that has brought the dates tat are equal to in target, but the dates that dont have an appointment are still showing as appointed

almost there
 
Upvote 0
Lets try:

=IF(OR(G2< H2,H2=""),"X","✓")

This checks to see if G2 is less than H2 OR if H2 is Blank, then return "X", else return "✓".
 
Last edited:
Upvote 0
Try:

=IF(OR(G2="",H2=""),"",IF(G2>=H2,"✓","X"))
 
Upvote 0
if it helps it displays like this


Target Appointment
[TABLE="width: 165"]
<tbody>[TR]
[TD]17/08/2017[/TD]
[TD]16/08/2017[/TD]
[/TR]
[TR]
[TD]17/08/2017[/TD]
[TD]17/08/2017[/TD]
[/TR]
[TR]
[TD]18/08/2017[/TD]
[TD]07/08/2017[/TD]
[/TR]
[TR]
[TD]18/08/2017[/TD]
[TD] -[/TD]
[/TR]
[TR]
[TD]18/08/2017[/TD]
[TD]10/08/2017[/TD]
[/TR]
</tbody>[/TABLE]

Maybe use the - symbol to trigger and different response to X and
 
Upvote 0

Forum statistics

Threads
1,224,823
Messages
6,181,184
Members
453,020
Latest member
Mohamed Magdi Tawfiq Emam

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