+ Reply to Thread
Results 1 to 24 of 24

Index, Match function is not return as expected.

  1. #1
    Registered User
    Join Date
    05-09-2017
    Location
    United Arab Emirates
    MS-Off Ver
    2016
    Posts
    15

    Index, Match function is not return as expected.

    Hi,

    Please find the attached copy of excel sheet. In Master sheet Row 4, 6, 7, and 9 to 12 is not showing value. Please check and correct it.

    Thanks in advance.
    Attached Files Attached Files

  2. #2
    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
    53,044

    Re: Index, Match function is not return as expected.

    Hi, welcome to the forum

    What on earth are you trying to do there?
    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

  3. #3
    Registered User
    Join Date
    05-09-2017
    Location
    United Arab Emirates
    MS-Off Ver
    2016
    Posts
    15

    Re: Index, Match function is not return as expected.

    Hi

    I didn't get you!

  4. #4
    Forum Expert shukla.ankur281190's Avatar
    Join Date
    05-17-2014
    Location
    Lucknow, India
    MS-Off Ver
    Microsoft® Excel® for Microsoft 365 MSO (Version 2503 Build 16.0.18604.20000) 64-bit
    Posts
    3,992

    Re: Index, Match function is not return as expected.

    Quote Originally Posted by Anbuselvam View Post
    In Master sheet Row 4, 6, 7, and 9 to 12 is not showing value. Please check and correct it.
    .
    If you see the row now 4 in Master sheet, there is product Vitamin 12 and date is 30.04.2017 which is not mention in other sheet ( Permanent, Temporary), This is the reason you are not getting the values.... Formula is working well.
    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
    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
    53,044

    Re: Index, Match function is not return as expected.

    Explain what you are doing - and what you want. I am not going to try and pull that formula apart lol

  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 2406
    Posts
    44,662

    Re: Index, Match function is not return as expected.

    There's little point in telling us that it's wrong, unless you tell us what you EXPECT it to do....
    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

  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 2406
    Posts
    44,662

    Re: Index, Match function is not return as expected.

    ...there are no values for vitamin 12 that correspond with those dates - so it WILL return blanks!!

  8. #8
    Forum Expert
    Join Date
    09-01-2012
    Location
    Norway
    MS-Off Ver
    Office 365
    Posts
    2,883

    Re: Index, Match function is not return as expected.

    I only see Vitamin 12 on two rows in your data. This looks correct the way it is.
    <----- If you were helped by my posts you can say "Thank you" by clicking the star symbol down to the left

    If the problem is solved, finish of the thread by clicking SOLVED under Thread Tools
    I don't wish to leave you with no answer, yet I sometimes miss posts. If you feel I forgot you, remind me with a PM or just bump the thread.

  9. #9
    Registered User
    Join Date
    05-09-2017
    Location
    United Arab Emirates
    MS-Off Ver
    2016
    Posts
    15

    Re: Index, Match function is not return as expected.

    Hi

    Thanks for all your reply!

    In permanent and temporary sheet have vitamin 12 formulations on 10-May-17 and 02-May-17 respectively, My ecpected result is in the Master Sheet as below.

    According to Master sheet Column A4 to A12 dates, Vitamin 12 formulation should display in C4 to L12.

    Before 02-May-2017 and upto 09-May-17 temporary vitamin 12 formulation should display.

    After 10-May-17 to further date until next change in the formulation from permanent or temporary by dates.

    I hope you understand.

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

    Re: Index, Match function is not return as expected.

    No. Please MANUALLY fill in the EXPECTED results for Ingredient 1...

  11. #11
    Forum Expert bebo021999's Avatar
    Join Date
    07-22-2011
    Location
    Vietnam
    MS-Off Ver
    Excel 2016
    Posts
    9,641

    Re: Index, Match function is not return as expected.

    May be in C4:

    Please Login or Register  to view this content.
    Quang PT

  12. #12
    Registered User
    Join Date
    05-09-2017
    Location
    United Arab Emirates
    MS-Off Ver
    2016
    Posts
    15

    Re: Index, Match function is not return as expected.

    Date Product Incredient 1 Incredient 2 Incredient 4 Incredient 5 Incredient 6 Incredient 7 Incredient 8 Incredient 10 Incredient 11 Incredient 12
    30-Apr-17 Vitamin 12 63.87% 13.13% 2.99% 19.91% 0.01% 0.09%
    2-May-17 Vitamin 12 63.87% 13.13% 2.99% 19.91% 0.01% 0.09%
    5-May-17 Vitamin 12 63.87% 13.13% 2.99% 19.91% 0.01% 0.09%
    7-May-17 Vitamin 12 63.87% 13.13% 2.99% 19.91% 0.01% 0.09%
    10-May-17 Vitamin 12 5.00% 94.60% 0.40%
    11-May-17 Vitamin 12 5.00% 94.60% 0.40%
    12-May-17 Vitamin 12 5.00% 94.60% 0.40%
    13-May-17 Vitamin 12 5.00% 94.60% 0.40%
    14-May-17 Vitamin 12 5.00% 94.60% 0.40%

    I just copy and paste the expected results above as I don't know how to attach the sheet while reply.

  13. #13
    Registered User
    Join Date
    05-09-2017
    Location
    United Arab Emirates
    MS-Off Ver
    2016
    Posts
    15

    Re: Index, Match function is not return as expected.

    Please find the attachment with expected value
    Attached Files Attached Files

  14. #14
    Registered User
    Join Date
    05-09-2017
    Location
    United Arab Emirates
    MS-Off Ver
    2016
    Posts
    15

    Re: Index, Match function is not return as expected.

    Check results with your suggested formulation in the attachment here. It is not working as expected.
    Attached Files Attached Files

  15. #15
    Forum Expert bebo021999's Avatar
    Join Date
    07-22-2011
    Location
    Vietnam
    MS-Off Ver
    Excel 2016
    Posts
    9,641

    Re: Index, Match function is not return as expected.

    Could you explain where and how the data come from?

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

    Re: Index, Match function is not return as expected.

    In C4, copied across and down:

    =IFERROR(INDEX(Permanent!C$3:C$14,MATCH(1,INDEX((Permanent!$A$3:$A$14<=$A4)*(Permanent!$B$3:$B$14=$B4),0),0)),INDEX(Temporary!C$3:C$14,MATCH(1,INDEX((Temporary!$A$3:$A$14<=$A8)*(Temporary!$B$3:$B$14=$B8),0),0)))
    Attached Files Attached Files
    Last edited by Glenn Kennedy; 05-09-2017 at 03:40 AM.

  17. #17
    Registered User
    Join Date
    05-09-2017
    Location
    United Arab Emirates
    MS-Off Ver
    2016
    Posts
    15

    Re: Index, Match function is not return as expected.

    Upto 09-May-2017 formula should come from Temporary sheet row 3, on or after 10-May-17 formula should come from permanent sheet row 11, until further changes in vitamin 12 by future dates.

  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 function is not return as expected.

    Candidate for "least comprehensible post ever"?
    Click * below if this answer helped

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

  19. #19
    Registered User
    Join Date
    05-09-2017
    Location
    United Arab Emirates
    MS-Off Ver
    2016
    Posts
    15

    Re: Index, Match function is not return as expected.

    Hi

    Please find the attached copy. In permanent sheet i have added formulation on 05-May-2017 for vitamin12, but its not reflecting in master sheet.

    As per my understand you used incredient1 column for the conditions in formula which is not having values at all.

    So please check and correct it

    Thanks in Advance
    Attached Files Attached Files

  20. #20
    Forum Expert bebo021999's Avatar
    Join Date
    07-22-2011
    Location
    Vietnam
    MS-Off Ver
    Excel 2016
    Posts
    9,641

    Re: Index, Match function is not return as expected.

    Is it are you looking for?
    Attached Files Attached Files

  21. #21
    Registered User
    Join Date
    05-09-2017
    Location
    United Arab Emirates
    MS-Off Ver
    2016
    Posts
    15

    Re: Index, Match function is not return as expected.

    Thanks for your reply!

    In master sheet row 4, 30-Apr-17 should display the formulation from near date of 02-May-17 in temporary sheet. Also now i have added formulation in 05-May-2017 in permanent sheet but its not showing that.

    please check attachment.
    Attached Files Attached Files

  22. #22
    Registered User
    Join Date
    05-09-2017
    Location
    United Arab Emirates
    MS-Off Ver
    2016
    Posts
    15

    Re: Index, Match function is not return as expected.

    Dear Excel Genius

    For the above query, i have used below formula earlier and i got desired value. unfortunately that excel sheet i have lost and did not get back. In that i have used below formulation and it's incomplete now. can anyone check the below to complete the same for me.

    =IFERROR(INDEX(Permanent!$B$3:$K$14,MATCH('Master sheet'!$A4,Permanent!$A$3:$A$14,0),MATCH('Master sheet'!B$3,Permanent!$B$2:$K$2,0)),INDEX(

    Expecting your valuable support.

    Thanks in advance

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

    Re: Index, Match function is not return as expected.

    All of the previously attached sheets are still there on this thread. So just download the relevant one yourself....

  24. #24
    Registered User
    Join Date
    05-09-2017
    Location
    United Arab Emirates
    MS-Off Ver
    2016
    Posts
    15

    Re: Index, Match function is not return as expected.

    All the previous reply is not get desired value? Can anyone suggest the formula to get my expected value.

+ 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. How to: Return next value w/ same # in index match large function?
    By Yoshi in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 03-06-2015, 02:35 AM
  2. [SOLVED] Index/Match Formula is not updating as expected
    By tuph in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 12-15-2014, 11:21 PM
  3. [SOLVED] INDEX/MATCH? - Return Value to left with IF function
    By macrav in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 09-02-2014, 04:05 PM
  4. [SOLVED] Not getting expected results from index match match
    By number1mm in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 05-25-2013, 03:56 PM
  5. Index / Match function to return row with Governing Values
    By Campbe69 in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 09-06-2012, 03:31 PM
  6. Replies: 2
    Last Post: 06-14-2010, 02:04 AM
  7. [SOLVED] Error Return Value from and INDEX(A:2,MATCH()) function
    By BJ in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 01-26-2005, 11:06 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