You are here:

# Excel/sum cells

Question
I have several contractors whose payroll I do in Excel.  They are broken down by sheet.  On the front sheet if have a formula that sums up different aspects of their pay.  Of of those aspects is paid mileage. this is determined by the number of miles they drive and go into an if then formula that determines the pay rate. When I try to add the pay boxes up it gives me an inconsistency error.

=SUM(Christa:End!I81:I82)  (Formula getting error)

=IF(H81>150,"75",IF(H81>120,"60",IF(H81>90,"45", IF(H81>59,"30",("0")))))

There's nothing wrong with your first formula. It works for me.  The only reason I can think it might error is if there is an error in one of those two "sum" cells on one of the sheets.  Check them all.

The second formula could simplify down to:

=LOOKUP(H81, {0,60,91,121,151}, {0,30,45,60,75})
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