+ Reply to Thread
Results 1 to 23 of 23

INDEX_MATCH not reponding to my liking. Need help

  1. #1
    Registered User
    Join Date
    07-30-2014
    Location
    Muscat
    MS-Off Ver
    window 2007
    Posts
    32

    INDEX_MATCH not reponding to my liking. Need help

    I have 2 sets of data A & B with INDEX_MATCH formula to return B. In my attached example, I have two options 1&2. My preferred one is Option 1. In option1, cell C15 is sum of C10& C11. However, the formula returns #NA. If I use drop down list as in option 2, the formula works perfectly though not preferred option. To shorten the story, I have attached example file which can explain much better on what I want.
    Attached Files Attached Files

  2. #2
    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_MATCH not reponding to my liking. Need help

    I cannot tell why that is not working. I checked for rounding errors etc. No explanation. However this array-entered form of your formula does work. Go figure.

    Formula: copy to clipboard
    Please Login or Register  to view this content.
    If you aren’t familiar with array-entered formulas array enter means the formula must be committed from edit mode by simultaneously pressing and holding down Ctrl and Shift while hitting Enter.

    Edit This non-array formula also works.
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    Last edited by FlameRetired; 10-09-2015 at 02:43 AM.
    Dave

  3. #3
    Forum Expert
    Join Date
    08-12-2012
    Location
    Sydney, Australia
    MS-Off Ver
    Excel 2010
    Posts
    5,636

    Re: INDEX_MATCH not reponding to my liking. Need help

    the bug/issue
    https://support.microsoft.com/en-us/kb/78113

    you can fix by putting on precision as displayed

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

    take off the exact in the match
    If you are satisfied with the solution(s) provided, please mark your thread as Solved.
    Select Thread Tools-> Mark thread as Solved. To undo, select Thread Tools-> Mark thread as Unsolved.

  4. #4
    Forum Expert shukla.ankur281190's Avatar
    Join Date
    05-17-2014
    Location
    Lucknow, India
    MS-Off Ver
    Office 365
    Posts
    3,937

    Re: INDEX_MATCH not reponding to my liking. Need help

    or you can try C16=INDEX($C$5:$CQ$5,MATCH(C15&0,INDEX(C4:CQ4&0,),0))

    Formula: copy to clipboard
    Please Login or Register  to view this content.
    If I helped, Don't forget to add reputation (click on the little star ★ at bottom of this post)
    Don't forget to mark threads as "Solved" (Thread Tools->Mark thread as Solved)

  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_MATCH not reponding to my liking. Need help

    @ humdingaling and Shukla.ankur281190

    Thanks for the backup and solutions. I've never run across this before.

  6. #6
    Forum Expert
    Join Date
    08-12-2012
    Location
    Sydney, Australia
    MS-Off Ver
    Excel 2010
    Posts
    5,636

    Re: INDEX_MATCH not reponding to my liking. Need help

    i've never seen Shukla. method before
    its like index inception

  7. #7
    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,063

    Re: INDEX_MATCH not reponding to my liking. Need help

    Another way would be to use your original INDEX-MATCH and use this in D4 and drag across.

    =C4+0.1
    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

  8. #8
    Forum Expert shukla.ankur281190's Avatar
    Join Date
    05-17-2014
    Location
    Lucknow, India
    MS-Off Ver
    Office 365
    Posts
    3,937

    Re: INDEX_MATCH not reponding to my liking. Need help

    Thank you guys FlameRetired & humdingaling !!!

    Regards,
    Ankur Shukla

  9. #9
    Forum Expert XOR LX's Avatar
    Join Date
    04-18-2013
    Location
    Turin, Italy
    MS-Off Ver
    Office 365
    Posts
    7,742

    Re: INDEX_MATCH not reponding to my liking. Need help

    All these workarounds are interesting, but does anyone have an actual explanation? Floating-point arithmetic has been suggested, but in what sense does it apply to the value here?

    Interestingly, if you go into the cell containing 1.7, i.e. F4, and recommit it with ENTER then the formula works fine. Perhaps this data was imported/pasted from an external source? But then that wouldn't necessarily explain why the value was not being recognised as 1.7 prior to this user intervention (the formula =F4=1.7 returned TRUE).

    Regards
    Click * below if this answer helped

    Advanced Excel Techniques: http://excelxor.com/

  10. #10
    Forum Expert
    Join Date
    04-01-2013
    Location
    East Auckland
    MS-Off Ver
    Excel 365
    Posts
    1,343

    Re: INDEX_MATCH not reponding to my liking. Need help

    I'd just have rounded it to some number of decimal places

    Please Login or Register  to view this content.
    oh wait that doesn't work... hmm never mind me
    Last edited by scottiex; 10-09-2015 at 03:06 AM.

  11. #11
    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,063

    Re: INDEX_MATCH not reponding to my liking. Need help

    I'm not sure how it has arisen at all. I tried, as a first-off, =C15=F4, which returns TRUE. Shukla's answer does deliver, but does does adding any number; or, indeed, any text (using &"Aabracadabra" also works...).

    XORLX, have you seent hsi sort of thing before?

  12. #12
    Forum Expert shukla.ankur281190's Avatar
    Join Date
    05-17-2014
    Location
    Lucknow, India
    MS-Off Ver
    Office 365
    Posts
    3,937

    Re: INDEX_MATCH not reponding to my liking. Need help

    Quote Originally Posted by XOR LX View Post
    All these workarounds are interesting, but does anyone have an actual explanation? Floating-point arithmetic has been suggested, but in what sense does it apply to the value here?

    Interestingly, if you go into the cell containing 1.7, i.e. F4, and recommit it with ENTER then the formula works fine. Perhaps this data was imported/pasted from an external source? But then that wouldn't necessarily explain why the value was not being recognised as 1.7 prior to this user intervention (the formula =F4=1.7 returned TRUE).

    Regards
    @XOR LX,

    I also noticed that point (F4=1.7) but unable to fix without enter. Perhaps this data has exported from another programmer?

    Regards,
    Ankur Shukla

  13. #13
    Forum Expert snb's Avatar
    Join Date
    05-09-2010
    Location
    VBA
    MS-Off Ver
    Redhat
    Posts
    5,649

    Re: INDEX_MATCH not reponding to my liking. Need help

    or simply:

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



  14. #14
    Forum Expert XOR LX's Avatar
    Join Date
    04-18-2013
    Location
    Turin, Italy
    MS-Off Ver
    Office 365
    Posts
    7,742

    Re: INDEX_MATCH not reponding to my liking. Need help

    Quote Originally Posted by Glenn Kennedy View Post
    XORLX, have you seent hsi sort of thing before?
    I've seen similar things, in the sense that, for whatever reason, a cell value/formula needs to be re-committed/re-coerced, either by physically going into the cell itself and pressing ENTER, or by passing it to some coercing function (as in all the formula solutions offered so far).

    I'm not sure what causes that issue to arise in the first place, though. I would hazard a guess that it's something to do with that value being from an imported source, though that still doesn't explain what the precise issue is, nor why it occurs.

    Hopefully someone will be able to shed some light one this!

    Regards

  15. #15
    Forum Expert snb's Avatar
    Join Date
    05-09-2010
    Location
    VBA
    MS-Off Ver
    Redhat
    Posts
    5,649

    Re: INDEX_MATCH not reponding to my liking. Need help

    If you widen the columns you'll see the items in C4:CG5 are being interpreted by Excel as 'text'.

  16. #16
    Forum Expert XOR LX's Avatar
    Join Date
    04-18-2013
    Location
    Turin, Italy
    MS-Off Ver
    Office 365
    Posts
    7,742

    Re: INDEX_MATCH not reponding to my liking. Need help

    Quote Originally Posted by snb View Post
    If you widen the columns you'll see the items in C4:CG5 are being interpreted by Excel as 'text'.
    Really? I recall applying the formula ISNUMBER to all of them and receiving TRUE in all cases.

    Regards

  17. #17
    Forum Expert snb's Avatar
    Join Date
    05-09-2010
    Location
    VBA
    MS-Off Ver
    Redhat
    Posts
    5,649

    Re: INDEX_MATCH not reponding to my liking. Need help

    enter 1,8 in G3 and compare the alignment to G4.

  18. #18
    Forum Expert XOR LX's Avatar
    Join Date
    04-18-2013
    Location
    Turin, Italy
    MS-Off Ver
    Office 365
    Posts
    7,742

    Re: INDEX_MATCH not reponding to my liking. Need help

    Quote Originally Posted by snb View Post
    enter 1,8 in G3 and compare the alignment to G4.
    Sorry - I'm not sure what you mean. As far as I know, ISNUMBER will only ever return TRUE if the value passed is a number. Are you saying otherwise?

    Regards

  19. #19
    Forum Expert snb's Avatar
    Join Date
    05-09-2010
    Location
    VBA
    MS-Off Ver
    Redhat
    Posts
    5,649

    Re: INDEX_MATCH not reponding to my liking. Need help

    Did you do what I suggested in #17 ?

  20. #20
    Forum Expert XOR LX's Avatar
    Join Date
    04-18-2013
    Location
    Turin, Italy
    MS-Off Ver
    Office 365
    Posts
    7,742

    Re: INDEX_MATCH not reponding to my liking. Need help

    Quote Originally Posted by snb View Post
    Did you do what I suggested in #17 ?
    Yes, but I don't understand how that's a rigorous test for numericalness. A user can choose to left-align a number, after all, so right-alignment in itself does not indicate that a value is a number.

    However, ISNUMBER always does, which is my point.

    Regards

  21. #21
    Registered User
    Join Date
    09-10-2012
    Location
    Malaysia
    MS-Off Ver
    Excel 2007
    Posts
    61

    Re: INDEX_MATCH not reponding to my liking. Need help

    ok done.. check the updated file attached here

    what i did was
    to copy that table and transpose it at another place so u can easily do rounding up for the cells and also text to column to remove any unidentified characters usually came from other source of program, and then i copy and transpose and paste as value back to your original table.

    i also added rounding up formula to your code see below.
    Please Login or Register  to view this content.
    usually whenever i retrieve tables from other source of program, the text to column method is always a must for value columns.

    what you need to do with the text to column is just to select the value column, click the text to column and select maybe delimited and just click finish.
    Attached Files Attached Files
    Last edited by boon-yao.tek; 10-09-2015 at 04:25 AM. Reason: spelling error

  22. #22
    Registered User
    Join Date
    07-30-2014
    Location
    Muscat
    MS-Off Ver
    window 2007
    Posts
    32

    Red face Re: INDEX_MATCH not reponding to my liking. Need help

    Thanks alot it did work. Will apply it on real working data and see how it performs

  23. #23
    Registered User
    Join Date
    07-30-2014
    Location
    Muscat
    MS-Off Ver
    window 2007
    Posts
    32

    Re: INDEX_MATCH not reponding to my liking. Need help

    Thank for all who got involved. I think arry formula =INDEX(C5:CG5,MATCH(1,--(C15=C4:CG4),0)) works perfectly

+ 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] Dont Know if I Should Use VLOOKUP or INDEX_MATCH
    By frontdesk200 in forum Excel Formulas & Functions
    Replies: 16
    Last Post: 02-26-2015, 08:52 PM
  2. Need help of Index_Match and Vlookup_Match
    By MRUGESH261987 in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 09-26-2012, 07:00 AM
  3. Excel For Next Loops and Not Reponding State
    By UCNumber10 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 06-27-2012, 11:34 AM
  4. [SOLVED] INDEX_MATCH or VLOOKUP with multiple criteria?
    By Royzer in forum Excel General
    Replies: 2
    Last Post: 05-29-2012, 02:38 PM
  5. Replies: 0
    Last Post: 09-01-2010, 12:40 PM
  6. [SOLVED] Autoselection of Spreadsheet for liking
    By Spreadsheet Linking Flexibility in forum Excel General
    Replies: 0
    Last Post: 05-29-2006, 02:25 PM
  7. formula error, vba not liking commas
    By Spike in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 03-08-2006, 06:40 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