+ Reply to Thread
Results 1 to 4 of 4

IF combined with VLOOKUP

  1. #1
    Registered User
    Join Date
    09-30-2013
    Location
    U.S.A
    MS-Off Ver
    Excel 2007
    Posts
    5

    Post IF combined with VLOOKUP

    Hello all !

    I may have trouble uploading an excel file here, because I never done that.

    Let me try that first.

    Basically, if a cell contains a character such as #NA or blank, I would like the resulting cell in the VLOOKUP table as 0.00.

    I was able to generate 0.00 in the resulting cell, but it is aligned to the left.

    If anyone can help, I would appreciate.

    Thank You all.

    Dave
    Attached Files Attached Files

  2. #2
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    24,731

    Re: IF combined with VLOOKUP

    Remove the quotes from around the zero in your formula - the quotes makes it text, so it will be left-aligned.

    Also, you don't need a range for your IF function, so here's the amended formula in F2:

    =IF($B2="#NA",0,VLOOKUP($E2,$A$2:$C$13,2,FALSE))

    I've removed some surplus brackets. Make similar changes to the formula in G2.

    Hope this helps.

    Pete

  3. #3
    Registered User
    Join Date
    09-30-2013
    Location
    U.S.A
    MS-Off Ver
    Excel 2007
    Posts
    5

    Re: IF combined with VLOOKUP

    Hi Pete,

    That worked. Thanks much.

    Oh..How do I say, SOLVED to this thread ? New here. Thank You

    Dave

  4. #4
    Forum Contributor arlu1201's Avatar
    Join Date
    09-09-2011
    Location
    Bangalore, India
    MS-Off Ver
    Excel 2003 & 2007
    Posts
    19,166

    Re: IF combined with VLOOKUP

    Based on your last post in this thread, its apparent that you are satisfied with the solution(s) you've received and have solved your question, but you haven't marked your thread as "SOLVED". I will do it for you this time.

    In future, to mark your thread as Solved, you can do the following -
    Select Thread Tools-> Mark thread as Solved.

    Incase your issue is not solved, you can undo it as follows -
    Select Thread Tools-> Mark thread as Unsolved.

    Also, since you are relatively new to the forum, i would like to inform you that you can thank those who have helped you by clicking the small star icon located in the lower left corner of the post which helped you. This adds to the reputation of the person who has taken the time to help you.
    If I have helped, Don't forget to add to my reputation (click on the star below the post)
    Don't forget to mark threads as "Solved" (Thread Tools->Mark thread as Solved)
    Use code tags when posting your VBA code: [code] Your code here [/code]

+ 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 first name out of combined name?
    By bruizer31 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 07-09-2013, 02:03 PM
  2. [SOLVED] Vlookup combined with IF function
    By Giannis86 in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 07-04-2013, 01:07 PM
  3. combined if and vlookup
    By johnf711 in forum Excel General
    Replies: 1
    Last Post: 06-29-2012, 10:58 PM
  4. [SOLVED] VLookup and HLookup Combined?
    By Jmarsh4 in forum Excel General
    Replies: 2
    Last Post: 05-15-2012, 01:44 PM
  5. Excel 2007 : if and vlookup combined
    By 4evertutor in forum Excel General
    Replies: 3
    Last Post: 11-23-2009, 03:48 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