+ Reply to Thread
Results 1 to 12 of 12

Vlookup and xlookup N/A error using drag fill option. Cell number change.

  1. #1
    Registered User
    Join Date
    11-25-2021
    Location
    India
    MS-Off Ver
    2016
    Posts
    54

    Vlookup and xlookup N/A error using drag fill option. Cell number change.

    vlookup xlookup error.xlsx


    Screenshot 2021-11-26 184450.png


    when i use vlookup or xlookup result is showing correct in cell where i use vlookup or xlookup function after using drag fill option in next cell array cell sequence change and showing wrong result whin I use $ for fix cell range after drag filling in next cell #N/A error occurred in column result is showing correct but in row result is #N/A

  2. #2
    Forum Expert Pepe Le Mokko's Avatar
    Join Date
    05-14-2009
    Location
    Belgium
    MS-Off Ver
    O365 v 2402
    Posts
    13,446

    Re: Vlookup and xlookup N/A error using drag fill option. Cell number change.

    Your formula in C15 uses relative references for the range
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    instead of absolute references
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    and looks like the same for the XLOOKUP function

  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,749

    Re: Vlookup and xlookup N/A error using drag fill option. Cell number change.

    In C15 copied across and down:

    =VLOOKUP($B15,$B$3:$Q$9,COLUMN()-1,0)

    In C27 copied across and down:

    =XLOOKUP($B27,$B$3:$B$9,C$3:C$9)

    You need to read up on absolute and relative cell referencing, which you clearly don't yet understand.
    Attached Files Attached Files
    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
    Forum Guru
    Join Date
    09-10-2017
    Location
    Chippenham, England
    MS-Off Ver
    365
    Posts
    15,077

    Re: Vlookup and xlookup N/A error using drag fill option. Cell number change.

    For the xlookup use
    Formula: copy to clipboard
    Please Login or Register  to view this content.

  5. #5
    Administrator 6StringJazzer's Avatar
    Join Date
    01-27-2010
    Location
    Tysons Corner, VA, USA
    MS-Off Ver
    MS365 Family 64-bit
    Posts
    24,721

    Re: Vlookup and xlookup N/A error using drag fill option. Cell number change.

    Your comment says

    Vlookup result is not correct and also showing #N/A error if I use =vlookup(B15,$B$3:Q$9,2,0) in next row error #N/A error

    But that is NOT the formula you are using:

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


    If you use $ appropriately in all of your formulas this will work:

    Formula: copy to clipboard
    Please Login or Register  to view this content.
    Jeff
    | | |會 |會 |會 |會 | |:| | |會 |會
    Read the rules
    Use code tags to [code]enclose your code![/code]

  6. #6
    Registered User
    Join Date
    11-25-2021
    Location
    India
    MS-Off Ver
    2016
    Posts
    54

    Re: Vlookup and xlookup N/A error using drag fill option. Cell number change.

    6StringJazzer I used that but when i drag fill to next row its show #N/A error

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

    Re: Vlookup and xlookup N/A error using drag fill option. Cell number change.

    Look at the attachment to post #3.

  8. #8
    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,749

    Re: Vlookup and xlookup N/A error using drag fill option. Cell number change.

    Thanks for the rep, however you should ask your questions here.

    You asked:

    Is there shortcut adding $ in lookup
    Yes. Select the range and then press the F4 key repeatedly to cycle through the relative and absolute settings. On some keyboards you may need to hold down the Fn key as well as you do this. Once you have set the range, you can drag copy across and down as I explaied in post #3.

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

    Also, if you have not already done so, you may not be aware that you can thank those who have helped you by clicking the small star icon located in the lower left corner of the post in which the help was given. By doing so you can add to the reputation(s) of all those who offered help.

  9. #9
    Forum Expert Pepe Le Mokko's Avatar
    Join Date
    05-14-2009
    Location
    Belgium
    MS-Off Ver
    O365 v 2402
    Posts
    13,446

    Re: Vlookup and xlookup N/A error using drag fill option. Cell number change.

    I sometimes wonder why I bother to answer when the OP does not even acknowledge my post which is exactly the same as post #5

  10. #10
    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,749

    Re: Vlookup and xlookup N/A error using drag fill option. Cell number change.

    Unfortunately, some posters lack what I would call 'common courtesy'. It happens to me a lot, especially when I am the first to get my answer in. Sorry you have been ignored.

    @meraz

    Please don't ignore contributors to your thread - acknowledge all solutions offered, even if they don't meet your requirements. Thanks.

  11. #11
    Registered User
    Join Date
    11-25-2021
    Location
    India
    MS-Off Ver
    2016
    Posts
    54

    Re: Vlookup and xlookup N/A error using drag fill option. Cell number change.

    Pepe Le Mokko sorry bro for not acknowledging your post your answer is also worked for me thankyou bro for helpeing and taking time to reply my stupid question.

  12. #12
    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,749

    Re: Vlookup and xlookup N/A error using drag fill option. Cell number change.

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

    You also need to acknowledge Fluff's post. When you've done that, please go and read the forum rules, as you don't appear to have done that yet.

+ 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. Drag fill only every other cell
    By Jus1979 in forum Excel General
    Replies: 1
    Last Post: 06-03-2021, 05:12 PM
  2. [SOLVED] Using xlookup/vlookup formula into a validated cell to return a value into that cell
    By Questray in forum Excel Formulas & Functions
    Replies: 10
    Last Post: 05-14-2020, 11:51 AM
  3. How to disable drag auto-fill, but allow drag shift-entire-row?
    By superlative in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 05-02-2019, 06:13 PM
  4. [SOLVED] How to change the drag down fill formula?
    By nova312 in forum Excel Formulas & Functions
    Replies: 8
    Last Post: 06-05-2017, 03:22 PM
  5. [SOLVED] Is there a DRAG option to fill every second cell?
    By sherpamick in forum Excel General
    Replies: 6
    Last Post: 09-06-2016, 11:02 AM
  6. [SOLVED] Click oval option button to fill/unfill color, also change border color to match fill
    By Rocky2013 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 02-07-2015, 08:29 PM
  7. Vlookup but change column index number as you drag to next column
    By yankeekid86 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 08-29-2013, 09:46 AM

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