+ Reply to Thread
Results 1 to 6 of 6

VLookup data in corresponding cells which contain formula and blank result

  1. #1
    Registered User
    Join Date
    05-09-2017
    Location
    Edmonton, Alberta
    MS-Off Ver
    2016
    Posts
    61

    VLookup data in corresponding cells which contain formula and blank result

    Hello,
    Please see attached spreadsheet for reference.

    The table (A1:P13) contains a schedule. In rows 2,5,8,11 there is a formula [=IF(ISBLANK(B18),"",B18)] in each cell that references the Rotation table (A16:BE21).
    In rows 4,7,10,13 there is a formula [=IF(ISBLANK(B2),"",VLOOKUP(B2,$R$2:$T$5,3,FALSE))] in each cell that references the value in rows 2,5,8,11 and pulls a value from the Shift table (R1:T5).
    In rows 3,6,9,12 there is a formula [=IF(N(B4),B4,0)] in each cell that pulls the value in the rows 4,7,10,13, those values are then summed in Column P.

    Currently in rows 3,6,9,12 and 4,7,10,13 when the cells in 2,5,8,11 are 'blank' (formula only but blank result), I'm getting a result of #N/A, is there a way to have them return a blank result?

    Thank you!

  2. #2
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,595

    Re: VLookup data in corresponding cells which contain formula and blank result

    You can use the IFNA error trap:

    =IFNA(your_formula,"")
    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.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    Forum Rules (updated August 2023): please read them here.

  3. #3
    Registered User
    Join Date
    05-09-2017
    Location
    Edmonton, Alberta
    MS-Off Ver
    2016
    Posts
    61

    Re: VLookup data in corresponding cells which contain formula and blank result

    Hmm, that's not working I keep getting a "Problem with this formula" message.

    In cell B4 I put:
    =IFNA((=IF(ISBLANK(B18),"",B18)),"")
    which is resulting in the problem with formula error.

  4. #4
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,595

    Re: VLookup data in corresponding cells which contain formula and blank result

    The extra equals sign is the problem! Try this:

    =IFNA(IF(ISBLANK(B18),"",B18),"")

    Or you can use this:

    =IFERROR(IF(ISBLANK(B18),"",B18),"")

  5. #5
    Registered User
    Join Date
    05-09-2017
    Location
    Edmonton, Alberta
    MS-Off Ver
    2016
    Posts
    61

    Re: VLookup data in corresponding cells which contain formula and blank result

    Beautiful! Thank you!

  6. #6
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,595

    Re: VLookup data in corresponding cells which contain formula and blank result

    No worries.

+ 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] ignore blank cells that are thew result of a formula
    By moneypennie21 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 03-22-2019, 08:50 AM
  2. My formula result shows in blank cells
    By chrisellis250 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 07-09-2018, 08:42 AM
  3. [SOLVED] If two cells are blank then return blank, else vlookup cell with populated data
    By Jason G in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 03-06-2017, 10:20 AM
  4. [SOLVED] Want IF/VLOOKUP formula null result to display blank, but it's displaying 0
    By xdrenched in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 04-21-2016, 11:47 AM
  5. [SOLVED] Multiple cells blank using formula for result
    By Christopherdj in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 09-24-2014, 06:36 PM
  6. How to return a blank result when using SUM(VLOOKUP formula??
    By Shannon561 in forum Excel Formulas & Functions
    Replies: 8
    Last Post: 05-13-2014, 03:49 AM
  7. Code for VBA VLookup result blank if column index number is blank
    By Sc0tt1e in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 03-06-2014, 05:55 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