Try this workbook
Typical formula
Your data needs a bit more thought applied.
1/. There are numerous examples where on one sheet there is for example " 'Wallcoverings
" (leading apostrope) and in the sheet we have to compare this is "Wallcoverings "(trailing strings)
MATCH($C$2,'JUNE 2009 BY PROD CAT'!$B$3:$G$3,0)
looks for an exact match and returns, in this case, the relative column number in
$B$3:$G$3.
Headers on each sheet must match "Woodwork"on one, and "Woodcare" on another is not a good idea, match can find near misses, but what one?
Headers are best being unique within any table,
2/. To use VLOOKUP data must be sorted ascending in the column you are searching.
3/. Better to make a list of the customers you need to query Duplicates in any table will cause problems.
4/. You could simplify the references by using dynamic named ranges.
5/. Merged cells don't help, keep them for board-room presentation.
6/. You might be better using Pivot Tables.
I have "cleaned" enough of your sample workbook to make it work.
Hope this helps
Bookmarks