Addning one more condition to Formula

Edwardryez

New Member
I compare and update Columns in a table based in this formula:
=IF(AND(I2<>"",J2<>""),IF(J2-I2<>0,J2-I2,"Same"),IF(J2<>"","New",IF(AND(I2="",J2=""),"None","Removed")))
How can i modify that if = Removed then all the Row Cells After instead of =None, =Removed?

Excel Facts

What is =ROMAN(40) in Excel?
The Roman numeral for 40 is XL. Bill "MrExcel" Jelen's 40th book was called MrExcel XL.

gaz_chops

Well-known Member
Not sure about the different elements of your formula? Break it down, what do you want returned for each IF statement?

IF(AND(I2<>"",J2<>"")
IF(J2-I2<>0,J2-I2
IF(J2<>""
IF(AND(I2="",J2=""

Edwardryez

New Member
Not sure about the different elements of your formula? Break it down, what do you want returned for each IF statement?

IF(AND(I2<>"",J2<>"")
IF(J2-I2<>0,J2-I2
IF(J2<>""
IF(AND(I2="",J2=""

Let say i have the results in V
I compare Column Values I,J and if they are =, V="Same", if I="" and J<>"", V="New", If I<>"" and J="", V="Removed", If I="" and J="", V="None""

Next Column W get the Result from Comparing J and K, after Value Removed on V, W becomes "None" since J="" and K"", how can i keep it "Removed"?

gaz_chops

Well-known Member
Let say i have the results in V
I compare Column Values I,J and if they are =, V="Same", if I="" and J<>"", V="New", If I<>"" and J="", V="Removed", If I="" and J="", V="None""

Next Column W get the Result from Comparing J and K, after Value Removed on V, W becomes "None" since J="" and K"", how can i keep it "Removed"?

Tell me for each If what result you expect, copy and paste this and add to the end what you expect.

IF(AND(I2<>"",J2<>"")
IF(J2-I2<>0,J2-I2
IF(J2<>""
IF(AND(I2="",J2=""

Edwardryez

New Member
IF(J2-I2<>0,J2-I2,"Same"),IF(J2<>"","New",IF(AND(I2="",J2=""),"None","Removed"

gaz_chops

Well-known Member
Now you have gone from 4 IFs to 3?

=IF(and(J2-I2<>0,J2-I2),"Same",IF(J2<>"","New",IF(AND(I2="",J2=""),"None","Removed"

Edwardryez

New Member
thats what i need the 4th.
Lets say if I2="Removed" J2="Removed"

gaz_chops

Well-known Member
thats what i need the 4th.
Lets say if I2="Removed" J2="Removed"

Sorry I can't help if you can't answer the question, see if someone else can.

gaz_chops

Well-known Member
Not sure but try

=IF(AND(I2="",J2="",COUNTA(\$I2:I2)=0),"None",IF(OR(J2>I2,AND(I2="",J2<>"")),"New",IF(AND(COUNTA(I2:J2)<>0,I2=J2),"Same","Removed")))

Replies
12
Views
343
Replies
5
Views
260
Replies
0
Views
146
Replies
6
Views
127
Replies
1
Views
121

1,195,644
Messages
6,010,893
Members
441,571
Latest member
stolenweasel

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.

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

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