Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 19
Default SUM does report correctly

When using SUM() it reports 0, instead of 150.

The 3 cells I'm calculating are VLOOKUPs which equal 50, 50, 50. I
then use SUM(C27:C29) to report the total. This however reports 0.
If I override the VLOOKUP formula by entering 50 in each cell, I then
get the correct value using SUM.


Why is this happening? I'm using the exact formula elsewhere in the
spreadsheet and it works fine. I'm at a bit of a loss.


Thank you.


These are the exact formulas used:
=IF(C2="", "", VLOOKUP(C$2, ProCentre!$I$9:$K$30, 2, FALSE))
=IF(C2="", "", SUM(C27:C29))
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2,420
Default SUM does report correctly

Perhaps it is returning text. Try this

=SUMPRODUCT(--(C27:C29))

--
__________________________________
HTH

Bob

"AMaleThing" wrote in message
...
When using SUM() it reports 0, instead of 150.

The 3 cells I'm calculating are VLOOKUPs which equal 50, 50, 50. I
then use SUM(C27:C29) to report the total. This however reports 0.
If I override the VLOOKUP formula by entering 50 in each cell, I then
get the correct value using SUM.


Why is this happening? I'm using the exact formula elsewhere in the
spreadsheet and it works fine. I'm at a bit of a loss.


Thank you.


These are the exact formulas used:
=IF(C2="", "", VLOOKUP(C$2, ProCentre!$I$9:$K$30, 2, FALSE))
=IF(C2="", "", SUM(C27:C29))



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11,501
Default SUM does report correctly

Hi,

The most likely reason is that the vlookup is returning something that looks
like a number but is really text. Try this on the 'number' returned by vlookup

=ISNUMBER(C27)
If it evaluates as false then check your data.

Mike


"AMaleThing" wrote:

When using SUM() it reports 0, instead of 150.

The 3 cells I'm calculating are VLOOKUPs which equal 50, 50, 50. I
then use SUM(C27:C29) to report the total. This however reports 0.
If I override the VLOOKUP formula by entering 50 in each cell, I then
get the correct value using SUM.


Why is this happening? I'm using the exact formula elsewhere in the
spreadsheet and it works fine. I'm at a bit of a loss.


Thank you.


These are the exact formulas used:
=IF(C2="", "", VLOOKUP(C$2, ProCentre!$I$9:$K$30, 2, FALSE))
=IF(C2="", "", SUM(C27:C29))

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
Getting missing data from one report into another report... vlookupabyss Excel Discussion (Misc queries) 3 January 8th 08 03:26 PM
Print Report W/Sub Report Roger Excel Discussion (Misc queries) 0 September 6th 06 10:53 PM
Automate Excel report to place certain data into existing report? Craig Harrison Excel Worksheet Functions 3 July 25th 06 01:54 PM
Header in Report Manager Report Steve K Excel Discussion (Misc queries) 0 March 7th 06 07:32 PM
Fill an individual report with values from a team report? alymcmorland[_4_] Excel Programming 2 October 13th 05 09:39 AM


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