Look up with sumif

joes2580

New Member
Joined
Feb 18, 2015
Messages
36
Hi,

So what I am trying to accomplish is Cell B1-D1 is the dates 9/25/17-9/27/17. A5-A15 are my vendors listed B5 is where I would like to start inputting information. What I am trying to do is make a formula that looks up to a table on tab 2 (A3 "Vendor Name", B3 "Expense Category",C3 "invoice amount", D3 "Due Date") that will sum the expense categories related to the descriptions in the "A" Column and also by the date they are due (so a look up with a sum if with B1 as the cell with the date in it.) Thanks for any assistance. I cannot post attachments; apologies.
 

Excel Facts

Which came first: VisiCalc or Lotus 1-2-3?
Dan Bricklin and Bob Frankston debuted VisiCalc in 1979 as a Visible Calculator. Lotus 1-2-3 debuted in the early 1980's, from Mitch Kapor.
See if you can adapt this to your needs...
A​
B​
C​
D​
E​
F​
G​
H​
1​
4-Sep​
11-Sep​
18-Sep​
25-Sep​
2-Oct​
aa
9/25/2017​
2​
aa
1​
11​
21​
31​
41​
65​
3​
bb
2​
12​
22​
32​
42​
4​
cc
3​
13​
23​
33​
43​
5​
aa
4​
14​
24​
34​
44​
6​
bb
5​
15​
25​
35​
45​
7​
cc
6​
16​
26​
36​
46​
8​
21​
81​
141​
201​
261​
G1 and H1 are your criteria
H2=SUMIF($A$2:$A$7,G1,(INDEX($B$2:$F$7,0,MATCH(H1,$B$1:$F$1,0))))
 
Upvote 0
I'm not sure if the references are in the wrong spot but it keeps coming back with a 0 as the result.
 
Upvote 0

Forum statistics

Threads
1,216,060
Messages
6,128,549
Members
449,458
Latest member
gillmit

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