+ Reply to Thread
Results 1 to 17 of 17

Vlookup Not working Properly

  1. #1
    Registered User
    Join Date
    04-19-2017
    Location
    England
    MS-Off Ver
    2007
    Posts
    9

    Unhappy Vlookup Not working Properly

    Hello everyone,

    I am trying to get values as per their property (see image).

    As you can see, there is 65 written in column D with property Excellent next to it, then on next cell I have put a formula that should search from table (on right side) and show Demand type (20, 30, 40...), in this case 20 because 65 with excellent property lies under 20 demand. Similarly, if the number comes under Very Good column then it should show respective Demand number.

    I have tried searching over the internet but nothing is working. I know my formula is wrong. I wonder if you experts can help me up?

    Moreover, please also tell how to put range of specific numbers in one cell, for example, 01-65, 66-75 and so.

    P.S. I am not excel expert.

    Many thanks for your support.


    CJ5PE.png

  2. #2
    Forum Guru Winon's Avatar
    Join Date
    02-20-2007
    Location
    East Rand, R.S.A.
    MS-Off Ver
    2010
    Posts
    6,113

    Re: Vlookup Not working Properly

    Hello josepfh,

    Welcome to the Forum.

    We cannot see exactly what your Image contains.

    Please attach a sample workbook instead.

    Make sure there is just enough data to demonstrate your need. Include a BEFORE sheet and an AFTER sheet in the workbook if needed to show the process you're trying to complete or automate.

    Make sure your desired results are shown, mock them up manually if necessary.

    Remember to desensitize the data.

    Click on GO ADVANCED and then scroll down to Manage Attachments to open the upload window.

    Regards.
    Please consider:

    Be polite. Thank those who have helped you. Then Click on the star icon in the lower left part of the contributor's post and add Reputation. Cleaning up when you're done. If you are satisfied with the help you have received, then Please do Mark your thread [SOLVED] .

  3. #3
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,647

    Re: Vlookup Not working Properly

    Try this (untested):

    =INDEX($J$27:$J$31,SUMPRODUCT(($K$26:$O$26=E28)*($K$27:$O$31=D28)*(row($J$27:$J$31)-26)))

    It would be easier to help if you provided the workbook instead of an image of it as we could test our propositions first.
    Ali


    Enthusiastic self-taught user of MS Excel who's always learning!
    Don't forget to say "thank you" in your thread to anyone who has offered you help.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    Forum Rules (updated August 2023): please read them here.

  4. #4
    Registered User
    Join Date
    04-19-2017
    Location
    England
    MS-Off Ver
    2007
    Posts
    9

    Re: Vlookup Not working Properly

    Many thanks guys for your input.

    I have attached the file. See if you can fix it.
    Attached Files Attached Files

  5. #5
    Registered User
    Join Date
    04-19-2017
    Location
    England
    MS-Off Ver
    2007
    Posts
    9

    Re: Vlookup Not working Properly

    Many thanks for bringing this issue to my attention, AliGW. Here are the links:

    http://www.msofficeforums.com/excel/...tml#post113963
    https://www.excelforum.com/excel-gen...-properly.html
    https://www.mrexcel.com/forum/newrep...eply&p=4806003

    And this forum, that's it. Hope it helps.

    Actually, this is a problem given by my tutor to solve and I need to submit report tomorrow. That's why I posted on multiple forums to get quick response. My bad!

    Are we good?

  6. #6
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,647

    Re: Vlookup Not working Properly

    Yes. See my first suggestion above - I have not had time to try it in your file yet.

    That's a lot of cross posts - I hope you have provided links on those other forums, too.

  7. #7
    Registered User
    Join Date
    04-19-2017
    Location
    England
    MS-Off Ver
    2007
    Posts
    9

    Re: Vlookup Not working Properly

    Quote Originally Posted by AliGW View Post
    Yes. See my first suggestion above - I have not had time to try it in your file yet.

    That's a lot of cross posts - I hope you have provided links on those other forums, too.
    lol. Alright my apologies, boss. Thanks and I am trying the formula you posted above and I don't see it working. :/

  8. #8
    Registered User
    Join Date
    04-19-2017
    Location
    England
    MS-Off Ver
    2007
    Posts
    9

    Re: Vlookup Not working Properly

    Also, if you could tell me how to put a range of numbers like 01-65 in one cell, please do so.

  9. #9
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,647

    Re: Vlookup Not working Properly

    OK - your workbook is quite different to the image originally posted. Having multiple numbers (e.g. 0-65) is not Excel-friendly, so I am going to ignore that requirement unless you can give me a really compelling (and I mean REALLY compelling!) reason why you must have them. Going to have another look now.

  10. #10
    Registered User
    Join Date
    04-19-2017
    Location
    England
    MS-Off Ver
    2007
    Posts
    9

    Re: Vlookup Not working Properly

    Quote Originally Posted by AliGW View Post
    OK - your workbook is quite different to the image originally posted. Having multiple numbers (e.g. 0-65) is not Excel-friendly, so I am going to ignore that requirement unless you can give me a really compelling (and I mean REALLY compelling!) reason why you must have them. Going to have another look now.
    Many thanks AliGW.

    To desensitize the data, I did remove a few things. On the contrary, the range is important because those random numbers lie between these ranges that's why I need range however I found somewhere that if we put least numbers like 65 then 75 so excel takes that as range. I don't know if that's right.

  11. #11
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,647

    Re: Vlookup Not working Properly

    You don't need your numbers like that to make them work - you'll see below:

    Excel 2016 (Windows) 32 bit
    B
    C
    D
    E
    F
    G
    2
    Demand
    Excellent
    Very Good
    Good
    Average
    Worst
    3
    20
    0
    0
    0
    0
    0
    4
    30
    66
    56
    46
    36
    66
    5
    40
    76
    81
    87
    66
    -
    6
    50
    81
    91
    -
    -
    -
    7
    60
    90
    -
    -
    -
    -
    8
    9
    10
    11
    1
    18
    Excellent
    98
    Excellent
    60
    12
    2
    9
    Excellent
    27
    Excellent
    20
    13
    3
    45
    Very Good
    51
    Very Good
    20
    14
    4
    24
    Excellent
    87
    Excellent
    50
    15
    5
    17
    Excellent
    15
    Excellent
    20
    16
    6
    38
    Very Good
    87
    Very Good
    40
    17
    7
    36
    Very Good
    50
    Very Good
    20
    18
    8
    13
    Excellent
    26
    Excellent
    20
    19
    9
    42
    Very Good
    16
    Very Good
    20
    20
    10
    9
    Excellent
    2
    Excellent
    20
    Sheet: Sheet1

    Excel 2016 (Windows) 32 bit
    G
    11
    =INDEX($B$3:$B$7,MATCH(E11,OFFSET($B$3:$B$7,,MATCH(F11,$C$2:$G$2,0)),1))
    Sheet: Sheet1

    HOWEVER, you need to get rid of the leading spaces that were in the headings of the top table or this won't work.
    Last edited by AliGW; 04-20-2017 at 01:05 AM.

  12. #12
    Registered User
    Join Date
    04-19-2017
    Location
    England
    MS-Off Ver
    2007
    Posts
    9

    Re: Vlookup Not working Properly

    Alright. I am waiting. And I have done as you suggested for range of numbers and headings.
    Last edited by josepfh; 04-19-2017 at 04:15 PM.

  13. #13
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,647

    Re: Vlookup Not working Properly

    Sorry for the delay. I've added the solution to post #11 above.

  14. #14
    Registered User
    Join Date
    04-19-2017
    Location
    England
    MS-Off Ver
    2007
    Posts
    9

    Re: Vlookup Not working Properly

    Quote Originally Posted by AliGW View Post
    Sorry for the delay. I've added the solution to post #11 above.
    Oh my god, you're angel! That's wonderful. I don't words to explain my feelings right now. Thank you sooo much Ali!

  15. #15
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,647

    Re: Vlookup Not working Properly

    You are most welcome! I enjoyed working it out for you.

    If that takes care of your original question, please select Thread Tools from the menu link above and mark this thread as SOLVED. Thanks.

  16. #16
    Registered User
    Join Date
    04-19-2017
    Location
    England
    MS-Off Ver
    2007
    Posts
    9

    Re: Vlookup Not working Properly

    One more thing I would like to request from you that is how to delete my posts from other two forums?

  17. #17
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,647

    Re: Vlookup Not working Properly

    You'll have to contact an administrator on each of them.

+ 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. VLOOKUP Not Working Properly
    By Cremorneguy in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 10-23-2014, 03:09 PM
  2. Vlookup Not Working Properly
    By trotm in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 01-30-2014, 08:29 AM
  3. vlookup not working properly
    By moley165 in forum Excel Formulas & Functions
    Replies: 8
    Last Post: 09-10-2013, 05:03 AM
  4. VLOOKUP not properly working
    By amphinomos in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 07-01-2013, 05:35 AM
  5. VLOOKUP() not working properly
    By ckgeary in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 06-28-2013, 01:32 PM
  6. [SOLVED] vlookup not working properly
    By djmatok in forum Excel Formulas & Functions
    Replies: 9
    Last Post: 01-25-2013, 12:19 PM
  7. Vlookup not working properly
    By b_motl in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 05-15-2008, 03:12 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