I could do this with INDEX and AGGREGATE but if you want to use VLOOKUP then I'll need to add a worker column.
| A | B | C | D | E | F | G |
---|
| | | | | | | |
| | | | | | | |
Worker | | | | | | | |
3X512 | | | | | | | |
3X412 | | | | | | | |
3X513 | | | | | | | |
2X513 | | | | | | | |
1X013 | | | | | | | |
1X613 | | | | | | | |
1X513 | | | | | | | |
0X313 | | | | | | | |
<colgroup><col style="width: 25pxpx"><col><col><col><col><col><col><col></colgroup><thead>
</thead><tbody>
[TD="align: center"]1[/TD]
[TD="align: right"][/TD]
[TD="align: center"][/TD]
[TD="align: center"][/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: right"]What?=[/TD]
[TD="align: center"]X513[/TD]
[TD="align: center"]2[/TD]
[TD="align: right"][/TD]
[TD="align: center"][/TD]
[TD="align: center"][/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: center"][/TD]
[TD="align: right"][/TD]
[TD="align: center"]3[/TD]
[TD="align: center"]rngInvoice[/TD]
[TD="align: center"]Value[/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: center"]Invoice[/TD]
[TD="align: center"]Received[/TD]
[TD="align: center"]4[/TD]
[TD="align: center"]X512[/TD]
[TD="align: center"] $ 13.20 [/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: center"]X513[/TD]
[TD="align: center"] $ 33.00 [/TD]
[TD="align: center"]5[/TD]
[TD="align: center"]X412[/TD]
[TD="align: center"] $ 16.50 [/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: center"]X513[/TD]
[TD="align: center"] $ 23.10 [/TD]
[TD="align: center"]6[/TD]
[TD="align: center"]X513[/TD]
[TD="align: center"] $ 19.80 [/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: center"]X513[/TD]
[TD="align: center"] $ 19.80 [/TD]
[TD="align: center"]7[/TD]
[TD="align: center"]X513[/TD]
[TD="align: center"] $ 23.10 [/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: center"][/TD]
[TD="align: center"] [/TD]
[TD="align: center"]8[/TD]
[TD="align: center"]X013[/TD]
[TD="align: center"] $ 26.40 [/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: center"][/TD]
[TD="align: center"] [/TD]
[TD="align: center"]9[/TD]
[TD="align: center"]X613[/TD]
[TD="align: center"] $ 29.70 [/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: center"][/TD]
[TD="align: center"] [/TD]
[TD="align: center"]10[/TD]
[TD="align: center"]X513[/TD]
[TD="align: center"] $ 33.00 [/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: center"][/TD]
[TD="align: center"] [/TD]
[TD="align: center"]11[/TD]
[TD="align: center"]X313[/TD]
[TD="align: center"] $ 36.30 [/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: center"][/TD]
[TD="align: center"] [/TD]
</tbody>
<thead>[TR="bgcolor: [URL=https://www.mrexcel.com/forum/usertag.php?do=list&action=hash&hash=DAE7F5]#DAE7F5[/URL] "]
[TH="width: 10px, bgcolor: [URL=https://www.mrexcel.com/forum/usertag.php?do=list&action=hash&hash=DAE7F5]#DAE7F5[/URL] "]F4[/TH]
[TH="width: 10px, bgcolor: [URL=https://www.mrexcel.com/forum/usertag.php?do=list&action=hash&hash=DAE7F5]#DAE7F5[/URL] "]G4[/TH]
[TH="width: 10px, bgcolor: [URL=https://www.mrexcel.com/forum/usertag.php?do=list&action=hash&hash=DAE7F5]#DAE7F5[/URL] "]A4