Thread: [Solved] Vlookup
View Single Post
 
Old 03-03-2012, 01:58 AM
Colin Legg's Avatar
Colin Legg Colin Legg is offline Windows 7 32bit Office 2010 32bit
Expert
 
Join Date: Jan 2011
Location: UK
Posts: 369
Colin Legg will become famous soon enough
Default

Sorry, I missed that you want the average and max as well.

Sum
=SUMIF(B2:B20,"Medical",C2:C20)

Average
=AVERAGEIF(B2:B20,"Medical",C2:C20)

Max (this is an array formula, CTRL+SHIFT+ENTER, not just ENTER)
=MAX(IF(B2:B20="Medical",C2:C20))

However, if you want to repeat this exercise for each division then you should use a pivot table. I have attached an example.
Attached Files
File Type: xlsx Test1.xlsx (14.1 KB, 11 views)
Reply With Quote