+ Reply to Thread
Results 1 to 8 of 8

Formula to count numbers of days between dates error correction

  1. #1
    Registered User
    Join Date
    12-12-2013
    Location
    montreal
    MS-Off Ver
    Microsoft 365
    Posts
    34

    Formula to count numbers of days between dates error correction

    Hello, in the file attached, I am tryong to make this formula work : IFERROR(ABS(C$2-INDEX(H$7:NN$8, MATCH("x",H9:NN10,0))),0). I place it in cell G9, but I keep getting a message error, can you help me correct it?
    Attached Files Attached Files

  2. #2
    Forum Expert
    Join Date
    05-20-2015
    Location
    Chicago, Illinois
    MS-Off Ver
    2016
    Posts
    2,103

    Re: Formula to count numbers of days between dates error correction

    Your formula uses two-row ranges for both the MATCH and the INDEX ranges, and it isn't clear why. That's the source of your error. Try the following:

    =IFERROR(ABS(C$2-INDEX(H$7:NN$7, MATCH("x",H9:NN9,0))),0)
    If your problem has been solved, please use "Thread Tools" to mark the thread as "Solved".

    If you're grateful for this site's existence and would like to contribute to the community, please consider posting something hilarious in our joke thread:
    https://www.excelforum.com/the-water...ke-thread.html

  3. #3
    Registered User
    Join Date
    12-12-2013
    Location
    montreal
    MS-Off Ver
    Microsoft 365
    Posts
    34

    Re: Formula to count numbers of days between dates error correction

    Hello again, I have copied the formula but it still returns to a message error, I have now placed in the G9 cell, and removed the equal so that I may send you the file with the formula inside.
    Attached Files Attached Files

  4. #4
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,719

    Re: Formula to count numbers of days between dates error correction

    Does your PC have a French locale? If so, replace the commas in the formula with semi-colons.
    Ali


    Enthusiastic self-taught user of MS Excel who's always learning!
    Don't forget to say "thank you" in your thread to anyone who has offered you help.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    Forum Rules (updated August 2023): please read them here.

  5. #5
    Forum Expert
    Join Date
    05-20-2015
    Location
    Chicago, Illinois
    MS-Off Ver
    2016
    Posts
    2,103

    Re: Formula to count numbers of days between dates error correction

    Ah, good catch Ali! Je ne pense pas en français. Hopefully Ali's suggestion works, because the workbook is error-free for me?
    Attached Files Attached Files

  6. #6
    Registered User
    Join Date
    12-12-2013
    Location
    montreal
    MS-Off Ver
    Microsoft 365
    Posts
    34

    Re: Formula to count numbers of days between dates error correction

    Hello, that was exactly the issue. Thank you for solving

  7. #7
    Forum Expert
    Join Date
    05-20-2015
    Location
    Chicago, Illinois
    MS-Off Ver
    2016
    Posts
    2,103

    Re: Formula to count numbers of days between dates error correction

    Glad we could help, good luck!

  8. #8
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,719

    Re: Formula to count numbers of days between dates error correction

    Glad to have helped.

+ 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. [SOLVED] Excel formula to count number of days between sets of dates?
    By barneysplash in forum Excel Formulas & Functions
    Replies: 8
    Last Post: 02-16-2017, 06:22 AM
  2. Replies: 1
    Last Post: 07-08-2016, 01:22 AM
  3. Need formula to count the number days between dates
    By Barieq in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 02-04-2016, 05:16 PM
  4. [SOLVED] Formula between dates and days not to count
    By Wskip49 in forum Excel General
    Replies: 6
    Last Post: 05-27-2015, 09:19 PM
  5. Replies: 7
    Last Post: 03-26-2013, 08:32 AM
  6. Replies: 5
    Last Post: 08-29-2012, 05:25 PM
  7. FORMULA NEEDED TO COUNT DAYS IN EXCEL BETWEEN DATES
    By Rhonda1 in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 01-30-2006, 08:20 PM

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