Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
Hello,
I need to sum cells on sheet1 from sheet2 that have no fill or white background. In a cell on Sheet1 I used: =SUMPRODUCT(--(ColorIndex('Sheet2'!C:C)=2),'Sheet2'!C:C) But it didn't work. Any help? Thanks, Sherry N. |
#2
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
see:
http://www.cpearson.com/Excel/colors.htm -- Gary''s Student - gsnu200768 "Sherry N." wrote: Hello, I need to sum cells on sheet1 from sheet2 that have no fill or white background. In a cell on Sheet1 I used: =SUMPRODUCT(--(ColorIndex('Sheet2'!C:C)=2),'Sheet2'!C:C) But it didn't work. Any help? Thanks, Sherry N. |
#3
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
Thanks but I must be doing something wrong. I copied the code, pasted in VB
editor and called the sumbycolor function but it's not working. Any other solutions? -- Sherry N. "Gary''s Student" wrote: see: http://www.cpearson.com/Excel/colors.htm -- Gary''s Student - gsnu200768 "Sherry N." wrote: Hello, I need to sum cells on sheet1 from sheet2 that have no fill or white background. In a cell on Sheet1 I used: =SUMPRODUCT(--(ColorIndex('Sheet2'!C:C)=2),'Sheet2'!C:C) But it didn't work. Any help? Thanks, Sherry N. |
#4
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
I think it's not working because I am using conditional formatting to shade
my cells. Could that be it? Or might it be because the data is coming from a query? -- Sherry N. "Sherry N." wrote: Hello, I need to sum cells on sheet1 from sheet2 that have no fill or white background. In a cell on Sheet1 I used: =SUMPRODUCT(--(ColorIndex('Sheet2'!C:C)=2),'Sheet2'!C:C) But it didn't work. Any help? Thanks, Sherry N. |
#5
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
It's the conditional formatting that's the problem.
If you want to try to return the color based on conditional formatting, you could review the code from Chip Pearson's site: http://cpearson.com/excel/CFColors.htm I think it's far from trivial. You may want to use another cell that mimics the same conditions, but returns a number. It may be lots easier. Sherry N. wrote: I think it's not working because I am using conditional formatting to shade my cells. Could that be it? Or might it be because the data is coming from a query? -- Sherry N. "Sherry N." wrote: Hello, I need to sum cells on sheet1 from sheet2 that have no fill or white background. In a cell on Sheet1 I used: =SUMPRODUCT(--(ColorIndex('Sheet2'!C:C)=2),'Sheet2'!C:C) But it didn't work. Any help? Thanks, Sherry N. -- Dave Peterson |
#6
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
Na, won't work I am using And and Formula is. Thanks a lot though.
-- Sherry N. "Dave Peterson" wrote: It's the conditional formatting that's the problem. If you want to try to return the color based on conditional formatting, you could review the code from Chip Pearson's site: http://cpearson.com/excel/CFColors.htm I think it's far from trivial. You may want to use another cell that mimics the same conditions, but returns a number. It may be lots easier. Sherry N. wrote: I think it's not working because I am using conditional formatting to shade my cells. Could that be it? Or might it be because the data is coming from a query? -- Sherry N. "Sherry N." wrote: Hello, I need to sum cells on sheet1 from sheet2 that have no fill or white background. In a cell on Sheet1 I used: =SUMPRODUCT(--(ColorIndex('Sheet2'!C:C)=2),'Sheet2'!C:C) But it didn't work. Any help? Thanks, Sherry N. -- Dave Peterson |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Color Cells Based Upon Age of Info | Excel Discussion (Misc queries) | |||
Fill cells with color based on criteria in two cells | Excel Worksheet Functions | |||
Formatting Cells - color based | Excel Worksheet Functions | |||
Is there a way to color the cells based on the numeric value? | Excel Worksheet Functions | |||
sum cells based upon color of cell | Excel Discussion (Misc queries) |