Get the amount from one sheet using two criteria of another

Mikahl

New Member
Joined
Jul 15, 2012
Messages
8
Hi guys,

I am trying to get the amount from one sheet to populate into cells in a second sheet using two criteria from the second sheet:

Rows = Account number
Columns = Dates

The first sheet is a sales log that lists the date, account number, and the amount. I want to use columns with dates to compare against rows with acct numbers from the second sheet to get the amounts. I was going to combine vlookup and hlookup but it started to get ridiculous rather quickly. I've searched around and it looks like index and match would work. But I don't know how to do that with two sheets.

I have attached the example.

Thank you very much for any help you can offer.


Sheet1

DATEACCT DEBIT
7/5/20121 63,838.45
7/5/20121 51,968.36
7/5/20127 26,598.81
7/2/20125 26,340.81
7/6/20123 25,462.57
7/2/20128 25,203.78
7/9/20122 24,843.50
7/10/20122 24,711.19
7/3/20122 24,630.80
7/4/20129 24,594.51
7/4/20128 24,561.19
7/5/20127 24,534.53
7/6/20127 24,502.24
7/9/20126 24,410.81
7/7/20126 24,347.97
7/3/20126 24,027.44
7/2/20121 23,923.56
7/3/20124 23,195.19
7/9/20123 23,022.71
7/5/20128 22,867.72
7/4/20129 22,864.61
7/5/20122 22,796.41

<tbody>
</tbody>


Sheet2

ACCT7/2/20127/3/20127/4/20127/5/20127/6/2012
1
2
3
4
5
6
7
8
9

<tbody>
</tbody>
 
I am just using the sheet1 to populate sheet2. It is a GL that I am using to populate various spreads for different factors.
 
Upvote 0

Excel Facts

Add Bullets to Range
Select range. Press Ctrl+1. On Number tab, choose Custom. Type Alt+7 then space then @ sign (using 7 on numeric keypad)
I figured it out. I really wish I had the time and money for the 3 month course. I don't. I am very thankful for this forum. And Robert, thank you very much sir. I can now start finding the total amount of a loan payment lost by one of our younger staff members. He needs a communications course and that may be in his immediate future :) Thanks again.
 
Upvote 0

Excel 2010
ABC
1DATEACCTDEBIT
27/5/2012163,838.45
37/5/2012151,968.36
47/5/2012726,598.81
57/2/2012526,340.81
67/6/2012325,462.57
77/2/2012825,203.78
87/9/2012224,843.50
97/10/2012224,711.19
107/3/2012224,630.80
117/4/2012924,594.51
127/4/2012824,561.19
137/5/2012724,534.53
147/6/2012724,502.24
157/9/2012624,410.81
167/7/2012624,347.97
177/3/2012624,027.44
187/2/2012123,923.56
197/3/2012423,195.19
207/9/2012323,022.71
217/5/2012822,867.72
227/4/2012922,864.61
237/5/2012222,796.41
Sheet1



Excel 2010
ABCDEF
1ACCT7/2/20127/3/20127/4/20127/5/20127/6/2012
2123923.5600115806.80
32024630.8022796.410
43000025462.57
54023195.19000
6526340.810000
76024027.44000
8700051133.3424502.24
9825203.78024561.1922867.720
1090047459.1200
11
Sheet2
Cell Formulas
RangeFormula
B2=SUMPRODUCT(--(Sheet1!$A$2:$A$23=B$1),--(Sheet1!$B$2:$B$23=$A2),--(Sheet1!$C$2:$C$23))


Are you data in exactky same format as mine an the formula ranges are as in mine?

If you start you ranges like this(from headings)
=SUMPRODUCT(--(Sheet1!$A$1:$A$23=B$1),--(Sheet1!$B$1:$B$23=$A2),--(Sheet1!$C$1:$C$23))

you wil get this error .
 
Upvote 0
I was just missing the dashes. So We're golden now! Everything works! Thank you very much, sir!
 
Upvote 0
Hi Robert,

Just a small question how were you able to post excel data to the forum as I am unable to do the same..

Thanks in advance..

all4excel
 
Upvote 0

Forum statistics

Threads
1,214,919
Messages
6,122,259
Members
449,075
Latest member
staticfluids

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