Two Vlookup and provide total of given account number

bhatipuru

New Member
Joined
Jun 25, 2012
Messages
20
Data
10/01/12</SPAN>2000</SPAN>3000</SPAN>4000</SPAN>5000</SPAN>6000</SPAN>
1A</SPAN> 1.00 </SPAN>
2A</SPAN> 2.00 </SPAN>
3A</SPAN> 3.00 </SPAN>
4A</SPAN> 4.00 </SPAN>
5A</SPAN> 5.00 </SPAN>
Totals</SPAN> 1.00 </SPAN></SPAN> 2.00 </SPAN></SPAN> 3.00 </SPAN></SPAN> 4.00 </SPAN></SPAN> 5.00 </SPAN>
10/01/12</SPAN>2000</SPAN>3000</SPAN>4000</SPAN>5000</SPAN>6000</SPAN>
1A</SPAN>
2A</SPAN> 2.00 </SPAN>
3A</SPAN>
4A</SPAN> 4.00 </SPAN>
5A</SPAN> 5.00 </SPAN>
6A</SPAN> 6.00 </SPAN>
Totals</SPAN> 6.00 </SPAN></SPAN> 2.00 </SPAN></SPAN> - </SPAN></SPAN> 4.00 </SPAN></SPAN> 5.00 </SPAN>
10/01/12</SPAN>2000</SPAN>3000</SPAN>4000</SPAN>5000</SPAN>6000</SPAN>
1A</SPAN> 1.00 </SPAN>
2A</SPAN> 2.00 </SPAN>
3A</SPAN> - </SPAN>
4A</SPAN> - </SPAN>
5A</SPAN> - </SPAN>
6A</SPAN> 6.00 </SPAN>
7A</SPAN> 7.00 </SPAN>
Totals</SPAN> 1.00 </SPAN></SPAN> 2.00 </SPAN></SPAN> 7.00 </SPAN></SPAN> - </SPAN></SPAN> 6.00 </SPAN>
10/01/12</SPAN>2000</SPAN>3000</SPAN>4000</SPAN>5000</SPAN>6000</SPAN>
1A</SPAN> 1.00 </SPAN>
2A</SPAN> - </SPAN> 2.00 </SPAN>
3A</SPAN> - </SPAN>
4A</SPAN> - </SPAN> 4.00 </SPAN>
Totals</SPAN> 1.00 </SPAN></SPAN> - </SPAN></SPAN> - </SPAN></SPAN> 2.00 </SPAN></SPAN> 4.00 </SPAN>

<TBODY>
</TBODY><COLGROUP><COL span=6></COLGROUP>



New worksheet
Date</SPAN>10/01/12</SPAN>
2000</SPAN> 1.00 </SPAN>
3000</SPAN> 2.00 </SPAN>
4000</SPAN> 3.00 </SPAN>
5000</SPAN> 4.00 </SPAN>
6000</SPAN> 5.00 </SPAN>

<TBODY>
</TBODY><COLGROUP><COL span=2></COLGROUP>


What I want is, when I populate the date, the totals for 2000,3000 etc should give me the total for the account for the date. I need a formula
 

Excel Facts

Spell Check in Excel
Press F7 to start spell check in Excel. Be careful, by default, Excel does not check Capitalized Werds (whoops)
Data
10/01/1220003000400050006000
1A 1.00
2A 2.00
3A 3.00
4A 4.00
5A 5.00
Totals 1.00 2.00 3.00 4.00 5.00
10/01/1220003000400050006000
1A
2A 2.00
3A
4A 4.00
5A 5.00
6A 6.00
Totals 6.00 2.00 - 4.00 5.00
10/01/1220003000400050006000
1A 1.00
2A 2.00
3A -
4A -
5A -
6A 6.00
7A 7.00
Totals 1.00 2.00 7.00 - 6.00
10/01/1220003000400050006000
1A 1.00
2A - 2.00
3A -
4A - 4.00
Totals 1.00 - - 2.00 4.00

<tbody>
</tbody>



New worksheet
Date10/01/12
2000 1.00
3000 2.00
4000 3.00
5000 4.00
6000 5.00

<tbody>
</tbody>


What I want is, when I populate the date, the totals for 2000,3000 etc should give me the total for the account for the date. I need a formula

Are those -multiple table going down the sheet?
So the answer let say for 3000 will be 6?
 
Upvote 0
The answer I want is for 3000 is 2 for 10-01-12 and 10-04-12 (last table the date should be 10-04-12 instead of 10-01-12) = 0.
 
Upvote 0
any update?

Excel 2010
ABCDEF
1Data
210/1/201220003000400050006000
3
41A1
52A2
63A3
74A4
85A5
9
10Totals12345
11
12
13
1410/2/201220003000400050006000
15
161A
172A2
183A
194A4
205A5
216A6
22
23Totals62-45
24
25
2610/3/201220003000400050006000
27
281A1
292A2
303A-
314A-
325A-
336A6
347A7
35
36Totals127-6
37
38
3910/4/201220003000400050006000
40
411A1
422A-2
433A-
444A-4
45
46Totals5555--24

<tbody>
</tbody>
Sheet1

Excel 2010
AB
1Date10/4/2012
2totals
320005555
43000-
54000-
650002
760004

<colgroup><col style="width: 25pxpx"><col><col></colgroup><thead>
</thead><tbody>
</tbody>
Sheet2

Worksheet Formulas
CellFormula
B3=INDEX(Sheet1!$A$100:OFFSET(Sheet1!$A$2,MATCH($B$1,Sheet1!$A$2:$A$100,0)-1,6,,),MATCH($A$2,INDEX(Sheet1!$A$100:OFFSET(Sheet1!$A$2,MATCH($B$1,Sheet1!$A$2:$A$100,0)-1,,,),),0),MATCH($A3,INDEX(Sheet1!$A$2:$F$100,MATCH($B$1,Sheet1!$A$2:$A$100,0),0),0))

<thead>
</thead><tbody>
</tbody>

<tbody>
</tbody>
 
Upvote 0

Forum statistics

Threads
1,214,540
Messages
6,120,106
Members
448,945
Latest member
Vmanchoppy

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