IF statement

C

Cathy

Does anyone know fomula that looks at C2. If that cells has a name, then in
D2 (which is where the forumla will be) is automatically inserts 5.50.

Cathy
 
R

Rick Rothstein \(MVP - VB\)

More detail needed about "has a name". Is there a list of valid names
somewhere on your worksheet (if so, where)? Will any text in C2 be enough to
qualify as a name?

Rick
 
S

ShaneDevenshire

Hi Cathy,

Suppose that C2 either contains a name or is empty, then the formula would be
=IF(C2<>"",5.5,"")

You didn't say what you want if the C2 is empty so I have the formula
displaying a blank. I you want 0 the replace the last "" with 0.
 
Top