Solved

Excel

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

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

This article discusses four methods for overlaying images in a container on a web page
How to get Spreadsheet Compare 2016 working with the 64 bit version of Office 2016
This Micro Tutorial will demonstrate how to use longer labels with horizontal bar charts instead of the vertical column chart.
This Micro Tutorial will demonstrate in Google Sheets how to use the HYPERLINK function to create live links inside your spreadsheet.

679 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