Adding Logic to an Existing Formula
Results 1 to 4 of 4

Thread: Adding Logic to an Existing Formula
Thanks Thanks: 0 Likes Likes: 0

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

    Default Adding Logic to an Existing Formula

    I would appreciate some assistance.
    I cannot get the desired results when I try to add to an existing, working, formula

    The formula below works perfectly, but, I would like to add another condition to it.
    =IF(ISERROR(VLOOKUP(O161,'G-Block CMO-FMO and IP Ranges '!$A$61:$G$400,2,FALSE)),"",VLOOKUP(O161,'G-Block CMO-FMO and IP Ranges '!$A$61:$G$400,2,FALSE))
    This formula is located in cell P161
    I want to add another condition to it.

    Below is the logic that I need to add to the existing formula.
    If D161 is populated, then populate P161 with the contents of D161
    If D161 is blank, then populate P161 using the formula above (which works correctly)

  2. #2
    Board Regular
    Join Date
    Nov 2006
    Location
    London
    Posts
    8,050
    Post Thanks / Like
    Mentioned
    19 Post(s)
    Tagged
    2 Thread(s)

    Default Re: Adding Logic to an Existing Formula

    in P161
    =IF(D161<>"",D161,IF(ISERROR(VLOOKUP(O161,'G-Block CMO-FMO and IP Ranges '!$A$61:$G$400,2,FALSE)),"",VLOOKUP(O161,'G-Block CMO-FMO and IP Ranges '!$A$61:$G$400,2,FALSE)))

  3. #3
    Board Regular
    Join Date
    Apr 2019
    Posts
    72
    Post Thanks / Like
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)

    Default Re: Adding Logic to an Existing Formula

    Try:
    Code:
    =IF(D161="",IF(ISERROR(VLOOKUP(O161,'G-Block CMO-FMO and IP Ranges '!$A$61:$G$400,2,FALSE)),"",VLOOKUP(O161,'G-Block CMO-FMO and IP Ranges '!$A$61:$G$400,2,FALSE)),D161)
    
    

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

    Default Re: Adding Logic to an Existing Formula

    wow.......thank you both. Now that I see it, I should have been able to figure it out. Thanks so much

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
  •