+ Reply to Thread
Results 1 to 18 of 18

VLOOKUP Formula not returning a value

Hybrid View

  1. #1
    Registered User
    Join Date
    01-21-2016
    Location
    Kirksville, MO
    MS-Off Ver
    MS Office 2010
    Posts
    86

    VLOOKUP Formula not returning a value

    I have a workbook with FEMA work orders that I am trying to get a vlookup to return a value from the parts/equipment page, so that when I type in an equipment number it automatically returns the correct hourly value from the parts page. This is the formula I am using but keep getting error. Please any help is appreciated.

    =iferror(vlookup(i7,parts!D:E, 2, false,"")

    i7 is column on page I type the equipment number into, parts is the page the parts and equipment are in tables and the equipment is in column D & E on that page.
    Attached Files Attached Files

  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
    48,142

    Re: VLOOKUP Formula not returning a value

    Formula: copy to clipboard
    =iferror(vlookup(i7,parts!D:E, 2, false),"")
    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
    Registered User
    Join Date
    01-21-2016
    Location
    Kirksville, MO
    MS-Off Ver
    MS Office 2010
    Posts
    86

    Re: VLOOKUP Formula not returning a value

    That is the same formula I am using and it returns an error - any ideas?

  4. #4
    Forum Guru AlKey's Avatar
    Join Date
    07-20-2009
    Location
    Lakeland, FL USA
    MS-Off Ver
    Microsoft Office 2010/ Office 365
    Posts
    8,903

    Re: VLOOKUP Formula not returning a value

    Try it like this

    Formula: copy to clipboard
    =IFERROR(VLOOKUP(--I7,Parts!D:E,2,0),"")
    If you like my answer please click on * Add Reputation
    Don't forget to mark threads as "Solved" if your problem has been resolved

    "Nothing is so firmly believed as what we least know."
    --Michel de Montaigne

  5. #5
    Registered User
    Join Date
    01-21-2016
    Location
    Kirksville, MO
    MS-Off Ver
    MS Office 2010
    Posts
    86

    Re: VLOOKUP Formula not returning a value

    Perfect, thank you so much. What do the -- mean in front of I7?

  6. #6
    Forum Guru AlKey's Avatar
    Join Date
    07-20-2009
    Location
    Lakeland, FL USA
    MS-Off Ver
    Microsoft Office 2010/ Office 365
    Posts
    8,903

    Re: VLOOKUP Formula not returning a value

    Quote Originally Posted by blinhart View Post
    Perfect, thank you so much. What do the -- mean in front of I7?
    This double-unary converts numbers that were entered in I7 as text to real numbers.

  7. #7
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (both in England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2503 (Windows 11 Home 24H2 64-bit)
    Posts
    90,403

    Re: VLOOKUP Formula not returning a value

    The problem is in the lookup cell - I7 - because it is set as text and there is an apostrophe before the 206, so it's not a proper match with the 'match' on the parts sheet. Allkey's formula gets round that problem.
    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. It's a universal courtesy.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    NB:
    as a Moderator, I never accept friendship requests.
    Forum Rules (updated August 2023): please read them here.

  8. #8
    Registered User
    Join Date
    10-19-2012
    Location
    belgie
    MS-Off Ver
    Excel 2010
    Posts
    15

    Re: VLOOKUP Formula not returning a value

    It doesn't work because the equipment is formatted as text in sheet "femabrush 2" and as a number in sheet "Parts". You have to change the text fields to numbers or use the solution provided by Alkey.

  9. #9
    Registered User
    Join Date
    01-21-2016
    Location
    Kirksville, MO
    MS-Off Ver
    MS Office 2010
    Posts
    86

    Re: VLOOKUP Formula not returning a value

    I did that but now the cells that do not contain any equipment numbers returns "#value!" error.

  10. #10
    Forum Guru
    Join Date
    08-28-2014
    Location
    USA
    MS-Off Ver
    Excel 365 version 2501
    Posts
    18,872

    Re: VLOOKUP Formula not returning a value

    The values in column I are entered as text so to get the VLOOKUP function to look up that part number the formula needs to change the text to a value something like:
    =IFERROR(VLOOKUP(VALUE(I7),Parts!D:E, 2, FALSE),"")
    Let me know if you have any questions.
    Edit: to get rid of the #value errors in columns L and N change the formula in column L to:
    =IFERROR(J7*K7,"$0.00")
    You can right justify the column so that it will look like it did originally.
    Last edited by JeteMc; 04-15-2016 at 10:34 AM. Reason: Added Edit
    Consider taking the time to add to the reputation of everybody that has taken the time to respond to your query.

  11. #11
    Registered User
    Join Date
    01-21-2016
    Location
    Kirksville, MO
    MS-Off Ver
    MS Office 2010
    Posts
    86

    Re: VLOOKUP Formula not returning a value

    That doesn't work to get rid of the error. I thought that that was what the "iferror" in the formula was for. I can change the column I cells to a number field if that helps.

  12. #12
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (both in England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2503 (Windows 11 Home 24H2 64-bit)
    Posts
    90,403

    Re: VLOOKUP Formula not returning a value

    Quote Originally Posted by blinhart View Post
    That doesn't work to get rid of the error. I thought that that was what the "iferror" in the formula was for. I can change the column I cells to a number field if that helps.
    That would be the best thing to do.

  13. #13
    Registered User
    Join Date
    01-21-2016
    Location
    Kirksville, MO
    MS-Off Ver
    MS Office 2010
    Posts
    86

    Re: VLOOKUP Formula not returning a value

    I still have the error in the total column cells on the lines that contain no equipment numbers.

  14. #14
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (both in England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2503 (Windows 11 Home 24H2 64-bit)
    Posts
    90,403

    Re: VLOOKUP Formula not returning a value

    OK - upload the file that you have changed - let's have a look.

  15. #15
    Registered User
    Join Date
    01-21-2016
    Location
    Kirksville, MO
    MS-Off Ver
    MS Office 2010
    Posts
    86

    Re: VLOOKUP Formula not returning a value

    Attached the updated file
    Attached Files Attached Files

  16. #16
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (both in England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2503 (Windows 11 Home 24H2 64-bit)
    Posts
    90,403

    Re: VLOOKUP Formula not returning a value

    That's because you haven't added the error trap to them.

    =IFERROR(your_totals_formula,"")

    e.g.

    =IFERROR(J7*K7,"")

  17. #17
    Registered User
    Join Date
    01-21-2016
    Location
    Kirksville, MO
    MS-Off Ver
    MS Office 2010
    Posts
    86

    Re: VLOOKUP Formula not returning a value

    Perfect, I was over thinking because I was in too big a hurry. Thank you so much.

  18. #18
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (both in England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2503 (Windows 11 Home 24H2 64-bit)
    Posts
    90,403

    Re: VLOOKUP Formula not returning a value

    You're welcome!

+ 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. [SOLVED] Vlookup formula returning #N/A
    By rz6657 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 11-14-2014, 12:29 PM
  2. VLOOKUP FORMULA RETURNING #N/A and need it to show ZERO
    By PERE in forum Excel Formulas & Functions
    Replies: 8
    Last Post: 11-13-2014, 11:48 PM
  3. VLOOKUP formula is returning odd results
    By Nitefox in forum For Other Platforms(Mac, Google Docs, Mobile OS etc)
    Replies: 2
    Last Post: 10-23-2013, 06:08 AM
  4. vlookup formula not returning the value i need
    By djbcktt in forum Excel Formulas & Functions
    Replies: 8
    Last Post: 08-07-2013, 11:53 AM
  5. Replies: 15
    Last Post: 09-27-2011, 01:22 PM
  6. Replies: 2
    Last Post: 06-27-2011, 09:11 PM
  7. Vlookup returning formula
    By Juran in forum Excel General
    Replies: 8
    Last Post: 04-06-2009, 10: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