Solved

I need an excel formula

Posted on 2014-01-22
2
226 Views
Last Modified: 2014-01-22
I need an excel formula to look at the date values of cells and return, "Happy" or "Very Happy" or Blank

If The Date in Column B is AFTER the Date in Column A, but BEFORE the date in Column C, return "Happy"

If the Date in Column B is AFTER the Date in Column C, return "Very Happy"

If neither apply, return blank.

Wrapping it to ignore errors would be greatly appreciated.
Ex-Ech-1-212-14.xlsx
0
Comment
Question by:wrt1mea
2 Comments
 
LVL 18

Expert Comment

by:x-men
Comment Utility
Why not use "conditional formating" ?
0
 
LVL 5

Accepted Solution

by:
Ubertam earned 500 total points
Comment Utility
=IF(AND(B2>A2,C2>B2),"Happy",IF(B2>C2,"Very Happy",""))

Open in new window


The first condition uses the AND formula to verify two (or more) conditions are met.  Both conditions must return true to qualify.  If the both return true, then the value is "Happy."  If they fail, the nested IF statement checks that B2 is greater than C2.  If it is, it gets "Very Happy."  If that fails, it remains blank.
0

Featured Post

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

Sparklines have been introduced with Excel 2010 and are a useful tool for creating small in-cell charts, used for example in dashboards. Excel 2010 offers three different types of Sparklines: Line, Column and Win/Loss. What it does not offer is a…
Dealing with unintended Excel Active-X resizing quirks (VBA code simulates "self correction") David Miller (dlmille) Intro Not everyone is a fan of Active-X controls in spreadsheets (as opposed to the UserForm approach, the older Form controls …
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 …
This Micro Tutorial will demonstrate the scrolling table in Microsoft Excel using the INDEX function.

762 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

12 Experts available now in Live!

Get 1:1 Help Now