+ Reply to Thread
Results 1 to 9 of 9

VLOOKUP and IF statement query

  1. #1
    Registered User
    Join Date
    03-16-2015
    Location
    London, England
    MS-Off Ver
    2010
    Posts
    5

    Post VLOOKUP and IF statement query

    Hi

    I have a workbook with several sheets, I have an upload sheet that is referencing to several other sheets.

    Problem I have is, I need to pull through when I field is blank and fill with nothing rather N/A or 0.

    Current VLOOKUP statement: =VLOOKUP('Petty Cash Posting Docket'!G17,'General Ledger Accounts'!A:B,2,FALSE)

    However I need this to say if this is BLANK then enter " ", guessing with an IF statement

    Many thanks
    Louise 'my 1st post'

  2. #2
    Forum Expert
    Join Date
    10-09-2012
    Location
    Dallas, Texas
    MS-Off Ver
    MO 2010 & 2013
    Posts
    3,049

    Re: VLOOKUP and IF statement query

    Please Login or Register  to view this content.
    will solve the NA.

    Please Login or Register  to view this content.
    should solve both.
    Please ensure you mark your thread as Solved once it is. Click here to see how.
    If a post helps, please don't forget to add to our reputation by clicking the star icon in the bottom left-hand corner of a post.

  3. #3
    Registered User
    Join Date
    03-16-2015
    Location
    London, England
    MS-Off Ver
    2010
    Posts
    5

    Re: VLOOKUP and IF statement query

    Thank you mikeTRON, that has done the trick

  4. #4
    Registered User
    Join Date
    03-16-2015
    Location
    London, England
    MS-Off Ver
    2010
    Posts
    5

    Re: VLOOKUP and IF statement query

    That has fixed this but if I apply to cells where information should be pulled through, this is also pulling through blanks

  5. #5
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    44,036

    Re: VLOOKUP and IF statement query

    It would help if you were to attach a sample worksheet.
    Glenn




    None of us get paid for helping you... we do this for fun. So DON'T FORGET to say "Thank You" to all who have freely given some of their time to help YOU.

    Temporary addition of accented to illustrate ongoing problem to the TT: L? fh?ile P?draig sona dhaoibh

  6. #6
    Forum Expert
    Join Date
    10-09-2012
    Location
    Dallas, Texas
    MS-Off Ver
    MO 2010 & 2013
    Posts
    3,049

    Re: VLOOKUP and IF statement query

    Quote Originally Posted by Glenn Kennedy View Post
    It would help if you were to attach a sample worksheet.
    ^ Attaching a sample workbook is always the easiest.

  7. #7
    Registered User
    Join Date
    03-16-2015
    Location
    London, England
    MS-Off Ver
    2010
    Posts
    5

    Re: VLOOKUP and IF statement query

    Attached workbook, thanks
    Last edited by LouiseC; 03-16-2015 at 11:50 AM.

  8. #8
    Forum Expert
    Join Date
    10-09-2012
    Location
    Dallas, Texas
    MS-Off Ver
    MO 2010 & 2013
    Posts
    3,049

    Re: VLOOKUP and IF statement query

    I am still not exactly sure what you are trying to do but maybe this is what you are asking for?

    Please Login or Register  to view this content.

  9. #9
    Registered User
    Join Date
    03-16-2015
    Location
    London, England
    MS-Off Ver
    2010
    Posts
    5

    Re: VLOOKUP and IF statement query

    =IF(NOT(ISBLANK('Source Data'!B6)),VLOOKUP('Petty Cash Posting Docket'!G7,'General Ledger Accounts'!A:B,2,FALSE)," ")

    this works

+ 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] Formula - adding an IF Query onto vlookup query
    By mra1984 in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 12-06-2013, 05:31 AM
  2. Replies: 4
    Last Post: 06-01-2012, 10:05 AM
  3. IF statement and Vlookup Query?
    By ross carr in forum Excel General
    Replies: 5
    Last Post: 07-13-2011, 02:40 AM
  4. IF statement query.
    By Sasuke in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 03-05-2009, 08:02 AM
  5. Use MS Query in VBA to only get a SQL statement
    By RB Smissaert in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 05-23-2005, 02:06 PM

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