Solved

If Statement not returning correct  results

Posted on 2013-06-09
4
337 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
  • 2
  • 2
4 Comments
 
LVL 45

Accepted Solution

by:
Martin Liss earned 500 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 45

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

Do You Know the 4 Main Threat Actor Types?

Do you know the main threat actor types? Most attackers fall into one of four categories, each with their own favored tactics, techniques, and procedures.

Join & Write a Comment

Summary In SharePoint 2010 it is easy to create custom color themes to jazz up a site. Theme colors can also be created in PowerPoint 2010 with a few clicks. But how do the chosen colors actually look in the SharePoint site? The attached PowerPoint…
We had a requirement to extract data from a SharePoint 2010 Customer List into a CSV file and then place the CSV file into a directory on the network so that the file could be consumed by an AS400 system. I will share in Part 1 how to Extract the Da…
This Micro Tutorial will demonstrate on a Mac how to change the sort order for chart legend values and decrpyt the intimidating chart menu.
This Micro Tutorial will demonstrate the scrolling table in Microsoft Excel using the INDEX function.

758 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

20 Experts available now in Live!

Get 1:1 Help Now