Sum of values based on Adjacent Cell contents

homer09001

New Member
Joined
Apr 29, 2011
Messages
2
Basicaly i have a spreadsheet to monitor my expenditure each month, three columns: "Out", "In" and "What", the What Column is conditional formatted based on specific text with 3 different categories "Monthly Bill", "Necessity" and "Luxury", what i want to do it total each of these 3 categories but obvisouly each of the 3 categories have many different types of outgoing under them.

So my question is how can i calculate the total of each of the 3 categories, i did find this formulae on this forum:
=SUMIF(C1:C10,"Cinema",A1:A10)
but i don't know how i could modify to count more specific texts?

 

Excel Facts

Return population for a City
If you have a list of cities in A2:A100, use Data, Geography. Then =A2.Population and copy down.
If you create 3 lists, one each for all possible types of monthly bills, necessities and luxuries......and then name those ranges using the category names you have in E4:E6, you can then use this formula in F4 copied to F6

=SUMPRODUCT(SUMIF(C:C,INDIRECT(E4),A:A))
 
Upvote 0
If you create 3 lists, one each for all possible types of monthly bills, necessities and luxuries......and then name those ranges using the category names you have in E4:E6, you can then use this formula in F4 copied to F6

=SUMPRODUCT(SUMIF(C:C,INDIRECT(E4),A:A))

Thanks works a charm, although is there any way i can have the lists on a separate sheet and have this formulae still work?
 
Upvote 0

Forum statistics

Threads
1,224,503
Messages
6,179,134
Members
452,890
Latest member
Nikhil Ramesh

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top