Solved

I need an excel formula

Posted on 2014-01-22
2
252 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

Free Tool: Postgres Monitoring System

A PHP and Perl based system to collect and display usage statistics from PostgreSQL databases.

One of a set of tools we are providing to everyone 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

Introduction This Article is a follow-up to my Mappit! Addin Article (http://www.experts-exchange.com/A_2613.html), it was inspired by an email posting I made to EUSPRIG (http://www.eusprig.org/index.htm), I will briefly cover: 1) An overvie…
Introduction While answering a recent question (http:/Q_27311462.html), I created an alternative function to the Excel Concatenate() function that you might find useful.  I tested several solutions and share the results in this article as well as t…
This Micro Tutorial will demonstrate on a Mac how to change the sort order for chart legend values and decrpyt the intimidating chart menu.
Although Jacob Bernoulli (1654-1705) has been credited as the creator of "Binomial Distribution Table", Gottfried Leibniz (1646-1716) did his dissertation on the subject in 1666; Leibniz you may recall is the co-inventor of "Calculus" and beat Isaac…

828 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