Color formatting using multiple Criteria

Memar

Board Regular
Joined
Sep 2, 2011
Messages
76
I just want to do a color formatting for regional sales in column B (from B2 to B8) using the value in cell A1 and add the total number of the same color/Region in E column (E2 to E5).

Desired Result
[TABLE="width: 500"]
<tbody>[TR]
[TD]A1[/TD]
[TD]B1[/TD]
[TD][/TD]
[TD]D1[/TD]
[TD]E1[/TD]
[/TR]
[TR]
[TD]WEST[/TD]
[TD]50,000[/TD]
[TD][/TD]
[TD]EAST[/TD]
[TD]=60,000+10,000= 70,000[/TD]
[/TR]
[TR]
[TD]EAST[/TD]
[TD]60,000[/TD]
[TD][/TD]
[TD]WEST[/TD]
[TD]=50,000+25,000= 75,000[/TD]
[/TR]
[TR]
[TD]NORTH[/TD]
[TD]70,000[/TD]
[TD][/TD]
[TD]NORTH[/TD]
[TD]=70,000+25,000=95,000[/TD]
[/TR]
[TR]
[TD]SOUTH[/TD]
[TD]50,000[/TD]
[TD][/TD]
[TD]SOUTH[/TD]
[TD]=50,000 =50,000[/TD]
[/TR]
[TR]
[TD]NORTH[/TD]
[TD]25,000[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]EAST[/TD]
[TD]10,000[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]WEST[/TD]
[TD]20,000[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
</tbody>[/TABLE]

Thanks for your help and time.
 

Excel Facts

Can you sort left to right?
To sort left-to-right, use the Sort dialog box. Click Options. Choose "Sort left to right"
I just want to do a color formatting for regional sales in column B (from B2 to B8) using the value in cell A1 and add the total number of the same color/Region in E column (E2 to E5).

Hi,

I have No idea what you mean by above in red.

But for Column E, your sample answer for WEST is incorrect:


Book1
ABCDE
1WEST50,000EAST70000
2EAST60,000WEST70000
3NORTH70,000NORTH95000
4SOUTH50,000SOUTH50000
5NORTH25,000
6EAST10,000
7WEST20,000
Sheet420
Cell Formulas
RangeFormula
E1=SUMIF(A$1:A$7,D1,B$1:B$7)


E1 formula copied down to E4
 
Upvote 0
If I understand correctly, you want something like this:

<a href="https://imgbb.com/"><img src="https://i.ibb.co/Wg11s3L/Capture.png" alt="Capture" border="0"></a>



1. Select cells A2:B8

2. Click ALT+O+D to open conditional formatting dialog.

3. Click New Rule.

4. Under "Use a formula to determine which cells to format" enter =$A2=$A$1 and set a format using the "Format" Button...

5. Click OK.
 
Upvote 0

Forum statistics

Threads
1,223,214
Messages
6,170,771
Members
452,353
Latest member
strainu

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