Sum based on cell color in row

atuljadhavnetafim

Active Member
Joined
Apr 7, 2012
Messages
341
Office Version
  1. 365
Platform
  1. Windows
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: 2

Excel Facts

Excel Can Read to You
Customize Quick Access Toolbar. From All Commands, add Speak Cells or Speak Cells on Enter to QAT. Select cells. Press Speak Cells.
In col J do you want to sum all columns with Payment in row 1 regardless of colour?
 
Upvote 0
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
 
Upvote 0
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
 
Upvote 0
You're welcome & thanks for the feedback.
 
Upvote 0

Forum statistics

Threads
1,214,540
Messages
6,120,107
Members
448,945
Latest member
Vmanchoppy

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