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
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
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.
Oh okay so how can it be revised to allow for the extra columns please?
=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*/
Mr. Batnoob thanks for the reply but that doesn't work.
I think your formula is not working very well yet, i mean this one:Formula: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:Please Login or Register to view this content.
please let me know if it doesn't work or not meet your requirement.
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
Yes I posted another thread because I noticed it is skipping the 3rd ID. Cell U3 should be ID 119 not ID 120
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
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.
Happy to help
good to hear that.
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks