IF forumla

Sindad

New Member
Joined
Sep 7, 2014
Messages
2
I have this long rows and multiple columns where I want to do two IF equation.

First request :

if cell e is green then do
d2-d3*-1 if cell e is red then d2-d3

<colgroup><col></colgroup><tbody>
</tbody>

Second request :
If e 17 & m17 are both green, then do d17-d18*-1 but if e 17 & m17 are red, then do d17-d18



ABCDCOLORRequest number 1
1.600541.576191.585891.59594
1.600061.588291.595941.59394if cell e is green then do d2-d3*-1 if cell e is red then d2-d3
1.597181.584851.593941.59052
1.590521.569281.590521.57679
1.579121.570631.576791.57334
1.579411.567191.573341.57279
1.585031.565891.572791.57919
1.583571.567421.579191.56813
1.578651.568131.568131.57474
1.576651.559241.574741.56044
1.548121.534241.542941.54709
Request number 2
ABCDCOLORABCDCOLOR
1.600541.576191.585891.595941.600541.576191.585891.59594
1.600061.588291.595941.59394If e 17 & m17 are both green, then do d17-d18*-1 but if e 17 & m17 are red, then do d17-d181.600061.588291.595941.59394
1.597181.584851.593941.590521.597181.584851.593941.59052
1.590521.569281.590521.576791.590521.569281.590521.57679
1.579121.570631.576791.573341.579121.570631.576791.57334
1.579411.567191.573341.572791.579411.567191.573341.57279
1.585031.565891.572791.579191.585031.565891.572791.57919
1.583571.567421.579191.568131.583571.567421.579191.56813
1.578651.568131.568131.574741.578651.568131.568131.57474
1.576651.559241.574741.560441.576651.559241.574741.56044
1.548121.534241.542941.547091.548121.534241.542941.54709

<colgroup><col span="4"><col><col><col><col><col><col><col span="2"><col></colgroup><tbody>
</tbody>













<tbody>
</tbody>
 

Excel Facts

Waterfall charts in Excel?
Office 365 customers have access to Waterfall charts since late 2016. They were added to Excel 2019.
what defines the cell colour is that CF or manual
 
Upvote 0
a conditional formatting, highlight cell E Green if cell D is bigger than C, or highlight E red if cell D is smaller than C
 
Upvote 0
If the cells are set by conditional formatting then use the SAME CONDITIONs that set the cell colour to determine the value in the cells.
 
Upvote 0

Forum statistics

Threads
1,214,590
Messages
6,120,421
Members
448,961
Latest member
nzskater

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