Solved

Excel

Posted on 2009-05-19
3
171 Views
Last Modified: 2012-05-07
I have column A and Column B.  Both have dates.  If column A is bigger than column B, I can have column C indicate so by =if(A:1>B:1,1,0).  How do I get 1's and 0's dispersed through column C if Column A is 180 days older than Column B?  So, same theory as greather than less than, but with dates.  Thanks
0
Comment
Question by:weklica
3 Comments
 
LVL 50

Expert Comment

by:barry houdini
ID: 24424650
Try
=(B1-A1>=180)+0
regards, barry
0
 
LVL 59

Expert Comment

by:Saurabh Singh Teotia
ID: 24424657
Lets say you simply want to compare dates you can this assuming your value is in A1 and B1
=IF(AND(B1>180,A1>B1),1,0)
Saurabh...
0
 
LVL 92

Accepted Solution

by:
Patrick Matthews earned 250 total points
ID: 24424665
Dates are really just numbers behind the scenes, so same logic applies:

=IF((A2-B2)>=180,1,0)
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

This article discusses how to create an extensible mechanism for linked drop downs.
Some code to ensure data integrity when using macros within Excel. Also included code that helps secure your data within an Excel workbook.
This Micro Tutorial demonstrate the bugs in Microsoft Excel for Mac with Pivot Charts.
Many functions in Excel can make decisions. The most simple of these is the IF function: it returns a value depending on whether a condition you describe is true or false. Once you get the hang of using the IF function, you will find it easier to us…

863 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

22 Experts available now in Live!

Get 1:1 Help Now