# Excel/Formul Trouble

Question
Hi,

I have data in ranges from 0-29,30-39,40-49,50,59,60-64, and 65 and over, and sub groups within the age ranges of EE,EC,ES,ESC (all using the same age ranges as listed above).

Each group and subgroup return a different number as well and here is the chart.

EE 0-29 = 1
EE 30-39 = 2
EE 40-49 = 3
EE 50-59 = 4
EE 60-64 = 5
EE 65+ = 6

EC 0-29 = 7
EC 30-39 = 8
EC 40-49 = 9
EC 50-59 = 10
EC 60-64 = 11
EC 65+ = 12

ES 0-29 = 13
ES 30-39 = 14
ES 40-49 = 15
ES 50-59 = 16
ES 60-64 = 17
ES 65+ = 18

ESC 0-29 = 19
ESC 30-39 = 20
ESC 40-49 = 21
ESC 50-59 = 22
ESC 60-64 = 23
ESC 56+ = 24

Please help me with a formula that will be able to incorporate all of this data. I know it will be a complex formula using IF, AND, and OR statements.

This looks like a job for VLOOKUP. You may also need some MATCH and INDEX in there too.

Be sure to visit my web site and watch my FREE 90-minute Microsoft Excel Video Tutorial

Cordially,
Richard Rost
Microsoft MVP
Computer Learning Zone
This topic answers questions related to Microsoft Excel spreadsheet (or workbook) stand-alone or Mircrosoft Office Excel including Excel 2003, Excel 2007, Office 2000, and Office XP. You can get Excel help on Excel formulas(or functions), Excell macros, charting in Excel, advanced features, and the general use of Excel. This does not provide a general Excel tutorial nor the basics of using a spreadsheet. It provides specific answers to using Microsoft Excel only. If you do not see your Excel question answered in this area then please ask an Excel question here

#### Richard Rost

##### Expertise

 I am the author of The Complete Idiot's Guide to Excel 2010.   I am happy to answer any questions about Microsoft Excel. If you have an Excel problem, let me help you with it. Also, please be sure to check the Excel Tips & Tricks and Excel Tutorials sections of my web site.   You can also watch my complete Excel 2010 For Beginners tutorial online which is over 90 minutes of FREE videos and an eBook.

##### Experience

I have been using Microsoft Excel since the very early Windows 3.1 versions. I have been teaching Microsoft Excel in the classroom since 1994, and online through computer tutorials since 2002.

Organizations
I have been volunteering on AllExperts in the categories of Microsoft Access, Visual Basic, and Weight Loss for years.

Publications
I am the author of The Complete Idiot's Guide to Excel 2010. I have created a line of computer tutorials online at www.ExcelLearningZone.com and www.599CD.com/Excel.

Education/Credentials
Personally, I am self taught. I've learned everything I know from books and trial & error. If I don't know the answer, I know how to find it.

Past/Present Clients
I have over 20,000 happy clients worldwide.