Sum Conditional Formatting Cells

NVRensburg

Board Regular
Joined
Jul 1, 2014
Messages
100
Office Version
  1. 365
  2. 2016
Platform
  1. Windows
Please could someone have a look at whyyyyyyyyy my formula isn't working.....it's keeps giving me the #NAME? error when using the =SumConditionColorCells formula. Help would be greatly appreciated!!!!

Test Accs.xlsm
ABCDEFGHIJKLMNOPQRSTUV
1Acc AAcc B
2Tx DateProc DateTypeDetailsParticularsCodeReferenceAmountTx DateProc DateTypeDetailsParticularsCodeReferenceAmount
320 Aug 20201-$48.61
419 Aug 20202-$41.49Barfoot and Thompson Rentals#NAME?
519 Aug 20203-$21.14
619 Aug 20204-$17.94
719 Aug 20205-$17.74
818 Aug 2020Barfoot & ThompsonRent-$550.00
919 Aug 20206$32.91
1018 Aug 20207$769.39
1117 Aug 20208-$27.98
1214 Aug 20201-$20.99
1313 Aug 20202$100.00
1413 Aug 20205-$54.06
1513 Aug 20201-$39.20
1613 Aug 20202$8.34
1713 Aug 202054$4.54
1812 Aug 20201-$38.64
1912 Aug 20202-$38.05
2011 Aug 20202-$65.00
2111 Aug 2020Barfoot & ThompsonRent-$550.00
2211 Aug 20201-$50.00
2311 Aug 20202-$20.00
2411 Aug 20207$781.39
2510 Aug 202041-$59.00
2610 Aug 202052-$24.70
2709 Aug 20207-$21.50
2810 Aug 20201-$20.00
2910 Aug 202012-$19.50
3010 Aug 20204-$13.70
3110 Aug 20204-$13.24
3310 Aug 202012-$7.35
3407 Aug 202054-$28.87
3507 Aug 20204$200.00
3606 Aug 20201-$58.70
3706 Aug 20202-$35.00
3806 Aug 20204-$12.90
3905 Aug 202045-$20.00
4005 Aug 2020Barfoot & ThompsonRent-$550.00
4105 Aug 20204-$20.00
4205 Aug 20207$95.05
4304 Aug 20204-$125.22
4404 Aug 202052-$39.00
4504 Aug 20204-$3.76
4604 Aug 202052$790.70
4703 Aug 20204-$33.77
4803 Aug 20202-$25.25
4903 Aug 2020274-$20.00
5003 Aug 202024-$15.00
5103 Aug 20202-$7.60
5231 Jul 202045-$13.80
5330 Jul 20204-$101.83
5430 Jul 20205-$54.06
5530 Jul 202012-$5.93
5630 Jul 2020Barfoot & ThompsonRent-$550.00
5729 Jul 20201-$16.50
5829 Jul 202024-$16.50
5929 Jul 202054-$14.20
6029 Jul 20205-$10.00
6129 Jul 202012-$20.00
6228 Jul 202012-$0.02
6328 Jul 20201545$907.95
6427 Jul 202045-$68.19
6527 Jul 20202-$43.47
6627 Jul 20201-$20.60
6726 Jul 202021-$82.50
6824 Jul 20205-$74.50
6924 Jul 20205-$16.50
7024 Jul 2020412-$15.91
7124 Jul 20205-$10.00
7223 Jul 2020Barfoot & ThompsonRent-$550.00
7323 Jul 20204-$100.00
7423 Jul 202024-$308.06
7522 Jul 202054-$100.00
7622 Jul 20205$755.00
SEPT 2020
Cell Formulas
RangeFormula
U4U4=SumConditionColorCells(Q3:Q76,T4)
Cells with Conditional Formatting
CellConditionCell FormatStop If True
J3:Q499Expression=AND($M3="Barfoot & Thompson", $P3="Rent")textYES
 

Excel Facts

Ambidextrous Undo
Undo last command with Ctrl+Z or Alt+Backspace. If you use the Undo icon in the QAT, open the drop-down arrow to undo up to 100 steps.
have you created a user defined function called SumConditionColorCells
you could use a COUNTIFS()
based on the conditional formatting formula
=AND($M3="Barfoot & Thompson", $P3="Rent")
Countifs(M:M,"Barfoot & Thompson", P:P, "Rent")
 
Upvote 0
I don't really want to do that as I'm going to be using different colours for different items....just hoping to get the formula sumcellsbycolour to work....
 
Upvote 0
there is no function in excel called

sumcellsbycolour
or
SumConditionColorCells

you will need to either do this by VBA or setup a UDF User Defined Function to do that.

NOT my expertised, perhaps close this thread and start a new one , UDF or VBA to SUM Cell Colours - and specify exactly what you want to sum, colours etc

have a read here
.
 
Upvote 0

Forum statistics

Threads
1,214,588
Messages
6,120,412
Members
448,960
Latest member
AKSMITH

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top