Vlookup and adding text

G

Guest

How would I write the vlookup formula where, if vlookup formula returns a
number, then I want the number to include "/ month" after it. If the vlookup
does not return a value, then I want to show a blank. For example, my
vlookup formula is vlookup(B2,database,3,false) returns 4,031. I want the
cell to read "4,031 / month" .

any help is much appreciated. Thanks
 
T

T. Valko

Try this:

=IF(ISNUMBER(MATCH(B2,INDEX(database,,1),0)),
VLOOKUP(B2,database,3,0)&" / month","")

Biff
 
G

Guest

the formula works great. But just one more thing, the value that is return
is 4031 / month. how do I get it to show $4,031 / month?

Thanks
 
T

T. Valko

Try this:

=IF(ISNUMBER(MATCH(B2,INDEX(database,,1),0)),
TEXT(VLOOKUP(B2,database,3,0),"$#,###")&" / month","")

Biff
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top