+ Reply to Thread
Results 1 to 6 of 6

Index Returning wrong value in certain cells

  1. #1
    Registered User
    Join Date
    01-25-2017
    Location
    United States
    MS-Off Ver
    2010
    Posts
    13

    Index Returning wrong value in certain cells

    Hi all,

    I'm looking at this excel sheet our company has had for awhile, and we're unsure how this formula worked.
    I've researched for days and I'm clearly not experienced.

    We have these month columns with values 0-1, and we want the "End Date" column to scan the array and find the latest column with anything put into it.

    IE:
    Latest value is "1" on "18-March" for the person in Row 7.
    So we'd want the "End Date" to reflect "18-March"

    The formula:
    Formula: copy to clipboard
    Please Login or Register  to view this content.


    I've attached an example below where you can see that Row 15 is drawing the wrong value.

    How would I go about doing this?
    Attached Files Attached Files
    Last edited by bobredford; 01-26-2017 at 04:21 PM.

  2. #2
    Forum Expert Tony Valko's Avatar
    Join Date
    12-31-2011
    Location
    Pittsburgh
    MS-Off Ver
    2002, 2007:2013
    Posts
    18,890

    Re: Index Returning wrong value in certain cells

    Quote Originally Posted by bobredford View Post
    =INDEX(P$5:AY$5,MATCH(TRUE,INDEX(P6:AY6<>0,),1))
    I didn't download your file.

    Try replacing the 1 with 0.
    Biff
    Microsoft MVP Excel
    Keep It Simple Stupid

    Let's Go Pens. We Want The Cup.

  3. #3
    Forum Moderator - RIP Richard Buttrey's Avatar
    Join Date
    01-14-2008
    Location
    Stockton Heath, Cheshire, UK
    MS-Off Ver
    Office 365, Excel for Windows 2010 & Excel for Mac
    Posts
    29,464

    Re: Index Returning wrong value in certain cells

    Hi, and welcome to the forum


    I'd use the following in N15, copied up to N6

    Formula: copy to clipboard
    Please Login or Register  to view this content.
    Richard Buttrey

    RIP - d. 06/10/2022

    If any of the responses have helped then please consider rating them by clicking the small star icon below the post.

  4. #4
    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,054

    Re: Index Returning wrong value in certain cells

    ... or using a non-volatile formula:

    =IFERROR(LOOKUP(2,1/(P6:BA6<>""),$P$5:$BA$5),"")
    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.

    Temporary addition of accented to illustrate ongoing problem to the TT: L? fh?ile P?draig sona dhaoibh

  5. #5
    Registered User
    Join Date
    01-25-2017
    Location
    United States
    MS-Off Ver
    2010
    Posts
    13

    Re: Index Returning wrong value in certain cells

    Quote Originally Posted by Tony Valko View Post
    I didn't download your file.

    Try replacing the 1 with 0.
    I did try messing with that value, but using 0 matches the earliest date, rather than the latest.
    This one on the other hand seems consistent if you're doing that.


    Quote Originally Posted by Richard Buttrey View Post
    Hi, and welcome to the forum


    I'd use the following in N15, copied up to N6

    Formula: copy to clipboard
    Please Login or Register  to view this content.
    Thank you! I hope I can contribute in the future :D

    And thank you for the help! This worked perfectly!

    Quote Originally Posted by Glenn Kennedy View Post
    ... or using a non-volatile formula:

    =IFERROR(LOOKUP(2,1/(P6:BA6<>""),$P$5:$BA$5),"")
    Wow! This one works perfectly too! Guess I need to learn the capabilities of each formula more.


    Thank you, all! I really appreciate this! You are awesome

  6. #6
    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,054

    Re: Index Returning wrong value in certain cells

    You're welcome.

+ 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: 11
    Last Post: 01-12-2016, 03:30 PM
  2. Blank cells returning 0 (zero) value with INDEX
    By jobdillon in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 10-20-2014, 10:47 AM
  3. [SOLVED] Index formula returning wrong row refferences
    By JO505 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 08-26-2013, 05:08 PM
  4. Replies: 4
    Last Post: 05-24-2012, 06:44 AM
  5. Excel 2007 : iferror(index Formula returning blank cells
    By Martin Chamberlin in forum Excel General
    Replies: 7
    Last Post: 11-15-2011, 08:45 AM
  6. Index Max Match formula returning wrong value
    By bk77 in forum Excel General
    Replies: 4
    Last Post: 03-25-2009, 02:17 PM
  7. Resolved >>> Max Index Lookup Returning Two Cells?
    By profector in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 10-23-2007, 04:31 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