Conditional Formatting Data Bars - Adjacent Cell

BobG2166

New Member
Joined
Jul 13, 2012
Messages
17
I would like to create a conditional formatting data bar next to the cell with the value. For example, if cell E1 is -250,000 then cell F1 will be red and if cell E2 is +125,000 then cell F2 would be green. I would like this to be on a gradient as one can accomplish in a data bar within the cell that has the value.

Thanks in advance.
 

Excel Facts

Why are there 1,048,576 rows in Excel?
The Excel team increased the size of the grid in 2007. There are 2^20 rows and 2^14 columns for a total of 17 billion cells.
Hi

is that what you are looking for?

1583807022603.png


If so, format cells, B1-B18 with three semicolons in a row as shown below

1583807090185.png


Apply conditional formatting as shown below with formulas.

1583807150367.png


Kind regards

Saba
 
Upvote 0
Thanks for the help. Can this be modified so that it is similar to a data bar where the negative (red) would be on the left of the bar and the positive (green) would be on the right side?
 
Upvote 0
No problem

is this what you are looking for?

1583883734085.png


if so,

Enter the following formula in B1 and copy it down to B18

=IF(A1<0,A1,"")

Enter the following formula in C1 and copy it down to C18

=IF(A1>=0,A1,"")


Format both Column B and C with the three semicolons as shown below.


1583807090185.png


Apply conditional formatting as shown below with formulas both in Column B (from B1 to B18) and C ( from C1 to C18)

1583807150367.png


Kind regards

Saba
 
Upvote 0

Forum statistics

Threads
1,214,929
Messages
6,122,315
Members
449,081
Latest member
tanurai

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