Solved

excel formula

Posted on 2013-05-11
2
245 Views
Last Modified: 2013-06-06
I an looking for an excel formula

in my xls I have a birthdate field column a, I would like column b to be

U9 if column A > 8/31/2003
U11 if column A > 8/31/2001 and < 9/1/2003
U13 if column A > 8/31/1999 and < 9/1/2001
U15 if column A > 8/31/1997 and < 9/1/1999
HS if column A < 9/1/1999
0
Comment
Question by:Matt Pinkston
  • 2
2 Comments
 
LVL 80

Expert Comment

by:byundt
ID: 39158910
You might try a formula like:
=IF(A1="","",LOOKUP(A1, DATE({0,1997,1999,2001,2003},9,1),{"HS","U15","U13","U11","U9"}))

It wasn't clear what the criteria for HS should be from the question. I assumed that it was before 9/1/1997, and that you wrote < 9/1/1999 in error.
0
 
LVL 80

Accepted Solution

by:
byundt earned 500 total points
ID: 39158913
You could also use a VLOOKUP formula using a table in cells N1:O6 like:
Date          Category
0                  HS
9/1/1997      U15
9/1/1999      U13
9/1/2001      U11
9/1/2003      U9

The VLOOKUP formula would be:
=IF(A1="","",VLOOKUP(A1,N$2:O$6,2))

Both methods are shown in the attached file
AgeRatedQ28125399.xlsx
0

Featured Post

Highfive + Dolby Voice = No More Audio Complaints!

Poor audio quality is one of the top reasons people don’t use video conferencing. Get the crispest, clearest audio powered by Dolby Voice in every meeting. Highfive and Dolby Voice deliver the best video conferencing and audio experience for every meeting and every room.

Join & Write a Comment

Drop Down List with Unique/Distinct Values (Part II - ComboBox or ListBox and Data Validation List Bonus!) David Miller (dlmille) Intro This article focuses on delivering unique, sorted lists to list objects (e.g., ComboBox, ListBox) and Dat…
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…
The viewer will learn how to use a discrete random variable to simulate the return on an investment over a period of years, create a Monte Carlo simulation using the discrete random variable, and create a graph to represent the possible returns over…
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 …

759 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

18 Experts available now in Live!

Get 1:1 Help Now