Solved

Comparing dates

Posted on 2012-04-13
6
158 Views
Last Modified: 2012-04-13
Excel 2003.  I have two cells with dates A1, B1

I'm trying to compare the dates with results in cell C1 using:

=IF(A1>B1,"A","B")

However my results are always "A".  I've tried the date in mm/dd/yyyy and mm-dd-yyyy with no change in the results.

I believe I have compared dates like this before.  In ideas why this is not working?

Thank you.
0
Comment
Question by:thandel
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
  • 2
  • 2
6 Comments
 
LVL 43

Expert Comment

by:Saqib Husain, Syed
ID: 37843195
It should work. Maybe the dates are just text.

Can you upload a sample file?
0
 

Author Comment

by:thandel
ID: 37843203
OK here is the file, pretty straight forward.  I'm pulling my hair out.
Dates.xls
0
 
LVL 43

Accepted Solution

by:
Saqib Husain, Syed earned 500 total points
ID: 37843206
Try

=IF(A1>A2,"A","B")
0
Creating Instructional Tutorials  

For Any Use & On Any Platform

Contextual Guidance at the moment of need helps your employees/users adopt software o& achieve even the most complex tasks instantly. Boost knowledge retention, software adoption & employee engagement with easy solution.

 

Author Comment

by:thandel
ID: 37843262
Oh you mean if I acutally refer to the correct cells it might work?!?!  

LOL!!!! Thanks I need more coffee.
0
 
LVL 7

Expert Comment

by:karunamoorthy
ID: 37843270
My dear chandel,
What you dis was, your data was in A1 and A2 cell instead of A1 and B1 cell.
Use formula
=IF(A1>A2,"A","B")
then your comparison will work.

from
KArunamoorthy
0
 
LVL 7

Expert Comment

by:karunamoorthy
ID: 37843273
post your remakrs pl.
0

Featured Post

Instantly Create Instructional Tutorials

Contextual Guidance at the moment of need helps your employees adopt to new software or processes instantly. Boost knowledge retention and employee engagement step-by-step with one easy solution.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

In Part II of this series, I will discuss how to identify all open instances of Excel and enumerate the workbooks, spreadsheets, and named ranges within each of those instances.
This article describes how to use a set of graphical playing cards to create a Draw Poker game in Excel or VB6.
The viewer will learn how to create two correlated normally distributed random variables in Excel, use a normal distribution to simulate the return on different levels of investment in each of the two funds over a period of ten years, and, create a …
This Micro Tutorial will demonstrate how to use longer labels with horizontal bar charts instead of the vertical column chart.

688 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question