Adding Blank Cell Logic to Existing Formula
Results 1 to 7 of 7

Thread: Adding Blank Cell Logic to Existing Formula
Thanks Thanks: 0 Likes Likes: 0

  1. #1
    Board Regular
    Join Date
    May 2003
    Posts
    394
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Default Adding Blank Cell Logic to Existing Formula

    The formula below that is in W247 works correctly. You will notice if the lookup finds a value (the secondary VLOOKUP logis), that the formula returns the value in column 9.
    But if the value for column 9 is blank, then I want blank returned.
    Currently Excel is populating the value of "1/0/00"
    I am struggling with fitting an ISBLANK condition into this formula.
    Can someone please assist?


    =IF(D247<>"",D247,IF(ISERROR(VLOOKUP(O247,'G-Block CMO-FMO and IP Ranges '!$A$61:$I$400,7,FALSE)),"",VLOOKUP(O247,'G-Block CMO-FMO and IP Ranges '!$A$61:$I$400,9,FALSE)))

  2. #2
    Board Regular Aryatect's Avatar
    Join Date
    Jun 2019
    Location
    Chicago, USA
    Posts
    308
    Post Thanks / Like
    Mentioned
    3 Post(s)
    Tagged
    1 Thread(s)

    Default Re: Adding Blank Cell Logic to Existing Formula

    Hi, this is returning value 0 for you and it is in date format m/d/yy.

    If you want to change that then without going into too much modification this should work:

    Code:
    =IF(D247<>"",D247,IF(ISERROR(VLOOKUP(O247,'G-Block CMO-FMO and IP Ranges'!$A$61:$I$400,7,FALSE)),"",IF(VLOOKUP(O247,'G-Block CMO-FMO and IP Ranges'!$A$61:$I$400,9,FALSE)=0,"",VLOOKUP(O247,'G-Block CMO-FMO and IP Ranges'!$A$61:$I$400,9,FALSE))))
    Last edited by Aryatect; Jul 19th, 2019 at 04:17 PM.
    Thanks!

    - forum use guidelines, forum rules and terms of use
    - Try searching for your answer first, see how
    - Read the FAQs
    - List of BB codes

  3. #3
    Board Regular DanteAmor's Avatar
    Join Date
    Dec 2018
    Location
    México
    Posts
    5,732
    Post Thanks / Like
    Mentioned
    65 Post(s)
    Tagged
    14 Thread(s)

    Default Re: Adding Blank Cell Logic to Existing Formula

    Quote Originally Posted by meppwc View Post
    The formula below that is in W247 works correctly. You will notice if the lookup finds a value (the secondary VLOOKUP logis), that the formula returns the value in column 9.
    But if the value for column 9 is blank, then I want blank returned.
    Currently Excel is populating the value of "1/0/00"
    I am struggling with fitting an ISBLANK condition into this formula.
    Can someone please assist?

    Apparently you have a date format in the cell.
    Change the format of the cell to:

    dd/mm/aaaa;;"";@

    https://support.microsoft.com/en-us/...lls-dialog-box
    Regards Dante Amor

  4. #4
    Board Regular Aryatect's Avatar
    Join Date
    Jun 2019
    Location
    Chicago, USA
    Posts
    308
    Post Thanks / Like
    Mentioned
    3 Post(s)
    Tagged
    1 Thread(s)

    Default Re: Adding Blank Cell Logic to Existing Formula

    You can also change the format of Column W to m/d/yy;"";
    Thanks!

    - forum use guidelines, forum rules and terms of use
    - Try searching for your answer first, see how
    - Read the FAQs
    - List of BB codes

  5. #5
    Board Regular DanteAmor's Avatar
    Join Date
    Dec 2018
    Location
    México
    Posts
    5,732
    Post Thanks / Like
    Mentioned
    65 Post(s)
    Tagged
    14 Thread(s)

    Default Re: Adding Blank Cell Logic to Existing Formula

    it is correct must be yyyy then

    dd/mm/yyyy;;"";@
    Regards Dante Amor

  6. #6
    Board Regular
    Join Date
    May 2003
    Posts
    394
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Default Re: Adding Blank Cell Logic to Existing Formula

    Thank you all for the assistance.........DanteAmor.........dd/mm/aaaa;;"";@ worked perfectly. It really "cleaned" things up.

  7. #7
    Board Regular DanteAmor's Avatar
    Join Date
    Dec 2018
    Location
    México
    Posts
    5,732
    Post Thanks / Like
    Mentioned
    65 Post(s)
    Tagged
    14 Thread(s)

    Default Re: Adding Blank Cell Logic to Existing Formula

    Quote Originally Posted by meppwc View Post
    Thank you all for the assistance.........DanteAmor.........dd/mm/aaaa;;"";@ worked perfectly. It really "cleaned" things up.
    I'm glad to help you. Thanks for the feedback.
    Regards Dante Amor

Some videos you may like

User Tag List

Tags for this Thread

Like this thread? Share it with others

Like this thread? Share it with others

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •