Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.excel.programming
|
|||
|
|||
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
Posted to microsoft.public.excel.programming
|
|||
|
|||
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
Posted to microsoft.public.excel.programming
|
|||
|
|||
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 |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
Getting missing data from one report into another report... | Excel Discussion (Misc queries) | |||
Print Report W/Sub Report | Excel Discussion (Misc queries) | |||
Automate Excel report to place certain data into existing report? | Excel Worksheet Functions | |||
Header in Report Manager Report | Excel Discussion (Misc queries) | |||
Fill an individual report with values from a team report? | Excel Programming |