Sum based on cell color in row

atuljadhavnetafim

Active Member
Joined
Apr 7, 2012
Messages
285
Hi ,

i have excel with multiple column, every column has background color, at last I need total based on color, if I change the color then I automatically added in total.
in below example.
Payment column has yellow color, so i need formula in J colum which get sum only where backround color yellow.
if i change colour of D2 as yellow then the total will be 270.
i can add it manually but i have so many column so need formula.
the column header name (first row) will not change.

1601388273712.png
 

Attachments

  • 1601388252184.png
    1601388252184.png
    12.8 KB · Views: 0

Excel Facts

Who is Mr Spreadsheet?
Author John Walkenbach was Mr Spreadsheet until his retirement in June 2019.

Fluff

MrExcel MVP, Moderator
Joined
Jun 12, 2014
Messages
65,907
Office Version
  1. 365
Platform
  1. Windows
In col J do you want to sum all columns with Payment in row 1 regardless of colour?
 

Fluff

MrExcel MVP, Moderator
Joined
Jun 12, 2014
Messages
65,907
Office Version
  1. 365
Platform
  1. Windows
Ok in J2 copied down
Excel Formula:
=SUMIFS(C2:H2,$C$1:$H$1,"Payment")
and similar for k2 & L2.
Excel formulae cannot see colour or formatting
 

atuljadhavnetafim

Active Member
Joined
Apr 7, 2012
Messages
285
Ok in J2 copied down
Excel Formula:
=SUMIFS(C2:H2,$C$1:$H$1,"Payment")
and similar for k2 & L2.
Excel formulae cannot see colour or formatting
that's good enough, thanks, I am using sumif and sumifs but not this way.
thanks again
 

Fluff

MrExcel MVP, Moderator
Joined
Jun 12, 2014
Messages
65,907
Office Version
  1. 365
Platform
  1. Windows
You're welcome & thanks for the feedback.
 

Forum statistics

Threads
1,148,085
Messages
5,744,739
Members
423,896
Latest member
RonSam

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
Top