Solved

Comparing dates

Posted on 2012-04-13
6
153 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 500 total points
ID: 37843206
Try

=IF(A1>A2,"A","B")
0
Maximize Your Threat Intelligence Reporting

Reporting is one of the most important and least talked about aspects of a world-class threat intelligence program. Here’s how to do it right.

 

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

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

Suggested Solutions

Title # Comments Views Activity
Recurring Excel Timelime for Veeam 2 35
VLOOKUP to a Closed Workbook 22 65
cannot get subtotal to work 8 18
Rearrange Macro 7 22
Introduction This Article briefly covers methods of calculating the NPV and IRR variants in Excel as well as the limitations in calculating and interpreting IRR results. Paraphrasing Richard Shockley, author of my favourite finance reference tex…
This article will guide you to convert a grid from a picture into Excel format using Microsoft OneNote and no other 3rd party application.
Viewers will learn the basics of slicers and timelines for both PivotTables and standard Excel tables in Excel 2013.
This Micro Tutorial demonstrate the bugs in Microsoft Excel for Mac with Pivot Charts.

762 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

Need Help in Real-Time?

Connect with top rated Experts

26 Experts available now in Live!

Get 1:1 Help Now