+ Reply to Thread
Results 1 to 13 of 13

INDEX formula not calculated properly

  1. #1
    Registered User
    Join Date
    04-14-2019
    Location
    Sydney, Australia
    MS-Off Ver
    MAC 365
    Posts
    21

    INDEX formula not calculated properly

    Hi there,

    I have quite a complicated spreadsheet that everyone here gave fabulous input to help get it up and running but there seems to be a couple of issues happening:

    1. The Column K INDEX formula doesn't seem to be calculating properly. For example there is a highlighted row (272) where column K should be '24' but is the wrong amount. Could anyone help me here?

    The idea of this column is that each person that stays here stays for a number of nights that will come out of their approved nights (Column G) that pulls from the 'Current Approvals' sheet depending on the approval number.



    2. Every time I open the spreadsheet it seems to want to update links from an old spreadsheet - could i rectify this so that it stops referring to an old spreadsheet?

    Thanks for your help - I am hoping the title is relevant. Please let me know if this is not clear.

    Thanks

    Heidz
    Last edited by AliGW; 11-15-2019 at 04:22 AM. Reason: Attachment removed.

  2. #2
    Forum Guru benishiryo's Avatar
    Join Date
    03-25-2011
    Location
    Singapore
    MS-Off Ver
    Excel 2013
    Posts
    5,147

    Re: INDEX formula not calculated properly

    1. the formula is doing it "right". MATCH finds the first instance of your name in B272 (Clint Kingston) inside Current Approvals worksheet and finds it in row 36. I suppose you actually want row 37 with Clint Kingston as well but dated 22-Jun. seems like there is no unique ID you can use that won't create such a problem? not sure if combining name with date will solve it. you know your data better. if it does, you have to use an array formula such as this in cell K3 and copy down:
    Formula: copy to clipboard
    Please Login or Register  to view this content.


    ...confirmed by pressing CTRL+SHIFT+ENTER to activate the array, not just ENTER. You will know the array is active when you see curly braces { } appear around your formula. If you do not CTRL+SHIFT+ENTER you will get an error or a clearly incorrect answer.

    2. go to DATA tab -> Edit Links. there is a link connected to G drive. some links such as Named Range or Data Validation are not so easily deleted. like this particular one. you have to know where it exist in. otherwise, try to copy 1 sheet at a time to a new spreadsheet to see which has the old link attached to it

    Thanks, if you have clicked on the * and added our rep.

    If you're satisfied with the answer, click Thread Tools above your first post, select "Mark your thread as Solved".

    "Contentment is not the fulfillment of what you want, but the realization of what you already have."


    Tips & Tutorials I Compiled | How to Get Quick & Good Answers

  3. #3
    Forum Moderator
    Join Date
    01-21-2014
    Location
    St. Joseph, Illinois U.S.A.
    MS-Off Ver
    Office 365 v 2403
    Posts
    13,406

    Re: INDEX formula not calculated properly

    2. Every time I open the spreadsheet it seems to want to update links from an old spreadsheet - could i rectify this so that it stops referring to an old spreadsheet?
    I don't see evidence of it referring to another spreadsheet. It appears to be working properly. Of note: there are two Clint Kingstons with different approved nights. The formula would have to match the second one returning 28. Then 28-4=24.

    What indicators are there that the second Clint Kingston is the desired match?
    Dave

  4. #4
    Registered User
    Join Date
    04-14-2019
    Location
    Sydney, Australia
    MS-Off Ver
    MAC 365
    Posts
    21

    Re: INDEX formula not calculated properly

    Hi all,

    Thanks so much for your information so far. I am thinking maybe the match needs to be the Approval Number rather than the name? Multiple guests have multiple approval numbers and no 1 approval number will ever be the same ever. So would this be a better option?

    I am just not sure why the formula works with everyone else except this particular person in 272.

  5. #5
    Forum Moderator
    Join Date
    01-21-2014
    Location
    St. Joseph, Illinois U.S.A.
    MS-Off Ver
    Office 365 v 2403
    Posts
    13,406

    Re: INDEX formula not calculated properly

    Or can use the approval number. This can be committed with just Enter.
    Formula: copy to clipboard
    Please Login or Register  to view this content.

  6. #6
    Registered User
    Join Date
    04-14-2019
    Location
    Sydney, Australia
    MS-Off Ver
    MAC 365
    Posts
    21

    Re: INDEX formula not calculated properly

    I just tried that and instead of Column K being 24 as it should be, it shows 18?

  7. #7
    Registered User
    Join Date
    04-14-2019
    Location
    Sydney, Australia
    MS-Off Ver
    MAC 365
    Posts
    21

    Re: INDEX formula not calculated properly

    =INDEX('Current Approvals'!$E$2:$E$159,MATCH(B310,'Current Approvals'!$A$2:$A$159,0))-SUMIFS($J$3:J310,$E$3:E310,E310)

    The above code works for every single other person on this spreadsheet - just not guest in 272...hmmmm

  8. #8
    Forum Moderator
    Join Date
    01-21-2014
    Location
    St. Joseph, Illinois U.S.A.
    MS-Off Ver
    Office 365 v 2403
    Posts
    13,406

    Re: INDEX formula not calculated properly

    I tried both benishiryo's and my version. They both return 24 at my end.
    Last edited by AliGW; 11-15-2019 at 04:23 AM. Reason: Attachment removed.

  9. #9
    Registered User
    Join Date
    04-14-2019
    Location
    Sydney, Australia
    MS-Off Ver
    MAC 365
    Posts
    21

    Re: INDEX formula not calculated properly

    Weird!! I will save this immediately!

    Thank you so much flameretired and benishiryo! For now this is solved, I really really appreciate your help!

  10. #10
    Forum Moderator
    Join Date
    01-21-2014
    Location
    St. Joseph, Illinois U.S.A.
    MS-Off Ver
    Office 365 v 2403
    Posts
    13,406

    Re: INDEX formula not calculated properly

    Withdrawn by FR.

  11. #11
    Forum Moderator
    Join Date
    01-21-2014
    Location
    St. Joseph, Illinois U.S.A.
    MS-Off Ver
    Office 365 v 2403
    Posts
    13,406

    Re: INDEX formula not calculated properly

    You are welcome. Thank you for the feedback and marking your thread Solved.

  12. #12
    Registered User
    Join Date
    04-14-2019
    Location
    Sydney, Australia
    MS-Off Ver
    MAC 365
    Posts
    21

    Re: INDEX formula not calculated properly

    Desensitised version of spreadsheet example attached
    Attached Files Attached Files
    Last edited by heidzhaydz; 11-15-2019 at 04:13 AM.

  13. #13
    Forum Moderator
    Join Date
    01-21-2014
    Location
    St. Joseph, Illinois U.S.A.
    MS-Off Ver
    Office 365 v 2403
    Posts
    13,406

    Re: INDEX formula not calculated properly

    Quote Originally Posted by heidzhaydz View Post
    Desensitised version of spreadsheet example attached
    Thank you very much for that heidzhaydz. It will help future researchers.

+ 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] Index, Match, Row, Small functions are properly not set in my formula
    By rajeshn_in in forum Excel Formulas & Functions
    Replies: 8
    Last Post: 11-09-2016, 04:24 AM
  2. % Change from previous month not calculated properly
    By dreamer001 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 12-13-2015, 02:51 PM
  3. [SOLVED] Index Function Not Working Properly
    By majime01 in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 11-15-2015, 02:10 AM
  4. Calculated field not working properly
    By ScottyZ92 in forum Excel Charting & Pivots
    Replies: 0
    Last Post: 10-16-2015, 04:08 PM
  5. Cannot Index and Match Properly
    By childs71 in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 08-27-2015, 05:32 AM
  6. [SOLVED] Sumif with an index formula not working properly
    By Panfergrrl18 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 06-30-2015, 12:49 AM
  7. Calculated column in Table not replicating properly
    By GTretick in forum Excel Charting & Pivots
    Replies: 0
    Last Post: 03-04-2013, 05:33 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