+ Reply to Thread
Results 1 to 4 of 4

Formula ignored if missing value

  1. #1
    Forum Contributor
    Join Date
    09-23-2010
    Location
    London
    MS-Off Ver
    Excel 2010
    Posts
    346

    Formula ignored if missing value

    Morning,

    I'd appreciate any help you can give. I am using the following formula:

    =IFERROR(VLOOKUP(Achieved!AE4,Lookups!$O$1:$P$9,2),0) - IFERROR(VLOOKUP('FFT Target'!AE4,Lookups!$O$1:$P$9,2),0)

    The problem I'm having is that I want the result for this formula to leave the cell empty if either of the Looked Up cells are empty. Any ideas please?


    Many thanks
    Last edited by Cmorgan; 02-27-2012 at 07:43 AM.

  2. #2
    Forum Moderator - RIP Richard Buttrey's Avatar
    Join Date
    01-14-2008
    Location
    Stockton Heath, Cheshire, UK
    MS-Off Ver
    Office 365, Excel for Windows 2010 & Excel for Mac
    Posts
    29,464

    Re: Formula ignored if missing value

    Hello,

    Try

    =IF(OR(Achieved!AE4="",'FFT Target'!AE4=""),"",IFERROR(VLOOKUP(Achieved!AE4,Lookups!$O$1:$P$9,2),0) - IFERROR(VLOOKUP('FFT Target'!AE4,Lookups!$O$1:$P$9,2),0))
    Richard Buttrey

    RIP - d. 06/10/2022

    If any of the responses have helped then please consider rating them by clicking the small star icon below the post.

  3. #3
    Forum Moderator - RIP Richard Buttrey's Avatar
    Join Date
    01-14-2008
    Location
    Stockton Heath, Cheshire, UK
    MS-Off Ver
    Office 365, Excel for Windows 2010 & Excel for Mac
    Posts
    29,464

    Re: Formula ignored if missing value

    Hello,

    One other thought strikes me. If you're trying to avoid an error caused by one or both of the two cell values, by presumably being blank and not appearing in the VLookup list, then perhaps

    =IFERROR(VLOOKUP(Achieved!AE4,Lookups!$O$1:$P$9,2) - VLOOKUP('FFT Target'!AE4,Lookups!$O$1:$P$9,2),0)

    Regards

  4. #4
    Forum Contributor
    Join Date
    09-23-2010
    Location
    London
    MS-Off Ver
    Excel 2010
    Posts
    346

    Re: Formula ignored if missing value

    Perfect, many thanks.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

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