+ Reply to Thread
Results 1 to 10 of 10

Nested IF Formula

  1. #1
    Registered User
    Join Date
    09-02-2017
    Location
    Boston, MA
    MS-Off Ver
    2016
    Posts
    2

    Nested IF Formula

    I'm trying to use a nested IF formula to disaggreggate transactions into distinct aging buckets. I'm getting an error (#NAME) with the following:

    =IF(N2<5/27/2017,"over 90",IF(N2<6/27/2017,"60 to 90",IF(N2<7/27/2017,"30 to 60","current")))

    N2 represents the transaction posting date; can anyone advise on what's wrong with my formula?

  2. #2
    Forum Guru xladept's Avatar
    Join Date
    04-14-2012
    Location
    Pasadena, California
    MS-Off Ver
    Excel 2003,2010
    Posts
    12,378

    Re: Nested IF Formula

    Try "hashing" your dates:

    Formula: copy to clipboard
    Please Login or Register  to view this content.
    If I've helped you, please consider adding to my reputation - just click on the liitle star at the left.

    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~(Pride has no aftertaste.)

    You can't do one thing. XLAdept

    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~aka Orrin

  3. #3
    Forum Guru MarvinP's Avatar
    Join Date
    07-23-2010
    Location
    Woodinville, WA
    MS-Off Ver
    Office 365
    Posts
    16,167

    Re: Nested IF Formula

    Hi mjl and welcome to the forum,

    Try this formula which will move with each new day.

    Please Login or Register  to view this content.
    One test is worth a thousand opinions.
    Click the * Add Reputation below to say thanks.

  4. #4
    Forum Guru MarvinP's Avatar
    Join Date
    07-23-2010
    Location
    Woodinville, WA
    MS-Off Ver
    Office 365
    Posts
    16,167

    Re: Nested IF Formula

    @Orrin,

    Hashing the dates didn't seem to help. I remember something about hashing dates.. It didn't work for this problem.... Was it dates in Advanced Filters where we needed to hash those dates?

  5. #5
    Forum Guru xladept's Avatar
    Join Date
    04-14-2012
    Location
    Pasadena, California
    MS-Off Ver
    Excel 2003,2010
    Posts
    12,378

    Re: Nested IF Formula

    @ Marvin - I don't remember - it's probably just in VBA and not formulas

  6. #6
    Forum Moderator jeffreybrown's Avatar
    Join Date
    02-19-2009
    Location
    Cibolo, TX
    MS-Off Ver
    Office 365
    Posts
    10,316

    Re: Nested IF Formula

    Maybe...

    =IF(N2 < DATEVALUE("5/27/2017"),"over 90",IF(N2 < DATEVALUE("6/27/2017"),"60 to 90",IF(N2 < DATEVALUE("7/27/2017"),"30 to 60","current")))
    HTH
    Regards, Jeff

  7. #7
    Forum Guru
    Join Date
    03-02-2006
    Location
    Los Angeles, Ca
    MS-Off Ver
    WinXP/MSO2007;Win10/MSO2016
    Posts
    12,598

    Re: Nested IF Formula

    Please Login or Register  to view this content.
    Last edited by protonLeah; 09-02-2017 at 05:11 PM.
    Ben Van Johnson

  8. #8
    Registered User
    Join Date
    09-02-2017
    Location
    Boston, MA
    MS-Off Ver
    2016
    Posts
    2

    Re: Nested IF Formula

    Thanks for the replies. Unfortunately both the hashtags and "DATEVALUE" options didn't resolve the problem. Also, I need the formula to be static and not change with each day. Any other suggestions?

  9. #9
    Forum Moderator jeffreybrown's Avatar
    Join Date
    02-19-2009
    Location
    Cibolo, TX
    MS-Off Ver
    Office 365
    Posts
    10,316

    Re: Nested IF Formula

    Yes, upload a sample workbook.

    Attach a sample workbook. Make sure there is just enough data to demonstrate your need. Include a BEFORE sheet and an AFTER sheet in the workbook if needed to show the process you're trying to complete or automate. Make sure your desired results are shown, mock them up manually if necessary.

    Remember to desensitize the data.

    Click on GO ADVANCED and then scroll down to Manage Attachments to open the upload window.

  10. #10
    Forum Guru MarvinP's Avatar
    Join Date
    07-23-2010
    Location
    Woodinville, WA
    MS-Off Ver
    Office 365
    Posts
    16,167

    Re: Nested IF Formula

    Hi,

    Simply replace the "Now()" with the dates you want. BUT those dates will need to be understood by Excel as Numbers and NOT Text.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Replies: 2
    Last Post: 08-24-2014, 04:56 AM
  2. [SOLVED] Nested Formula Using VBA
    By Gard5096 in forum Excel Programming / VBA / Macros
    Replies: 9
    Last Post: 01-02-2013, 05:58 PM
  3. Nested formula
    By shajms75 in forum Excel General
    Replies: 0
    Last Post: 03-28-2011, 04:41 AM
  4. Nested IF AND Formula
    By Kmac in forum Excel General
    Replies: 16
    Last Post: 04-05-2010, 05:32 AM
  5. Replies: 2
    Last Post: 10-08-2009, 09:51 PM
  6. help on a nested countif/nested if formula
    By vickiemc in forum Excel General
    Replies: 2
    Last Post: 08-13-2008, 08:29 AM
  7. nested formula
    By Ctech in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 03-23-2006, 12:35 PM

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1