+ Reply to Thread
Results 1 to 15 of 15

VLOOKUP referncing the diagonal cell instead of the horizontal

  1. #1
    Registered User
    Join Date
    06-18-2013
    Location
    Denver, Colorado
    MS-Off Ver
    Excel 2003, 2010
    Posts
    11

    VLOOKUP referncing the diagonal cell instead of the horizontal

    Hi everyone,
    I am trying to get my formula to reference directly to the right of the look up value but it keeps returning the diagonal value that is located to the right and up one cell. Can someone steer me in the right direction for a fix?
    I am pretty new to excel so I may be approaching this wrong.

    excel 1.jpg
    excel 2.jpg

    Thanks

  2. #2
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    44,366

    Re: VLOOKUP referncing the diagonal cell instead of the horizontal

    A picture is generally pretty useless for diagnostics.

    However, for an EXACT match, the last parameter should be FALSE.

    If that doesn't fix it, please post a sample workbook.


    Regards, TMS
    Trevor Shuttleworth - Retired Excel/VBA Consultant

    I dream of a better world where chickens can cross the road without having their motives questioned

    'Being unapologetic means never having to say you're sorry' John Cooper Clarke


  3. #3
    Forum Expert
    Join Date
    05-30-2012
    Location
    The Netherlands
    MS-Off Ver
    Office 365
    Posts
    14,987

    Re: VLOOKUP referncing the diagonal cell instead of the horizontal

    You get better help if you follow the advice in the link below.

    http://www.excelforum.com/the-water-...-question.html
    Notice my main language is not English.

    I appreciate it, if you reply on my solution.

    If you are satisfied with the solution, please mark the question solved.

    You can add reputation by clicking on the star * add reputation.

  4. #4
    Forum Moderator alansidman's Avatar
    Join Date
    02-02-2010
    Location
    Steamboat Springs, CO
    MS-Off Ver
    MS Office 365 Version 2404 Win 11 Home 64 Bit
    Posts
    23,860

    Re: VLOOKUP referncing the diagonal cell instead of the horizontal

    Attach a sample workbook. Make sure there is just enough data to make it clear what is needed. 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 demonstrated, mock them up manually if needed. Remember to desensitize the data.

    Click on GO ADVANCED and use the paperclip icon to open the upload window.

    View Pic

    Pictures are difficult to interpret the entire situation.
    Alan עַם יִשְׂרָאֵל חַי


    Change an Ugly Report with Power Query
    Database Normalization
    Complete Guide to Power Query
    Man's Mind Stretched to New Dimensions Never Returns to Its Original Form

  5. #5
    Registered User
    Join Date
    06-18-2013
    Location
    Denver, Colorado
    MS-Off Ver
    Excel 2003, 2010
    Posts
    11

    Re: VLOOKUP referncing the diagonal cell instead of the horizontal

    Quote Originally Posted by TMShucks View Post
    A picture is generally pretty useless for diagnostics.
    Seems to have worked for getting the conversation started.

    Quote Originally Posted by TMShucks View Post
    However, for an EXACT match, the last parameter should be FALSE.
    I tried "false" but it returns #value.

    Quote Originally Posted by TMShucks View Post
    If that doesn't fix it, please post a sample workbook.


    Regards, TMS
    I have attached the workbook. Don't make fun of me, it's simple.
    Attached Files Attached Files
    Last edited by toberino; 09-04-2013 at 04:49 PM.

  6. #6
    Registered User
    Join Date
    06-18-2013
    Location
    Denver, Colorado
    MS-Off Ver
    Excel 2003, 2010
    Posts
    11

    Re: VLOOKUP referncing the diagonal cell instead of the horizontal

    Sorry about the pictures.....I wasn't aware of feelings about them. I will remember for future posts.

  7. #7
    Forum Moderator alansidman's Avatar
    Join Date
    02-02-2010
    Location
    Steamboat Springs, CO
    MS-Off Ver
    MS Office 365 Version 2404 Win 11 Home 64 Bit
    Posts
    23,860

    Re: VLOOKUP referncing the diagonal cell instead of the horizontal

    Ok. Try this. Change c3 to =ROUND(IF(B3-$B$2,$B$2-B3,0),2)

    Change D3 to =VLOOKUP(C3,Reference!$B$1:$C$112,2,FALSE)

    Sometimes, excel will add small decimals that are insignificant until you try to do comparisons. This is a technical flaw that has been discussed in many forums ad nauseum. It good to know and if you encounter unusual circumstances use the round feature.

    Alan
    Last edited by alansidman; 09-04-2013 at 04:55 PM.

  8. #8
    Registered User
    Join Date
    06-18-2013
    Location
    Denver, Colorado
    MS-Off Ver
    Excel 2003, 2010
    Posts
    11

    Re: VLOOKUP referncing the diagonal cell instead of the horizontal

    Quote Originally Posted by alansidman View Post
    Ok. Try this. Change c3 to =ROUND(IF(B3-$B$2,$B$2-B3,0),2)

    Change D3 to =VLOOKUP(C3,Reference!$B$1:$C$112,2,FALSE)

    Sometimes, excel will add small decimals that are insignificant until you try to do comparisons. This is a technical flaw that has been discussed in many forums ad nauseum. It good to know and if you encounter unusual circumstances use the round feature.

    Alan
    Something worked!
    Last edited by toberino; 09-04-2013 at 05:14 PM.

  9. #9
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    44,366

    Re: VLOOKUP referncing the diagonal cell instead of the horizontal

    It's not "feelings" about them, it's frustration. You may know what it is you are trying to show us but it may not always be obvious to us. And there's no way of investigating or testing.

    As for starting the conversation going, yes, it has, hasn't it? Three people asking you for a sample workbook and one tentative, untested suggestion ... which didn't work with your data. Sometimes I think I'm starting a conversation with my wife ... but sometimes it ends up being a row

    Regards, TMS

  10. #10
    Registered User
    Join Date
    06-18-2013
    Location
    Denver, Colorado
    MS-Off Ver
    Excel 2003, 2010
    Posts
    11

    Re: VLOOKUP referncing the diagonal cell instead of the horizontal

    Quote Originally Posted by toberino View Post
    Something worked!
    OK, so it looks like it was the round function in the C column that absolutely corrected it. I guess it wasn't getting an exact match. It is still weird that it returned the diagonal cell though.

    Alan, thank you very much for the cool and calm replies and allowing us to problem solve the answer instead of worrying about forum "frustrations".

  11. #11
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    44,366

    Re: VLOOKUP referncing the diagonal cell instead of the horizontal

    Note that Alan's cool and calm replies were only possible once you had posted the workbook

  12. #12
    Registered User
    Join Date
    06-18-2013
    Location
    Denver, Colorado
    MS-Off Ver
    Excel 2003, 2010
    Posts
    11

    Re: VLOOKUP referncing the diagonal cell instead of the horizontal

    Quote Originally Posted by TMShucks View Post
    Note that Alan's cool and calm replies were only possible once you had posted the workbook
    Whatever, notice that you did nothing to help! Just complained and whined....

  13. #13
    Forum Expert
    Join Date
    05-30-2012
    Location
    The Netherlands
    MS-Off Ver
    Office 365
    Posts
    14,987

    Re: VLOOKUP referncing the diagonal cell instead of the horizontal

    Please Login or Register  to view this content.
    That is not a nice respond to a member who was willing to help you.

    You probably forget that you are asking a favour of the forummembers to help YOU with YOUR problem.

    We are all volunteers, which will help other members on our "own conditions".

    One of these conditions can be, asking for a usefull file, so we can test the solution we give.

    Advicë: if you want to be helped in the future, don't be unpolite.

  14. #14
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    44,366

    Re: VLOOKUP referncing the diagonal cell instead of the horizontal

    Just complained and whined....
    I seem to recall that mine was the first response. Also, that the answer to the VLOOKUP part actually included the last parameter set to FALSE. It would not have been obvious to Alan, or anyone else, why it didn't work without the sample workbook which Alan, oeldere and I all requested.

    Encouraging you to provide adequate information so that the volunteers in the forum can effectively respond to your problem can hardly be considered whining. I guess you don't cope well with constructive feedback.

    Anyway, enough of this happy banter. I wish you well with your spreadsheet development and trust that we will see you back here soon.

  15. #15
    Registered User
    Join Date
    06-18-2013
    Location
    Denver, Colorado
    MS-Off Ver
    Excel 2003, 2010
    Posts
    11

    Re: VLOOKUP referncing the diagonal cell instead of the horizontal

    Everyone's help is greatly appreciated.

+ 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. Find a value within a table (horizontal and diagonal)
    By fenfen in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 02-02-2013, 07:16 AM
  2. Referncing File Name Using Cell Information
    By shawnr72 in forum Excel General
    Replies: 3
    Last Post: 11-23-2012, 01:24 PM
  3. Vertical + Horizontal reference for a cell + Vlookup
    By mightix in forum Excel General
    Replies: 3
    Last Post: 11-21-2011, 01:08 AM
  4. Referncing a Cell using a formula
    By martin ridley in forum Excel General
    Replies: 6
    Last Post: 09-17-2007, 06:17 PM
  5. concatenate cell and referncing afterwads
    By valmont_2 in forum Excel General
    Replies: 1
    Last Post: 03-10-2005, 08:06 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