#1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 109
Default If Vlookup Question

Hi,

I have created the following equation using VLOOKUP...

=VLOOKUP(D26,'Sales Averages'!$A$4:$M$5000,4,FALSE)

The result varies depends on my data, but I would like any result that is $0
to equal "***"

Does anyone have any ideas?

Thanks so much for your help!!
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 155
Default If Vlookup Question

Hi Brent,

If you are only wanting results that are under a certain amount you can use:

=if(VLOOKUP(D26,'Sales
Averages'!$A$4:$M$5000,4,FALSE)A1,0,VLOOKUP(D26,' Sales
Averages'!$A$4:$M$5000,4,FALSE))

I placed the "upper limit" in cell A1.

If you are wanting ALL values under that amount you should use a filter.

Squeaky.



"Brent" wrote:

Hi,

I have created the following equation using VLOOKUP...

=VLOOKUP(D26,'Sales Averages'!$A$4:$M$5000,4,FALSE)

The result varies depends on my data, but I would like any result that is $0
to equal "***"

Does anyone have any ideas?

Thanks so much for your help!!

  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 17
Default If Vlookup Question

Try this:

=IF(VLOOKUP(D26,'Sales
Averages'!$A$4:$M$5000,4,FALSE)=0,"***",VLOOKUP(D2 6,'Sales
Averages'!$A$4:$M$5000,4,FALSE))


"Brent" wrote:

Hi,

I have created the following equation using VLOOKUP...

=VLOOKUP(D26,'Sales Averages'!$A$4:$M$5000,4,FALSE)

The result varies depends on my data, but I would like any result that is $0
to equal "***"

Does anyone have any ideas?

Thanks so much for your help!!

  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 420
Default If Vlookup Question

You may want to keep the result 0, but show the asterisks.

You could select the range with this formula and use:

Format|Cells|Number Tab
Select Custom Category
type:
$#,##0.00;-$#,##0.00;"***"

The format is: positive;negative;zero;text

Change the format to what you really like for the non-zero values.

You may want to try just hitting the $ on the formatting toolbar (xl2003). This
applies a currency format that shows a hyphen for 0's.

By displaying *** (or -), you may find that subsequent arithmetic formulas stay
nice and easy.

Brent wrote:

Hi,

I have created the following equation using VLOOKUP...

=VLOOKUP(D26,'Sales Averages'!$A$4:$M$5000,4,FALSE)

The result varies depends on my data, but I would like any result that is $0
to equal "***"

Does anyone have any ideas?

Thanks so much for your help!!


--

Dave Peterson
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
VLookup question dvonj Excel Discussion (Misc queries) 3 March 31st 09 02:17 AM
Vlookup question *zot* Excel Worksheet Functions 2 March 17th 09 09:08 PM
VLookup question DKinPgh Excel Worksheet Functions 3 November 7th 08 12:33 AM
VLOOKUP Question mllestecchino Excel Worksheet Functions 4 April 6th 06 08:53 PM
Question on Vlookup dharmik Excel Worksheet Functions 4 July 22nd 05 02:12 AM


All times are GMT +1. The time now is 01:55 AM.

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

About Us

"It's about Microsoft Excel"