Excel VBA question - If then ElseIf statement -


I have a VBA conditional function that I laugh together (I am a Nob) who has a name in a cell Checks and returns the appropriate conditions if a condition is true, otherwise it is blank "Instead of returning to the blank, I want to return the default cell value to it.

As an example, I have the following functions and the results based on my function:

  Cell AB 1 Bob Bob Rob Robert 2 Mike Michael 3 Dan Dan Daniel 4 Scott I want the result of B4 to return the default value in A4 (Scott), instead of a blank, like:  
  AB 1 Bob Bob Rob Robert 2 Mike Michael 3 Dan Dan Daniel 4 Scott Scott   

Any help would be appreciated:

Here my funk The name of the function (PLA as string) in the form of a string, if pVal = "bob" then name = list = "Bob Rob Robert" ALSIP pVal = "Mike" then name = list = "Mike Michael"

thanks

HTML

Comments