drom
Well-known Member
- Joined
- Mar 20, 2005
- Messages
- 543
- Office Version
- 2021
- 2019
- 2016
- 2013
- 2011
- 2010
- 2007
Hi and thanks in advance!
I have the following name created in my workbook
BackGround=GET.CELL(63;INDIRECT("rc";FALSE))
so if I put in
This is working ok but I would like to sum for a given range the total if their BackGround Colour is equal to RED so equal to 3 according to BackGround formula
but when I use:
=SUMIF($Z$1:$Z$300;BackGround=3;$Z$1:$Z$300) I get 0
because the second parameter is not giving me a array
I was trying to use:
=SUMPRODUCT(--(BackGround(Z1:Z300)=3);Z1:Z300)
but does not work
Any idea on how to sum in for a given range the total sum for the cells with a Red background
I know how to do this using VBA.
I would like to know how can I do this using a formula
I have the following name created in my workbook
BackGround=GET.CELL(63;INDIRECT("rc";FALSE))
so if I put in
A2 wich has a BackGround Colour equal to green the formula = BackGround I will get 43
A3 wich has a BackGround Colour equal to RED the formula = BackGround I will get 3
A4 wich has a BackGround Colour equal to Black the formula = BackGround I will get 1
A3 wich has a BackGround Colour equal to RED the formula = BackGround I will get 3
A4 wich has a BackGround Colour equal to Black the formula = BackGround I will get 1
This is working ok but I would like to sum for a given range the total if their BackGround Colour is equal to RED so equal to 3 according to BackGround formula
but when I use:
=SUMIF($Z$1:$Z$300;BackGround=3;$Z$1:$Z$300) I get 0
because the second parameter is not giving me a array
I was trying to use:
=SUMPRODUCT(--(BackGround(Z1:Z300)=3);Z1:Z300)
but does not work
Any idea on how to sum in for a given range the total sum for the cells with a Red background
I know how to do this using VBA.
I would like to know how can I do this using a formula