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

Did you know Excel offers Filter by Selection?
Add the AutoFilter icon to the Quick Access Toolbar. Select a cell containing Apple, click AutoFilter, and you will get all rows with Apple
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,215,472
Messages
6,125,011
Members
449,204
Latest member
tungnmqn90

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