# Nested If Formula not returning correct values

#### Damian37

##### Active Member
Hello all,
I'm trying to write a nested if statement in order to show accounts that have been added, deleted, modified, or no change. Currently the formula is showing modified for accounts that have been deleted. When I look at the formula, I can see the returned value is correct, because the account has been modified, but I would like to differentiate accounts where all access has been removed versus accounts where the access has been restricted, but not completely removed. The formula I am using is:

=IF(C7<D7,"New",IF(D7<>C7, "Mod",IF(D7=" ","Del",IF(D7=C7,"No Change"))))

As you can see by my sample output, the Bold and Italics Mod results should be Del instead of Mod. Am I not returning the proper values, because of the order in which I have the nested if statements? Thanks for taking the time to look at this.

Last edited by a moderator:

### Excel Facts

Show numbers in thousands?
Use a custom number format of #,##0,K. Each comma after the final 0 will divide the displayed number by another thousand
The start of your formula looks a little odd..

Also:

=IF(C7C7, "Mod",IF(D7=" ","Del",IF(D7=C7,"No Change"))))

Unless you actually have a space in D7, this will return FALSE.

=IF(C6 < D6,"New",IF(D6="","Del",IF(D6 < > C6,"Mod",IF(D6=C6,"No Change"))))

Thank you everyone for your input. I modified my formula using Steve the fish's example and it looks to be working now. Again, thank you all very much!

Replies
3
Views
377
Replies
13
Views
1K
Replies
1
Views
952
Replies
0
Views
608
Replies
1
Views
554

1,218,497
Messages
6,142,825
Members
450,449
Latest member
Dave Carr QM

### 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.

### Which adblocker are you using?

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