ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   Total values per colour (https://www.excelbanter.com/excel-programming/358796-total-values-per-colour.html)

Sanjay[_2_]

Total values per colour
 
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



Niek Otten

Total values per colour
 
http://www.cpearson.com/excel/colors.htm

--
Kind regards,

Niek Otten

"Sanjay" wrote in message ...
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





Bob Phillips[_6_]

Total values per colour
 
See http://www.xldynamic.com/source/xld.ColourCounter.html for a working
solution

--
HTH

Bob Phillips

(remove nothere from email address if mailing direct)

"Sanjay" wrote in message
...
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





Sanj

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

Thanks!

"Bob Phillips" wrote:

See http://www.xldynamic.com/source/xld.ColourCounter.html for a working
solution

--
HTH

Bob Phillips

(remove nothere from email address if mailing direct)

"Sanjay" wrote in message
...
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






Bob Phillips[_6_]

Total values per colour
 
Have you added the VBA code?

--
HTH

Bob Phillips

(remove nothere from email address if mailing direct)

"sanj" wrote in message
...
Thanks - I tried adding the functions but in the cell from both sites I

get
an #NAME? error what am I doing wrong?

Thanks!

"Bob Phillips" wrote:

See http://www.xldynamic.com/source/xld.ColourCounter.html for a working
solution

--
HTH

Bob Phillips

(remove nothere from email address if mailing direct)

"Sanjay" wrote in message
...
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








Sanj

Total values per colour
 
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

"Bob Phillips" wrote:

Have you added the VBA code?

--
HTH

Bob Phillips

(remove nothere from email address if mailing direct)

"sanj" wrote in message
...
Thanks - I tried adding the functions but in the cell from both sites I

get
an #NAME? error what am I doing wrong?

Thanks!

"Bob Phillips" wrote:

See http://www.xldynamic.com/source/xld.ColourCounter.html for a working
solution

--
HTH

Bob Phillips

(remove nothere from email address if mailing direct)

"Sanjay" wrote in message
...
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









Bob Phillips[_6_]

Total values per colour
 
It should go in a standard code module (InsertModule), not a sheet module,
and not ThisWorkbook.

--
HTH

Bob Phillips

(remove nothere from email address if mailing direct)

"sanj" wrote in message
...
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

"Bob Phillips" wrote:

Have you added the VBA code?

--
HTH

Bob Phillips

(remove nothere from email address if mailing direct)

"sanj" wrote in message
...
Thanks - I tried adding the functions but in the cell from both sites

I
get
an #NAME? error what am I doing wrong?

Thanks!

"Bob Phillips" wrote:

See http://www.xldynamic.com/source/xld.ColourCounter.html for a

working
solution

--
HTH

Bob Phillips

(remove nothere from email address if mailing direct)

"Sanjay" wrote in message
...
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











Sanj

Total values per colour
 
Thanks Bob - all sorted!

"Bob Phillips" wrote:

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

--
HTH

Bob Phillips

(remove nothere from email address if mailing direct)

"sanj" wrote in message
...
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

"Bob Phillips" wrote:

Have you added the VBA code?

--
HTH

Bob Phillips

(remove nothere from email address if mailing direct)

"sanj" wrote in message
...
Thanks - I tried adding the functions but in the cell from both sites

I
get
an #NAME? error what am I doing wrong?

Thanks!

"Bob Phillips" wrote:

See http://www.xldynamic.com/source/xld.ColourCounter.html for a

working
solution

--
HTH

Bob Phillips

(remove nothere from email address if mailing direct)

"Sanjay" wrote in message
...
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













All times are GMT +1. The time now is 05:31 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com