i please need a formula to give a result based on data in two separate columns

thumper64

New Member
Joined
Aug 1, 2010
Messages
7
Hi all,

tried for 3 days but just can't crack this one.
i have a table with column headings DATE, EXPENSE,AMOUNT with a drop down menu on the expense column listing fuel,insurance,maintenance etc. then i manually enter the amount.

Away from the table i need to total items purchased
Between certain dates AND Type of expense.

eg Fall between Jan1st to March31st AND says "fuel" in the expenses column.= ????

Fall between Jan1st to March31st AND says "insurance" in the expenses column= ????

Fall between Jan1st to March31st AND says "maintenance" in the expenses column=????


I hope this makes sense

Thank you in anticipation

thumper64 (phil)
<!-- / message --><!-- BEGIN TEMPLATE: ad_showthread_firstpost_sig --><!-- END TEMPLATE: ad_showthread_firstpost_sig -->
 

Excel Facts

Pivot Table Drill Down
Double-click any number in a pivot table to create a new report showing all detail rows that make up that number

AlphaFrog

MrExcel MVP
Joined
Sep 2, 2009
Messages
16,416
If you have Excel 2007 or later, you could use the SUMIFS function e.g.
Code:
=SUMIFS(C:C, A:A, ">="&DateValue("1/1/2010"), A:A, "<="&DateValue("3/31/2010"), B:B, "Fuel")

IF you have Excel 2003 or earlier, Use the SUMPRODUCT function...
Code:
=SUMPRODUCT((C1:C100)*(A1:A100>=DATEVALUE("1/1/2010"))*(A1:A100<=DATEVALUE("3/31/2010"))*(B1:B100="Fuel"))
 

thumper64

New Member
Joined
Aug 1, 2010
Messages
7
SOLVED .... i please need a formula to give a result based on data in two separate columns

Thank you you are a genius!!! quick too!!

thumper64 (phil)
 

Watch MrExcel Video

Forum statistics

Threads
1,132,742
Messages
5,655,034
Members
418,171
Latest member
ramiroayala

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
Top