+ Reply to Thread
Results 1 to 13 of 13

Unknown #REF!

  1. #1
    Banned User!
    Join Date
    09-26-2017
    Location
    USA
    MS-Off Ver
    2010
    Posts
    607

    Unknown #REF!

    Hello,

    I copied and pasted across the sheet 'Time Clock Log' and in cell DY3 there is an error but all the other similar cells seem fine.

    Can someone please try to figure out what is wrong?

    Thank you,
    Billy

  2. #2
    Forum Expert 63falcondude's Avatar
    Join Date
    08-22-2016
    Location
    USA
    MS-Off Ver
    365
    Posts
    6,266

    Re: Unknown #REF!

    Here is your formula:
    =INDEX('Employee Info'!$B$5:$B$29,INT((COLUMNS($C:DY)-1)/5)+1)

    =INT((COLUMNS($C:DY)-1)/5)+1 returns 26. There are only 25 rows in B5:B29.

    You cannot return the 26th row when the reference is only 25 rows.

  3. #3
    Banned User!
    Join Date
    09-26-2017
    Location
    USA
    MS-Off Ver
    2010
    Posts
    607

    Re: Unknown #REF!

    Oh okay so how can it be revised to allow for the extra columns please?

  4. #4
    Registered User
    Join Date
    02-26-2018
    Location
    Kansas, USA
    MS-Off Ver
    Excel 2016, 365
    Posts
    28

    Re: Unknown #REF!

    =INDEX('Employee Info'!$B$5:$B$29,INT((COLUMNS($C:DY)-1)/5)+1)

    =INT((COLUMNS($C:DY)-1)/5)+1 try removing the "+1"
    :: BatNoob
    ' BatNoob
    /* BatNoob*/

  5. #5
    Banned User!
    Join Date
    09-26-2017
    Location
    USA
    MS-Off Ver
    2010
    Posts
    607

    Re: Unknown #REF!

    Mr. Batnoob thanks for the reply but that doesn't work.

  6. #6
    Registered User
    Join Date
    09-25-2015
    Location
    Phnom Penh, Cambodia
    MS-Off Ver
    2013, 2010
    Posts
    20

    Re: Unknown #REF!

    I think your formula is not working very well yet, i mean this one:
    Formula: copy to clipboard
    Please Login or Register  to view this content.

    if you observe the result:
    C3 & L3: should be employee 1 and 2 with ID 112 and 118 (your formula is correct)
    but starting from U3 it suppose to be 3rd employee which is ID 119 but your formula turn to 120 which skip one employee.. i am not sure if it is your intention.

    If not my propose formula to you is as below:
    Formula: copy to clipboard
    Please Login or Register  to view this content.


    please let me know if it doesn't work or not meet your requirement.

  7. #7
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,945

    Re: Unknown #REF!

    Your INDEX ref is only 24 columns wide (5:29), but the INT is returning 26, so it is out of range
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools
    3. Click on the star if you think someone helped you

    Regards
    Ford

  8. #8
    Banned User!
    Join Date
    09-26-2017
    Location
    USA
    MS-Off Ver
    2010
    Posts
    607

    Re: Unknown #REF!

    Yes I posted another thread because I noticed it is skipping the 3rd ID. Cell U3 should be ID 119 not ID 120

  9. #9
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    44,118

    Re: Unknown #REF!

    The query relating to cell U3 has been answered....
    Glenn




    None of us get paid for helping you... we do this for fun. So DON'T FORGET to say "Thank You" to all who have freely given some of their time to help YOU

  10. #10
    Registered User
    Join Date
    09-25-2015
    Location
    Phnom Penh, Cambodia
    MS-Off Ver
    2013, 2010
    Posts
    20

    Re: Unknown #REF!

    Billy Spivy, yes i also note that, anyway my solution to you yesterday (post number 6 within this thread) will help you to solve all of that issue.

  11. #11
    Banned User!
    Join Date
    09-26-2017
    Location
    USA
    MS-Off Ver
    2010
    Posts
    607
    Quote Originally Posted by kroko View Post
    Billy Spivy, yes i also note that, anyway my solution to you yesterday (post number 6 within this thread) will help you to solve all of that issue.
    The issue has been solved thank you. I had to extend the range.

  12. #12
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,945

    Re: Unknown #REF!

    Happy to help

  13. #13
    Registered User
    Join Date
    09-25-2015
    Location
    Phnom Penh, Cambodia
    MS-Off Ver
    2013, 2010
    Posts
    20

    Re: Unknown #REF!

    good to hear that.

+ 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. Help with unknown error
    By wedzmer in forum Excel General
    Replies: 10
    Last Post: 06-28-2015, 11:17 PM
  2. VBA: 2 open workbooks; 1 unknown; activating the unknown one
    By Janis Rainis in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 01-05-2014, 08:46 AM
  3. Summing across unknown range in unknown cell!
    By agentred in forum Excel Programming / VBA / Macros
    Replies: 24
    Last Post: 10-28-2009, 10:10 AM
  4. Unknown Cell
    By hayhursm in forum Excel General
    Replies: 4
    Last Post: 12-16-2008, 02:31 PM
  5. calculating the unknown
    By bigpoly60 in forum Excel - New Users/Basics
    Replies: 3
    Last Post: 02-29-2008, 08:55 AM
  6. Unknown Error
    By aftamath in forum Excel General
    Replies: 4
    Last Post: 10-06-2005, 03:05 PM
  7. Unknown Characters
    By Maccas in forum Excel General
    Replies: 1
    Last Post: 07-30-2005, 07:09 AM

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