Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 193
Default Vlookup and adding text

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
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 15,768
Default Vlookup and adding text

Try this:

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

Biff

"Confused" wrote in message
...
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



  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 193
Default Vlookup and adding text

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

"Confused" wrote:

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

  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 15,768
Default Vlookup and adding text

Try this:

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

Biff

"Confused" wrote in message
...
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

"Confused" wrote:

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



Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Adding text to a vlookup cell Lee Coleman New Users to Excel 2 March 26th 07 06:42 PM
Adding Dashes in front of text using text formating Neal Excel Discussion (Misc queries) 1 November 27th 06 10:58 PM
Adding VLOOKUP Nakia Allen Excel Worksheet Functions 4 September 29th 06 10:17 PM
Adding two columns with vlookup JR Excel Worksheet Functions 2 March 3rd 06 01:46 PM
Adding using Vlookup Moy Emrick Excel Discussion (Misc queries) 3 February 2nd 06 01:22 AM


All times are GMT +1. The time now is 02:43 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"