Hello,
I need your help to come up with a one-cell formula to calculate a sumproduct for all the rows. In sheet 1, I have names in col#1 and hours in col#2. In sheet 2, I have same names in col#1 but not in the same order as sheet 1 and col#2 has rate/amount. I can create one more column col#3 in sheet 1 to get "rate/amount" from sheet 2 using vlookups. Then do sumprocut at the bottom for grand total. What I want to do if possible is nest both vlookup and sumproduct in one-cell instead of cell by cell.
Sheet 1
Name Hours
ABCD 16
DEF 30
GHI 10
HKL 40
Sheet 2
Name Rate
HKL 100
DEF 80
GHI 80
ABCD 60
One possible way of doing is
Sheet 1
Name Hours Sumproduct vlookup for each cell
ABCD 16 sumproduct(vlookup(abcd,sheet2,2,0)*hours = 60*16
Then add the total of each cell.
Hope I did not make it appear to complicated. What I am hoping to do is nest all of these in once cell to calculate grand total (without creating a new column for lookup or sumproduct) - i.e., perform sumproduct for all rows by looking up at respective values from another table and show it in one cell.
Please let me know if you need more information. Thanks in advance for your time and help.
Bookmarks