Solved

Excel

Posted on 2009-05-19
3
170 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

What Is Threat Intelligence?

Threat intelligence is often discussed, but rarely understood. Starting with a precise definition, along with clear business goals, is essential.

Join & Write a Comment

This tutorial explains how to create a series of drop-down lists that are dependent upon prior selections to guide (“force”) the user to make the correct selection and reduce data errors within Microsoft Excel. Excel 2010 was used for this tutorial;…
These days socially coordinated efforts have turned into a critical requirement for enterprises.
The viewer will learn how to create and use a small PHP class to apply a watermark to an image. This video shows the viewer the setup for the PHP watermark as well as important coding language. Continue to Part 2 to learn the core code used in creat…
This Micro Tutorial will demonstrate in Microsoft Excel how to add style and sexy appeal to horizontal bar charts.

760 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

19 Experts available now in Live!

Get 1:1 Help Now