Nested If Formula not returning correct values

Damian37

Board Regular
Joined
Jun 9, 2014
Messages
227
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.

Count of GROUP_NAMEREPORT_DATE
NTID_LOGINFULL_NAME Jan-15May-15 Grand TotalProfile ChangeNew Additions
LOGIN1NAME1 LASTNAME122FALSENew
LOGIN2NAME2 LASTNAME211FALSEDel
LOGIN3NAME3 LASTNAME3112TRUENo Change
LOGIN4NAME4 LASTNAME433FALSEMod
LOGIN5NAME5 LASTNAME5112TRUENo Change
LOGIN6NAME6 LASTNAME622FALSEDel
LOGIN7NAME7 LASTNAME711FALSENew
LOGIN8NAME8 LASTNAME811FALSEMod
LOGIN9NAME9 LASTNAME911FALSEMod
LOGIN10NAME10 LASTNAME10314FALSEMod
 
Last edited by a moderator:

Some videos you may like

Excel Facts

Which Excel functions can ignore hidden rows?
The SUBTOTAL and AGGREGATE functions ignore hidden rows. AGGREGATE can also exclude error cells and more.

steve the fish

Well-known Member
Joined
Oct 20, 2009
Messages
8,245
Office Version
  1. 365
Platform
  1. Windows
The start of your formula looks a little odd..
 

bbott

Well-known Member
Joined
Feb 5, 2010
Messages
2,350
Also:

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

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

steve the fish

Well-known Member
Joined
Oct 20, 2009
Messages
8,245
Office Version
  1. 365
Platform
  1. Windows
=IF(C6 < D6,"New",IF(D6="","Del",IF(D6 < > C6,"Mod",IF(D6=C6,"No Change"))))
 

Damian37

Board Regular
Joined
Jun 9, 2014
Messages
227
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!
 

Watch MrExcel Video

Forum statistics

Threads
1,122,469
Messages
5,596,328
Members
414,054
Latest member
Sameer50

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
Top