Solved

I need an excel formula

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

MS Dynamics Made Instantly Simpler

Make Your Microsoft Dynamics Investment Count  & Drastically Decrease Training Time by Providing Intuitive Step-By-Step WalkThru Tutorials.

Question has a verified solution.

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

This article will guide you to convert a grid from a picture into Excel format using Microsoft OneNote and no other 3rd party application.
This article descibes how to create a connection between Excel and SAP and how to move data from Excel to SAP or the other way around.
This Micro Tutorial will demonstrate in Google Sheets how to use the HYPERLINK function to create live links inside your spreadsheet.
Finds all prime numbers in a range requested and places them in a public primes() array. I've demostrated a template size of 30 (2 * 3 * 5) but larger templates can be built such 210  (2 * 3 * 5 * 7) or 2310  (2 * 3 * 5 * 7 * 11). The larger templa‚Ķ

728 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