Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

If Statement not returning correct  results

Posted on 2013-06-09
4
Medium Priority
?
397 Views
Last Modified: 2013-06-09
Hi Experts,

I have a workbook that contains a sheet populated from a SharePoint site.

Within this sheet I am attempting to add calculated columns for a pivot table.

This is a simple test formula I have inserted in cells W:
=IF((Y2 > X2), "Inflow","Continued")

The results are in the attached file (with the 3 columns and a few rows copied to a new book).

This formula is returning "Continued" whether the date in column Y is greater than the date in column X.

I am looking for it to return "Inflow" if the date in Y is older than the date in X, and "Continued" if the date in Y is more recent than the date in X.

What am I doing wrong?

Thanks
Book5.xls
0
Comment
Question by:SASnewbie
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
  • 2
4 Comments
 
LVL 49

Accepted Solution

by:
Martin Liss earned 2000 total points
ID: 39233035
The columns in your posted sheet don't match your description of the problem and do you realize that the years in column B are 2103 rather than 2013?
0
 

Author Comment

by:SASnewbie
ID: 39233044
Wow.....

Looking at it so long, I didn't even see that!

Corrected the year, and it works just fine.

Thank you!
0
 
LVL 49

Expert Comment

by:Martin Liss
ID: 39233048
You're welcome and I didn't see it at first either:)

Marty - MVP 2009 to 2013
0
 

Author Comment

by:SASnewbie
ID: 39233050
:)
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 article describes a serious pitfall that can happen when deleting shapes using VBA.
This article describes how you can use Custom Document Properties to store settings and other information in your workbook so that they will be available the next time you open the workbook.
The viewer will learn how to create two correlated normally distributed random variables in Excel, use a normal distribution to simulate the return on different levels of investment in each of the two funds over a period of ten years, and, create a …
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…

618 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