jwoods007 wrote:
What I would like is to transfer all Vendor names included in the project to the Vendor Totals Table but without any duplicates.
Hi Jeff,
Welcome to Apple Discussions and the Numbers '09 forum.
If your Vendor names (including duplicates) are all in the same column of the source table, it shouldn't be difficult to transfer them to a second table using the technique described below.
For the example, the source table is named Main and has one header row, the Vendors are listed in column C (starting at C2), and column B is used as an index column. Note that to use VLOOKUP, the index column must be to the left of the Vendor column.
The index is generated using the following formula in B2, and filled down to the end of the column:
=IF(COUNTIF(C$1:C2,C)=1,MAX($B$1:B1)+1,"")
On the second table, Vendor List, the following formula is used in Column A (starting at A2) to collect the indexed vendors from the Main table"
=IFERROR(VLOOKUP(ROW()-1,Main :: B:C,2,FALSE),"")
IFERROR is used to trap the "couldn't find" error in the 'empty' rows of Vendor List.
'FALSE' displays as "exact-match" in the formula, and prevents the rpeated listing of the last vendor that would be created by 'close-match'.
Regards,
Barry