Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1
Default Need Vlookup to return a value of $0.00 in blank cells

I using this formula

=IF(ISNA(VLOOKUP(A7,$O$2:$P$39,2,0)),"",VLOOKUP(A7 ,O$2:$P$39,2,FALSE))

I need the department that do not have a dollar value to equal to $0.00 in
my list on matched up department sales Or my %of Sales formula does not work.


Department Sales Departement Sales % of

Sales
Baseball $186.95 Baseball $186.95 #VALUE!
Bikes $3,317.88 Basketball #VALUE!
Exersice $14.98 Bikes $3,317.88 #N/A
Footwear $217.37 Billards #VALUE!
General $35.99 Bowling #VALUE!
Golf $210.83 Darts #VALUE!
Hockey $906.92 Exersice $14.98 #N/A
Inlines $249.98 Figure Skates #VALUE!
Licenced $79.99 FootBall #VALUE!
Racquets $112.75 Footwear $217.37 #N/A
Rental $134.99 General $35.99 #N/A
Repairs $57.73 Gift Cert #VALUE!
Skateboards $201.97 Golf 210.83
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Max Max is offline
external usenet poster
 
Posts: 9,221
Default Need Vlookup to return a value of $0.00 in blank cells

Untested, but think we could try ISERROR and change the: "" to a zero, viz.:
=IF(ISERROR(VLOOKUP(A7,$O$2:$P$39,2,0)),0,VLOOKUP( A7,O$2:$P$39,2,FALSE))
--
Max
Singapore
http://savefile.com/projects/236895
xdemechanik
---
"fabiano" wrote:
I using this formula

=IF(ISNA(VLOOKUP(A7,$O$2:$P$39,2,0)),"",VLOOKUP(A7 ,O$2:$P$39,2,FALSE))

I need the department that do not have a dollar value to equal to $0.00 in
my list on matched up department sales Or my %of Sales formula does not work.


Department Sales Departement Sales % of

Sales
Baseball $186.95 Baseball $186.95 #VALUE!
Bikes $3,317.88 Basketball #VALUE!
Exersice $14.98 Bikes $3,317.88 #N/A
Footwear $217.37 Billards #VALUE!
General $35.99 Bowling #VALUE!
Golf $210.83 Darts #VALUE!
Hockey $906.92 Exersice $14.98 #N/A
Inlines $249.98 Figure Skates #VALUE!
Licenced $79.99 FootBall #VALUE!
Racquets $112.75 Footwear $217.37 #N/A
Rental $134.99 General $35.99 #N/A
Repairs $57.73 Gift Cert #VALUE!
Skateboards $201.97 Golf 210.83

  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 2,886
Default Need Vlookup to return a value of $0.00 in blank cells

Hi

Rather than the double Vlookup, you could test for the existence of the
Department first with Match

=IF(ISNUMBER(MATCH(A7,$O$2:$P$39,0)),VLOOKUP(A7,O$ 2:$P$39,2,FALSE),0)

--
Regards

Roger Govier


"fabiano" (donotspam) wrote in message
...
I using this formula

=IF(ISNA(VLOOKUP(A7,$O$2:$P$39,2,0)),"",VLOOKUP(A7 ,O$2:$P$39,2,FALSE))

I need the department that do not have a dollar value to equal to
$0.00 in
my list on matched up department sales Or my %of Sales formula does
not work.


Department Sales Departement Sales % of

Sales
Baseball $186.95 Baseball $186.95 #VALUE!
Bikes $3,317.88 Basketball #VALUE!
Exersice $14.98 Bikes $3,317.88 #N/A
Footwear $217.37 Billards #VALUE!
General $35.99 Bowling #VALUE!
Golf $210.83 Darts #VALUE!
Hockey $906.92 Exersice $14.98 #N/A
Inlines $249.98 Figure Skates #VALUE!
Licenced $79.99 FootBall #VALUE!
Racquets $112.75 Footwear $217.37 #N/A
Rental $134.99 General $35.99 #N/A
Repairs $57.73 Gift Cert #VALUE!
Skateboards $201.97 Golf 210.83



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
Excel: match two cells in one sheet to two cells in another and return a third cells value Spence Excel Worksheet Functions 3 February 13th 11 05:33 AM
How do you return the sum of two cells in a vlookup? Sweetetc Excel Worksheet Functions 2 January 25th 06 04:11 PM
How do I return a blank for VLOOKUP instead of #N/A? ExcelBee Excel Worksheet Functions 15 September 3rd 05 07:04 AM
Counting blank and filled cells within a range. greg7468 Excel Discussion (Misc queries) 3 June 28th 05 10:41 PM
referencing cells that return blank results Suz Excel Worksheet Functions 4 February 21st 05 10:59 PM


All times are GMT +1. The time now is 05:30 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"