Solved

I need an excel formula

Posted on 2014-01-22
2
239 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
ID: 39800460
Why not use "conditional formating" ?
0
 
LVL 5

Accepted Solution

by:
Ubertam earned 500 total points
ID: 39800468
=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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

A little background as to how I came to I design this code: Around 5 years ago I designed an add-in that formatted Excel files to a corporate standard, applying different cell colours and font type depending on whether the cells contained inputs,…
Freeze panes is an option within all variants of Excel to enable parts of a sheet to remain stationary when the cursor is in another part of the sheet. This is a very useful feature which is overlooked or under used.
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.

863 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

27 Experts available now in Live!

Get 1:1 Help Now