SUMIF & VLOOKUP Function

Mark Sanders

New Member
Joined
Dec 18, 2009
Messages
12
Dear helpers,

I am having difficulty creating a formula that I believe requires both a SUMIF and VLOOKUP function. I have been looking through other forums and Excel online help for a solution however haven't found one.

My table looks like this:

Row / ColumnABCDE
1DateSourceCostDateTotal
24-MarPhone bill $ 55.00 1-Mar
36-MarPower $ 125.00 2-Mar
47-MarPetrol $ 34.00 3-Mar
57-MarToms Present $ 20.00 4-Mar
614-MarLunch & Choc $ 8.50 5-Mar
715-MarGroceries $ 22.00 6-Mar
8 7-Mar
9 8-Mar
10 9-Mar
11 10-Mar
12 11-Mar
13 12-Mar
14 13-Mar
15 14-Mar
16 15-Mar
17 16-Mar

<colgroup><col style="width: 85pt; mso-width-source: userset; mso-width-alt: 3616;" width="113"> <col style="width: 66pt;" width="88"> <col style="width: 74pt; mso-width-source: userset; mso-width-alt: 3168;" span="2" width="99"> <col style="width: 66pt;" span="2" width="88"> <tbody>
</tbody>

The formula I want to create needs to be entered in cell E2, with the solution being the sum of cost (column C) for the referenced day in the previous column. Eg. the formula looks up D2 amongst the array A2:C17 and provides the total. The 7-Mar referenece (cell E8) shoud equal $54.

I hope this makes sense and would appreciate any advice. If there is any online information a helper can steer me too (or a formula) I will be very thankful.

Best wishes,

Mark Sanders
 

Excel Facts

How can you turn a range sideways?
Copy the range. Select a blank cell. Right-click, Paste Special, then choose Transpose.
In E2 and copy down:
=SUMIF($A$2:$A$7,D2,$C$2:$C$7)
 
Upvote 0

Forum statistics

Threads
1,215,611
Messages
6,125,829
Members
449,266
Latest member
davinroach

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