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

Create a chart in one keystroke
Select the data and press Alt+F1 to insert a default chart. You can change the default chart to any chart type
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"))
 
Upvote 0
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)
 
Upvote 0

Forum statistics

Threads
1,214,847
Messages
6,121,911
Members
449,054
Latest member
luca142

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