+ Reply to Thread
Results 1 to 14 of 14

IF Error, if empty, vlookup

  1. #1
    Forum Contributor
    Join Date
    07-06-2012
    Location
    Bitola,Macedonia
    MS-Off Ver
    Excel 2007
    Posts
    132

    IF Error, if empty, vlookup

    Hello,

    I have in one sheet table that i need to get number with vlookup, but in some it is showing me error in some just empty. I need if it is error or empty then to be "0".

    Thank you
    Last edited by Anto_BT; 10-16-2013 at 09:27 AM.

  2. #2
    Forum Contributor
    Join Date
    10-12-2012
    Location
    Bournemouth
    MS-Off Ver
    Excel 2010 / Excel 2007
    Posts
    126

    Re: IF Error, if empty, vlookup

    Hi, try something like:

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

  3. #3
    Forum Contributor
    Join Date
    07-06-2012
    Location
    Bitola,Macedonia
    MS-Off Ver
    Excel 2007
    Posts
    132

    Re: IF Error, if empty, vlookup

    It is the same, where is empty it is showing empty and I need to be "0"

    Thank you

  4. #4
    Forum Contributor
    Join Date
    10-12-2012
    Location
    Bournemouth
    MS-Off Ver
    Excel 2010 / Excel 2007
    Posts
    126

    Re: IF Error, if empty, vlookup

    Are you able to upload a sample of your sheet?

  5. #5
    Forum Contributor
    Join Date
    07-06-2012
    Location
    Bitola,Macedonia
    MS-Off Ver
    Excel 2007
    Posts
    132

    Re: IF Error, if empty, vlookup

    In Planerfolgsrechnungen column "G" you have for Januar.
    You need to take the numbers from "Input 1" column "F" and i don't need empty cells in Planerfolgsrechnungen

    Thank you

  6. #6
    Forum Expert XOR LX's Avatar
    Join Date
    04-18-2013
    Location
    Turin, Italy
    MS-Off Ver
    Office 365
    Posts
    7,742

    Re: IF Error, if empty, vlookup

    Hi,

    You do not have any errors in that column. And the "blanks" in that column are not as the result of the VLOOKUP, but rather due to the first condition:

    =IF(LEN(A14)=4,IF(ISERROR((VLOOKUP($A14,'Input 01'!$A$1:$F$997,5,0))-(VLOOKUP($A14,'Input 01'!$A$1:$F$997,4,0))),0,(VLOOKUP($A14,'Input 01'!$A$1:$F$997,5,0))-(VLOOKUP($A14,'Input 01'!$A$1:$F$997,4,0))),"")

    being FALSE.

    Change your "" to a 0 if that is what you wish.

    Regards
    Click * below if this answer helped

    Advanced Excel Techniques: http://excelxor.com/

  7. #7
    Forum Contributor
    Join Date
    07-06-2012
    Location
    Bitola,Macedonia
    MS-Off Ver
    Excel 2007
    Posts
    132

    Re: IF Error, if empty, vlookup

    But if you go with this formula down, and eg. Konto in column A "9910" it is "0" but in input 1 is 1,436.80>

    Regards

  8. #8
    Forum Expert XOR LX's Avatar
    Join Date
    04-18-2013
    Location
    Turin, Italy
    MS-Off Ver
    Office 365
    Posts
    7,742

    Re: IF Error, if empty, vlookup

    That value's in column 4 of Input 01 - your formula is looking, initially, in column 5.

    =IF(LEN(A166)=4,IF(ISERROR((VLOOKUP($A166,'Input 01'!$A$1:$F$997,5,0))-(VLOOKUP($A166,'Input 01'!$A$1:$F$997,4,0))),0,(VLOOKUP($A166,'Input 01'!$A$1:$F$997,5,0))-(VLOOKUP($A166,'Input 01'!$A$1:$F$997,4,0))),"")

    And the result of "" minus 1436.80 is, of course, an error; hence your result.

    Regards

  9. #9
    Forum Contributor
    Join Date
    07-06-2012
    Location
    Bitola,Macedonia
    MS-Off Ver
    Excel 2007
    Posts
    132

    Re: IF Error, if empty, vlookup

    Not working like I want. I don't know why...

  10. #10
    Forum Expert XOR LX's Avatar
    Join Date
    04-18-2013
    Location
    Turin, Italy
    MS-Off Ver
    Office 365
    Posts
    7,742

    Re: IF Error, if empty, vlookup

    What do you want?

  11. #11
    Forum Contributor
    Join Date
    07-06-2012
    Location
    Bitola,Macedonia
    MS-Off Ver
    Excel 2007
    Posts
    132

    Re: IF Error, if empty, vlookup

    serviceplan Entwurf reporting 2013 V1.1 - Copy.xlsx

    Here is something i'v done, i need to function like that in column G but now the problem is the #VALUE! in columnD and columnE. Some solution?

  12. #12
    Forum Expert XOR LX's Avatar
    Join Date
    04-18-2013
    Location
    Turin, Italy
    MS-Off Ver
    Office 365
    Posts
    7,742

    Re: IF Error, if empty, vlookup

    Hi,

    In cell D9 of the Planerfolgsrechnungen tab, you have a #VALUE! error. The reason for this is that the formula in that cell:

    =IF(LEN(A9)=4,G9+J9+M9+P9+S9+V9+Y9+AB9+AE9+AH9+AK9+AN9,"")

    equates to:

    =IF(TRUE," "+0+0+0+0+0+0+0+0+0+0+0,"")

    and, since addition of textual and numerical values is not defined in Excel, it is clear that you need to do something about this " " return.

    Since this is, in turn, obtained from cell G9, which contains the formula:

    =IF(ISNA(VLOOKUP($A9,'Input 01'!$A$1:$F$997,6,FALSE)),0,IF(LEN(A9)=4,(VLOOKUP($A9,'Input 01'!$A$1:$F$997,6,FALSE)),0))

    which results in:

    =IF(ISNA(" "),0,IF(TRUE,(" "),0))

    which, since " " is not equal to the error value #N/A, returns " ".

    This, then, is your main problem: the cells which seem to be blank in the Input 01 tab are not actually blank - the entry corresponding to Konto=3005 in the Schlussbilanz is actually " ", i.e. it contains an extra space.

    I suggest you do a clean up of your data in the Input tabs, and make sure that 'blank' cells truly are blank.

    If, for example, you delete the extra space in cell F44 of the Input 01 tab, then you will find that your formula in G9 of the Planerfolgsrechnungen tab will work as desired, since it will then be:

    =IF(ISNA(""),0,IF(TRUE,(""),0))

    which equates to:

    =""

    for which Excel will return 0 (since it cannot 'return' "" in a cell).

    Regards

  13. #13
    Forum Contributor
    Join Date
    07-06-2012
    Location
    Bitola,Macedonia
    MS-Off Ver
    Excel 2007
    Posts
    132

    Re: IF Error, if empty, vlookup

    Tank you very much.

  14. #14
    Forum Expert XOR LX's Avatar
    Join Date
    04-18-2013
    Location
    Turin, Italy
    MS-Off Ver
    Office 365
    Posts
    7,742

    Re: IF Error, if empty, vlookup

    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] Error when averaging empty & non empty cells
    By simonlblea in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 07-09-2013, 09:04 AM
  2. Replies: 3
    Last Post: 03-24-2011, 11:02 AM
  3. Error (empty list box)?
    By Ctech in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 03-22-2006, 10:34 AM
  4. [SOLVED] Fixing a sorting error for empty rows (error '1004')?
    By StargateFan in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 11-02-2005, 06:20 PM
  5. [SOLVED] Fixing a sorting error for empty rows (error '1004')?
    By StargateFan in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 11-02-2005, 06:17 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