Nested If Formula not returning correct values

Damian37

Active Member
Joined
Jun 9, 2014
Messages
301
Office Version
  1. 365
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:

Excel Facts

Highlight Duplicates
Home, Conditional Formatting, Highlight Cells, Duplicate records, OK to add pink formatting to any duplicates in selected range.
Also:

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

Unless you actually have a space in D7, this will return FALSE.
 
Upvote 0
=IF(C6 < D6,"New",IF(D6="","Del",IF(D6 < > C6,"Mod",IF(D6=C6,"No Change"))))
 
Upvote 0
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!
 
Upvote 0

Forum statistics

Threads
1,214,641
Messages
6,120,692
Members
448,979
Latest member
DET4492

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