+ Reply to Thread
Results 1 to 13 of 13

adapting formula to not show OPP if empty

  1. #1
    Forum Contributor
    Join Date
    02-18-2014
    Location
    United Kingdom
    MS-Off Ver
    Excel 2010
    Posts
    356

    adapting formula to not show OPP if empty

    hi guys

    is it possible to amend this code - =IFERROR(VLOOKUP($L$2&CA8,Premier!$CG$2:$CH$381,2,FALSE),"")&" OPP "&IFERROR(VLOOKUP($T$2&CA8,Premier!$CG$2:$CH$381,2,FALSE),"")

    if there is nothing it still shows the word opp which i dont want if it doesnt apply

  2. #2
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    25,412

    Re: adapting formula to not show OPP if empty

    Basically, you will have to do:

    =IF(your_existing_formula=" OPP ","",your_existing_formula)

    Hope this helps.

    Pete

  3. #3
    Forum Contributor
    Join Date
    02-18-2014
    Location
    United Kingdom
    MS-Off Ver
    Excel 2010
    Posts
    356

    Re: adapting formula to not show OPP if empty

    that doesnt work pete

  4. #4
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    25,412

    Re: adapting formula to not show OPP if empty

    What does "doesn't work" mean?

    Do you get some error message?

    Pete

  5. #5
    Forum Contributor
    Join Date
    02-18-2014
    Location
    United Kingdom
    MS-Off Ver
    Excel 2010
    Posts
    356

    Re: adapting formula to not show OPP if empty

    i dont understand why it would be =" OPP "
    it returns the answer false
    where as if i leave it how it was it showed 2-0 OPP 3-1

  6. #6
    Forum Contributor
    Join Date
    02-18-2014
    Location
    United Kingdom
    MS-Off Ver
    Excel 2010
    Posts
    356

    Re: adapting formula to not show OPP if empty

    if both of the formulas = nothing then i dont want the word OPP in the cell

  7. #7
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2406
    Posts
    44,662

    Re: adapting formula to not show OPP if empty

    Try this:

    =IFERROR(VLOOKUP($L$2&CA8,Premier!$CG$2:$CH$381,2,FALSE)&" OPP ","")&IFERROR(VLOOKUP($T$2&CA8,Premier!$CG$2:$CH$381,2,FALSE),"")
    Attached Files Attached Files
    Glenn




    None of us get paid for helping you... we do this for fun. So DON'T FORGET to say "Thank You" to all who have freely given some of their time to help YOU

  8. #8
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    25,412

    Re: adapting formula to not show OPP if empty

    Did you repeat the formula after the "", ?

    The full formula would be:

    =IF(IFERROR(VLOOKUP($L$2&CA8,Premier!$CG$2:$CH$381,2,FALSE),"")&" OPP "&IFERROR(VLOOKUP($T$2&CA8,Premier!$CG$2:$CH$381,2,FALSE),"")=" OPP ","",IFERROR(VLOOKUP($L$2&CA8,Premier!$CG$2:$CH$381,2,FALSE),"")&" OPP "&IFERROR(VLOOKUP($T$2&CA8,Premier!$CG$2:$CH$381,2,FALSE),""))

    Hope this helps.

    Pete

  9. #9
    Forum Expert KOKOSEK's Avatar
    Join Date
    08-03-2018
    Location
    Pole in Yorkshire, UK
    MS-Off Ver
    365/2013
    Posts
    2,765

    Re: adapting formula to not show OPP if empty

    What about this

    Formula: copy to clipboard
    Please Login or Register  to view this content.
    Happy with my answer * Add Reputation.
    If You are happy with solution, please use Thread tools and mark thread as SOLVED.

  10. #10
    Forum Contributor
    Join Date
    02-18-2014
    Location
    United Kingdom
    MS-Off Ver
    Excel 2010
    Posts
    356

    Re: adapting formula to not show OPP if empty

    thats done it.

    Thanks Glenn Great stuff

  11. #11
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2406
    Posts
    44,662

    Re: adapting formula to not show OPP if empty

    You're welcome.



    If that takes care of your original question, please select "Thread Tools" from the menu link above and mark this thread as SOLVED.

    It'd also be appreciated if you were to click the Add Reputation button at the foot of any of the posts of all members who helped you reach a solution.

  12. #12
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    25,412

    Re: adapting formula to not show OPP if empty

    Hey Glenn,

    I've just noticed that you are a Moderator now - congratulations.

    Pete

  13. #13
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2406
    Posts
    44,662

    Re: adapting formula to not show OPP if empty

    A poisoned chalice... like Theresa May... but much less important!!

+ 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] Formula to show empty cell if there is no number in the cells to be summed.
    By headley4ever in forum Excel General
    Replies: 4
    Last Post: 07-01-2016, 03:43 PM
  2. [SOLVED] Show empty cell instead of zero in indx formula
    By purlo in forum Excel General
    Replies: 2
    Last Post: 01-21-2016, 06:50 AM
  3. [SOLVED] excel 2010 empty a cell according to other cells (without Deleting them just show empty)
    By pavlos_x in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 02-11-2015, 01:46 PM
  4. [SOLVED] Formula to show as blank if empty if zero value
    By Peterino in forum Excel Formulas & Functions
    Replies: 8
    Last Post: 10-29-2014, 04:05 PM
  5. [SOLVED] Cell w/link formula to show as empty for VBA check before saving
    By thecdnmole in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 09-23-2014, 04:30 PM
  6. Replies: 0
    Last Post: 02-28-2014, 04:55 PM
  7. [SOLVED] help with formula. It works but empty cells show#VALUE
    By nje in forum Excel General
    Replies: 4
    Last Post: 10-22-2012, 04:11 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