Lookup

S

smooney

I have a workbook that contains 27 worksheets with 20 columns and 120 rows
each. Column D in each worksheet contains a different name in each row and
Column L in each worksheet contains a different # assosiated with the name in
Column D.

On a separate 'Totals' worksheet, I need the person's name and the sum of
all #'s from Column L assosiated with that name from all worksheets. The
names are all in different rows in each worksheet.

Please help!
 
T

T. Valko

Do the sheet names follow some sequential pattern? Like Week1, Week2, Week3
etc?
 
S

smooney

No it didn't. I played around with it for a long time and it kept returning
a value of zero. Thought I would start fresh again with more details to the
quetion. Thanks anyway.
 
T

T. Valko

Ok...

Assuming the sheet names are: 07PP01, 07PP02 ... 07PP27

=SUMPRODUCT(SUMIF(INDIRECT("07PP"&TEXT(ROW(INDIRECT("1:27")),"00")&"!D:D"),A2,INDIRECT("07PP"&TEXT(ROW(INDIRECT("1:27")),"00")&"!L:L")))
 
S

smooney

Thank you...but it's not working. What should I replace the A2 with in the
formula? The person's name? Without changing the A2, the formula is
returning a value of zero. Should I be entering this formula in a certain
cell in the 'Totals' worksheet?

Thank you for your patience!
 
T

T. Valko

Here's a small sample file that demonstrates this:

sumif.xls 14kb

http://cjoint.com/?mhvzHn7rJH

I'm only using 3 sheets in this sample so you'll notice I use this in the
formula:

....ROW(INDIRECT("1:3"))...

If you're using 27 sheets then it would be:

....ROW(INDIRECT("1:27"))...
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top