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

Square and cube roots
The =SQRT(25) is a square root. For a cube root, use =125^(1/3). For a fourth root, use =625^(1/4).
See if you can adapt this to your needs...
[Table="width:, class:grid"][tr][td] [/td][td]
A​
[/td][td]
B​
[/td][td]
C​
[/td][td]
D​
[/td][td]
E​
[/td][td]
F​
[/td][td]
G​
[/td][td]
H​
[/td][/tr]
[tr][td]
1​
[/td][td][/td][td]
4-Sep​
[/td][td]
11-Sep​
[/td][td]
18-Sep​
[/td][td]
25-Sep​
[/td][td]
2-Oct​
[/td][td]aa[/td][td]
9/25/2017​
[/td][/tr]

[tr][td]
2​
[/td][td]aa[/td][td]
1​
[/td][td]
11​
[/td][td]
21​
[/td][td]
31​
[/td][td]
41​
[/td][td][/td][td]
65​
[/td][/tr]

[tr][td]
3​
[/td][td]bb[/td][td]
2​
[/td][td]
12​
[/td][td]
22​
[/td][td]
32​
[/td][td]
42​
[/td][td][/td][td][/td][/tr]

[tr][td]
4​
[/td][td]cc[/td][td]
3​
[/td][td]
13​
[/td][td]
23​
[/td][td]
33​
[/td][td]
43​
[/td][td][/td][td][/td][/tr]

[tr][td]
5​
[/td][td]aa[/td][td]
4​
[/td][td]
14​
[/td][td]
24​
[/td][td]
34​
[/td][td]
44​
[/td][td][/td][td][/td][/tr]

[tr][td]
6​
[/td][td]bb[/td][td]
5​
[/td][td]
15​
[/td][td]
25​
[/td][td]
35​
[/td][td]
45​
[/td][td][/td][td][/td][/tr]

[tr][td]
7​
[/td][td]cc[/td][td]
6​
[/td][td]
16​
[/td][td]
26​
[/td][td]
36​
[/td][td]
46​
[/td][td][/td][td][/td][/tr]

[tr][td]
8​
[/td][td][/td][td]
21​
[/td][td]
81​
[/td][td]
141​
[/td][td]
201​
[/td][td]
261​
[/td][td][/td][td][/td][/tr]
[/table]

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,224,827
Messages
6,181,197
Members
453,022
Latest member
RobertV1609

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