Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

network23

macrumors 6502
Original poster
Dec 18, 2002
278
4
Illinois
I'm sure this is easy to answer by someone with basic spreadsheet skills, which I lack...

I have a column of numbers (miles) and a column of use (Personal, Medical, Business).

How do I set up 3 formulas so that I get the sum of the mileage column for each of the Personal, Medical, and Business categories?

Thanks!
 

mysterytramp

macrumors 65816
Jul 17, 2008
1,334
4
Maryland
What you want is the SUMIF command.

=SUMIF([range of labels],[label to test],[range of miles])

The spreadsheet below used this formula:

=SUMIF(C2:C6,"Medical",B2:B6)

mt
 

Attachments

  • Screen shot 2010-03-13 at 8.58.26 AM.png
    Screen shot 2010-03-13 at 8.58.26 AM.png
    24.6 KB · Views: 170
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.