+ Reply to Thread
Results 1 to 14 of 14

Vlookup Errors

  1. #1
    Forum Contributor
    Join Date
    11-24-2008
    Location
    Delhi
    Posts
    104

    Vlookup Errors

    Hi! Experts

    I have a table
    for eg See the Attached

    In Sheet " Master" column A contains CustCode. In Sheet" Vlookup" Column A contains another CustCode.
    when i give a vlookup in a different sheet to check for PropNo. in column B . The first cell works fine, but for the second cell it returns the Same value

    Is there a way to get round this

    Thanks in advance

    Hardeep Kanwar
    Attached Files Attached Files
    Last edited by hardeep.kanwar; 07-13-2009 at 02:25 AM.

  2. #2
    Forum Moderator zbor's Avatar
    Join Date
    02-10-2009
    Location
    Croatia
    MS-Off Ver
    365 ProPlus
    Posts
    16,054

    Re: Vlookup Errors

    Try to see this (need to add helper column)

    Vlookup%20Error(1).xls

    You can't use vlookup function because vlookup look only first value. I try with INDEX function.
    Never use Merged Cells in Excel

  3. #3
    Forum Contributor
    Join Date
    11-24-2008
    Location
    Delhi
    Posts
    104

    Re: Vlookup Errors

    Quote Originally Posted by zbor View Post
    Try to see this (need to add helper column)

    Attachment 48202

    You can't use vlookup function because vlookup look only first value. I try with INDEX function.
    Wow!!!!!!!!!!!!!!!!!!!!!!

    I have never Seen the combination of Vlookup and Index/Match.

    Perfect!

    Appriciate zbor

    Thanks for Saving Lots of Time.

  4. #4
    Forum Moderator zbor's Avatar
    Join Date
    02-10-2009
    Location
    Croatia
    MS-Off Ver
    365 ProPlus
    Posts
    16,054

    Re: Vlookup Errors

    And this isn't combination It's index+match instead of vlookup

    (vlookup that appear in formula is name of your sheet)

    btw, you can make with single cell:

    =INDEX(Master!A:B;MATCH(Vlookup!A2;Master!A:A;0)-1+(COUNTIF($A$2:A2;A2));2)

    (just joined)

  5. #5
    Forum Contributor
    Join Date
    11-24-2008
    Location
    Delhi
    Posts
    104

    Re: Vlookup Errors

    Quote Originally Posted by zbor View Post
    And this isn't combination It's index+match instead of vlookup

    (vlookup that appear in formula is name of your sheet)

    btw, you can make with single cell:

    =INDEX(Master!A:B;MATCH(Vlookup!A2;Master!A:A;0)-1+(COUNTIF($A$2:A2;A2));2)

    (just joined)
    Oops! I notice know.

    Second one is also Perfect

    Thanks zbor

  6. #6
    Forum Contributor
    Join Date
    11-24-2008
    Location
    Delhi
    Posts
    104

    Re: Vlookup Errors

    Quote Originally Posted by zbor View Post
    And this isn't combination It's index+match instead of vlookup

    (vlookup that appear in formula is name of your sheet)

    btw, you can make with single cell:

    =INDEX(Master!A:B;MATCH(Vlookup!A2;Master!A:A;0)-1+(COUNTIF($A$2:A2;A2));2)

    (just joined)
    Sorry to Disturb You again

    What if the both Data is in 1 Sheet. then, what is condition in vlookup (Vlookup!A2)

    I Try VlookupA2 and Also Vlookup(A2) but, both not Working

    regards

    Hardeep kanwar

  7. #7
    Forum Moderator zbor's Avatar
    Join Date
    02-10-2009
    Location
    Croatia
    MS-Off Ver
    365 ProPlus
    Posts
    16,054

    Re: Vlookup Errors

    Vlookup!A2 is name of the sheet.. If you have everything on one sheet then you won't need names of sheet.

    For example: =A2 will look in same sheet. =Vlookup!A2 will look on Vlookup sheet, cell A2

    However, I don't think you'll made only by renaming sheets in formula. You'll need to upload another example

  8. #8
    Forum Contributor
    Join Date
    11-24-2008
    Location
    Delhi
    Posts
    104

    Re: Vlookup Errors

    Quote Originally Posted by zbor View Post
    Vlookup!A2 is name of the sheet.. If you have everything on one sheet then you won't need names of sheet.

    For example: =A2 will look in same sheet. =Vlookup!A2 will look on Vlookup sheet, cell A2

    However, I don't think you'll made only by renaming sheets in formula. You'll need to upload another example
    I got it

    Thanks zbor

    Hope to hear you again

  9. #9
    Forum Moderator zbor's Avatar
    Join Date
    02-10-2009
    Location
    Croatia
    MS-Off Ver
    365 ProPlus
    Posts
    16,054

    Re: Vlookup Errors

    anytime...

  10. #10
    Forum Contributor
    Join Date
    11-24-2008
    Location
    Delhi
    Posts
    104

    Re: Vlookup Errors

    Quote Originally Posted by zbor View Post
    anytime...
    Hey zbor sorry to Disturb you Again.

    I have a same Sheet With more Data in Master Sheet.

    Your Formula Works Gr8 for Me.

    Now i want same formulas in From B to M.

    How can i Modifiy your Formula it Fill the Data in Whole sheet i.e. B2:M771

    I mean to say don't want to Entered Formula for Each Column.

    Thanks in Advance

    Hardeep Kanwar
    Attached Files Attached Files

  11. #11
    Forum Moderator zbor's Avatar
    Join Date
    02-10-2009
    Location
    Croatia
    MS-Off Ver
    365 ProPlus
    Posts
    16,054

    Re: Vlookup Errors

    try to write this in C2:

    =VLOOKUP($B2;Master!$B$2:$M$1923;COLUMN(B2);FALSE)

    (replace ; with , if needed) and extend all way right and down

  12. #12
    Forum Contributor
    Join Date
    11-24-2008
    Location
    Delhi
    Posts
    104

    Re: Vlookup Errors

    Quote Originally Posted by zbor View Post
    try to write this in C2:

    =VLOOKUP($B2;Master!$B$2:$M$1923;COLUMN(B2);FALSE)

    (replace ; with , if needed) and extend all way right and down
    Good to Hear you again

    That mean i have to Entered 2 Formulas to get These Data from Master Sheet.

    1st in Column B and 2nd in Column C.

    Hardeep kanwar

  13. #13
    Forum Moderator zbor's Avatar
    Join Date
    02-10-2009
    Location
    Croatia
    MS-Off Ver
    365 ProPlus
    Posts
    16,054

    Re: Vlookup Errors

    Yes, althought I don't know what's point of it since you get at the end same tables in Vlookup and Master

  14. #14
    Forum Contributor
    Join Date
    11-24-2008
    Location
    Delhi
    Posts
    104

    Re: Vlookup Errors

    Quote Originally Posted by zbor View Post
    Yes, althought I don't know what's point of it since you get at the end same tables in Vlookup and Master
    Ok,

    I was thinking in your formula to give some Reference or Absolute Reference to Drag your Formula from B2:M2 and Then, Drag to down.

    Actually, Master sheet is software Generated Sheet.

    And Vlookup!Sheet is Received from Client. On Daliy Basis we get this data.

    Sometimes CustCode (Column A) wise and Sometimes ZoneWise( columnG).

    Sometimes for a Particular Zone i.e. NZ or WZ or SZ or CZ or EZ and sometimes Mix.

    Basically the main Requirement is the Last 6 columns ( Column H:M)

    Any Way thanks zbor

    Regards

    Hardeep Kanwar

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

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