Grand total based on conditions within an array

E

esseland

Hi,

Just can't figure this one out.

I have a table with the following columns:

A Week commencing (Monday's date)
B Daily chargeout rate for that week (it varies from week to week)
C Monday - site visited
D Tuesday - site visited
E Wednesday - site visited
F Thursday - site visited
G Friday - site visited

Each row is for a different week

I need to be able to calculate a grand total for each site. For
example for Site A, I need to find all instances of "A" in columns C to
G of the table and for each of these use the relevant week's daily
chargeout rate (given in column B) and total these for the whole table.
Same for Site B etc.

Have tried mixtures of SUMIF and COUNTIF but to no avail. Any help
appreciated!
 
B

Bob Phillips

=SUMPRODUCT((C2:G20="A")*(B2:B20))

--

HTH

Bob Phillips

(replace xxxx in the email address with gmail if mailing direct)
 

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