# Excel/Help on formula.

Question
Is there an easier way to write this formula?

=IF(C11="Redsand",50,IF(C11="Poncho",50,IF(C11="Hell Woman",50,IF(C11="Aldo's Yeller",50,IF(C11="Bob's Sorrel",50,IF(C11="Tommy",50,IF(C11="KC",50,IF(C11="Buckskin Filly",50,IF(C11="Trigger",50,IF(C11="Herby",50,IF(C11="Sandy",50,IF(C11="Frank",50,IF(C11="Jaycee's Bella",50,IF(C11="Oatmeal",70,IF(C11="Wally",70,IF(C11="AJ's Bella",70,IF(C11="Tony",70,IF(C11="OneNinetyTwo",70,IF(C11="Hobo",70,IF(C11="Johnny O",25,IF(C11="Blue",50,IF(C11="TC",50,IF(C11="Que",50,IF(C11="Whiskey",50,))))))))))))))))))))))))+IF(C12="Redsand",50,IF(C12="Poncho",50,IF(C12="Hell Woman",50,IF(C12="Aldo's Yeller",50,IF(C12="Bob's Sorrel",50,IF(C12="Tommy",50,IF(C12="KC",50,IF(C12="Buckskin Filly",50,IF(C12="Trigger",50,IF(C12="Herby",50,IF(C12="Sandy",50,IF(C12="Frank",50,IF(C12="Jaycee's Bella",50,IF(C12="Oatmeal",70,IF(C12="Wally",70,IF(C12="AJ's Bella",70,IF(C12="Tony",70,IF(C12="OneNinetyTwo",70,IF(C12="Hobo",70,IF(C12="Johnny O",25,IF(D12="Tony",70)))))))))))))))))))))+IF(C13="Redsand",50,IF(C13="Poncho",50,IF(C13="Hell Woman",50,IF(C13="Aldo's Yeller",50,IF(C13="Bob's Sorrel",50,IF(C13="Tommy",50,IF(C13="KC",50,IF(C13="Buckskin Filly",50,IF(C13="Trigger",50,IF(C13="Herby",50,IF(C13="Sandy",50,IF(C13="Frank",50,IF(C13="Jaycee's Bella",50,IF(C13="Oatmeal",70,IF(C13="Wally",70,IF(C13="AJ's Bella",70,IF(C13="Tony",70,IF(C13="OneNinetyTwo",70,IF(C13="Hobo",70,IF(C13="Johnny O",25,IF(D13="Tony",70)))))))))))))))))))))+IF(C14="Redsand",50,IF(C14="Poncho",50,IF(C14="Hell Woman",50,IF(C14="Aldo's Yeller",50,IF(C14="Bob's Sorrel",50,IF(C14="Tommy",50,IF(C14="KC",50,IF(C14="Buckskin Filly",50,IF(C14="Trigger",50,IF(C14="Herby",50,IF(C14="Sandy",50,IF(C14="Frank",50,IF(C14="Jaycee's Bella",50,IF(C14="Oatmeal",70,IF(C14="Wally",70,IF(C14="AJ's Bella",70,IF(C14="Tony",70,IF(C14="OneNinetyTwo",70,IF(C14="Hobo",70,IF(C14="Johnny O",25,IF(D14="Tony",70)))))))))))))))))))))+IF(C15="Redsand",50,IF(C15="Poncho",50,IF(C15="Hell Woman",50,IF(C15="Aldo's Yeller",50,IF(C15="Bob's Sorrel",50,IF(C15="Tommy",50,IF(C15="KC",50,IF(C15="Buckskin Filly",50,IF(C15="Trigger",50,IF(C15="Herby",50,IF(C15="Sandy",50,IF(C15="Frank",50,IF(C15="Jaycee's Bella",50,IF(C15="Oatmeal",70,IF(C15="Wally",70,IF(C15="AJ's Bella",70,IF(C15="Tony",70,IF(C15="OneNinetyTwo",70,IF(C15="Hobo",70,IF(C15="Johnny O",25))))))))))))))))))))+IF(C16="Redsand",50,IF(C16="Poncho",50,IF(C16="Hell Woman",50,IF(C16="Aldo's Yeller",50,IF(C16="Bob's Sorrel",50,IF(C16="Tommy",50,IF(C16="KC",50,IF(C16="Buckskin Filly",50,IF(C16="Trigger",50,IF(C16="Herby",50,IF(C16="Sandy",50,IF(C16="Frank",50,IF(C16="Jaycee's Bella",50,IF(C16="Oatmeal",70,IF(C16="Wally",70,IF(C16="AJ's Bella",70,IF(C16="Tony",70,IF(C16="OneNinetyTwo",70,IF(C16="Hobo",70,IF(C16="Johnny O",25,IF(D16="Tony",70)))))))))))))))))))))+IF(C17="Redsand",50,IF(C17="Poncho",50,IF(C17="Hell Woman",50,IF(C17="Aldo's Yeller",50,IF(C17="Bob's Sorrel",50,IF(C17="Tommy",50,IF(C17="KC",50,IF(C17="Buckskin Filly",50,IF(C17="Trigger",50,IF(C17="Herby",50,IF(C17="Sandy",50,IF(C17="Frank",50,IF(C17="Jaycee's Bella",50,IF(C17="Oatmeal",70,IF(C17="Wally",70,IF(C17="AJ's Bella",70,IF(C17="Tony",70,IF(C17="OneNinetyTwo",70,IF(C17="Hobo",70,IF(C17="Johnny O",25,IF(D17="Tony",70)))))))))))))))))))))+IF(C18="Redsand",50,IF(C18="Poncho",50,IF(C18="Hell Woman",50,IF(C18="Aldo's Yeller",50,IF(C18="Bob's Sorrel",50,IF(C18="Tommy",50,IF(C18="KC",50,IF(C18="Buckskin Filly",50,IF(C18="Trigger",50,IF(C18="Herby",50,IF(C18="Sandy",50,IF(C18="Frank",50,IF(C18="Jaycee's Bella",50,IF(C18="Oatmeal",70,IF(C18="Wally",70,IF(C18="AJ's Bella",70,IF(C18="Tony",70,IF(C18="OneNinetyTwo",70,IF(C18="Hobo",70,IF(C18="Johnny O",25,IF(D18="Tony",70)))))))))))))))))))))+IF(C19="Redsand",50,IF(C19="Poncho",50,IF(C19="Hell Woman",50,IF(C19="Aldo's Yeller",50,IF(C19="Bob's Sorrel",50,IF(C19="Tommy",50,IF(C19="KC",50,IF(C19="Buckskin Filly",50,IF(C19="Trigger",50,IF(C19="Herby",50,IF(C19="Sandy",50,IF(C19="Frank",50,IF(C19="Jaycee's Bella",50,IF(C19="Oatmeal",70,IF(C19="Wally",70,IF(C19="AJ's Bella",70,IF(C19="Tony",70,IF(C19="OneNinetyTwo",70,IF(C19="Hobo",70,IF(C19="Johnny O",25,IF(D19="Tony",70)))))))))))))))))))))+IF(C20="Redsand",50,IF(C20="Poncho",50,IF(C20="Hell Woman",50,IF(C20="Aldo's Yeller",50,IF(C20="Bob's Sorrel",50,IF(C20="Tommy",50,IF(C20="KC",50,IF(C20="Buckskin Filly",50,IF(C20="Trigger",50,IF(C20="Herby",50,IF(C20="Sandy",50,IF(C20="Frank",50,IF(C20="Jaycee's Bella",50,IF(C20="Oatmeal",70,IF(C20="Wally",70,IF(C20="AJ's Bella",70,IF(C20="Tony",70,IF(C20="OneNinetyTwo",70,IF(C20="Hobo",70,IF(C20="Johnny O",25,IF(D20="Tony",70)))))))))))))))))))))

Absolutely.  You need a lookup table.  Let's build one on Sheet2 in A1:B25, looks like pic #1.

Then let's use this array formula to do those multiple lookups in Pic2 as cell F11:
`=SUM(LOOKUP(C11:C20, Sheet2!A1:B25))`

This is an array formula, so after entering the formula you confirm the entry by pressing CTRL+SHIFT+ENTER to activate the array, not just ENTER.  After pressing CTRL+SHIFT+ENTER you will see curly braces appear around your formula, this is your visual confirmation an array is active.

The array will run the LOOKUP() formula for each of the cells C11:C20, then the SUM() will collect those array values into a single answer.
Questioner's Rating
 Rating(1-10) Knowledgeability = 10 Clarity of Response = 10 Politeness = 10 Comment No Comment

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

#### Jerry Beaucaire

##### Expertise

Excel Formulas, macros, automation. Microsoft Excel MVP - 2010. Code site with free code snippets and techniques: http://sites.madrocketscientist.com/jerrybeaucaires-excelassistant/files

##### Experience

Microsoft Excel MVP - 2010. I have my own extensive Excel help/code site: http://sites.madrocketscientist.com/jerrybeaucaires-excelassistant/files ===================== I have been offering free assistance as an Excel aid on many web sites for many years: (http://www.excelforum.com - JBeaucaire) ======== (http://www.askmehelpdesk.com/spreadsheets - JBeaucaire) ======= (http://www.mrexcel.com/forum - jbeaucaire)

Education/Credentials
Bachelor's Degree from Azusa Pacific University in Mathematics and Music Composition

Awards and Honors
Microsoft Excel MVP 2010