Total values per colour

S

Sanjay

Hi,

I have a number of rows, for each row I have several columns


Red Green Blue Pink
Row1 | Col1 | Col2 | Col3 | Col4 | Col5 |
Col6 | Col7 |Total1 |Total2 |Total3 |Total4
Row2 | Col1 | Col2 | Col3 | Col4 | Col5 |
Col6 | Col7 |Total1 |Total2 |Total3 |Total4
Row3 | Col1 | Col2 | Col3 | Col4 | Col5 |
Col6 | Col7 |Total1 |Total2 |Total3 |Total4
Row4 | Col1 | Col2 | Col3 | Col4 | Col5 |
Col6 | Col7 |Total1 |Total2 |Total3 |Total4



For each col1 - col7 there will be a value which will be colour coded, I
would like to be able total the values in the Total columns for the correct
colours - is this possible?

Regards,

Sanj
 
S

sanj

Thanks - I tried adding the functions but in the cell from both sites I get
an #NAME? error what am I doing wrong?

Thanks!
 
B

Bob Phillips

Have you added the VBA code?

--
HTH

Bob Phillips

(remove nothere from email address if mailing direct)
 
S

sanj

Bob,

I added the VB code on the by adding a Module and also tried by adding the
code to the 'ThisWorkbook' - don't know what I am doing wrong?

Thanks
 
B

Bob Phillips

It should go in a standard code module (Insert>Module), not a sheet module,
and not ThisWorkbook.

--
HTH

Bob Phillips

(remove nothere from email address if mailing direct)
 
S

sanj

Thanks Bob - all sorted!

Bob Phillips said:
It should go in a standard code module (Insert>Module), not a sheet module,
and not ThisWorkbook.

--
HTH

Bob Phillips

(remove nothere from email address 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