Learn how to a build a cloud-first strategyRegister Now

x
?
Solved

Comparing dates

Posted on 2012-04-13
6
Medium Priority
?
162 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
  • 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 2000 total points
ID: 37843206
Try

=IF(A1>A2,"A","B")
0
What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

 

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

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

This code takes an Excel list of URL’s and adds a header titled “URL List”. It then searches through all URL’s in column “A”, looking for duplicates. When a duplicate is found, it is moved to the top of the list. The duplicate URL’s are then highlig…
When you see single cell contains number and text, and you have to get any date out of it seems like cracking our heads.
The viewer will learn how to use a discrete random variable to simulate the return on an investment over a period of years, create a Monte Carlo simulation using the discrete random variable, and create a graph to represent the possible returns over…
This Micro Tutorial demonstrates how to create Excel charts: column, area, line, bar, and scatter charts. Formatting tips are provided as well.

804 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