Issue 71066 - hypertexted fields ignored by SUM()
Summary: hypertexted fields ignored by SUM()
Status: CLOSED FIXED
Alias: None
Product: Calc
Classification: Application
Component: code (show other issues)
Version: OOo 2.0.3
Hardware: PC Windows XP
: P3 Trivial (vote)
Target Milestone: ---
Assignee: spreadsheet
QA Contact: issues@sc
URL: http://www.tomnovacek.de/OpenOffice/H...
Keywords: oooqa
Depends on:
Blocks:
 
Reported: 2006-11-01 08:31 UTC by tomnov
Modified: 2008-05-18 00:03 UTC (History)
2 users (show)

See Also:
Issue Type: DEFECT
Latest Confirmation in: ---
Developer Difficulty: ---


Attachments

Note You need to log in before you can comment on or make changes to this issue.
Description tomnov 2006-11-01 08:31:43 UTC
Function SUM dies not include numbers, if they have a hypertext address
attached. Example at http://www.tomnovacek.de/OpenOffice/Hyperlinktest.ods
Comment 1 drking 2006-11-04 07:03:58 UTC
I don't think that this is an error, although it is a bit confusing.

The 'number' 4 in the example spreadsheet is in fact text (try =istext(A4) ),
and thus would not be summed.

Try entering '4 which forces the 4 to be text. It is left justified. You can
right justify it to make it look like a number, but it isn't and will not sum

To insert a hyperlink you have to type 4 in the 'Text' box - and then you have
to right justify it to make it look like a number - but it isn't..

If this resolves the issue could you close it please? HTH
Comment 2 tomnov 2006-11-05 14:35:23 UTC
The problem arises, when I have a list of numerals in OO Calc with the sum()
being calculated and I attach a hyperlink to one of the numerals (perhaps
indicating the origin of this value).

Attaching the hyperlink converts the numeral into a text item which then  -
consequently - is omitted in calculating sum().

I was neither successful in attaching the hyperlink to the FIELD containing the
numeral itself (not to a part of its content)assuming this might leave the data
type unaltered, nor could I find a way to re-convert the text item to a numeric
value as long as the hyperlink is attached.

Best regards
Tom Novacek
Comment 3 drking 2006-11-05 19:33:11 UTC
Yes, I see what you're trying to do... I can't find a way to attach a 
hyperlink to a cell with a number either - but I think that Calc is working as 
it was designed to, so it's not a bug. Maybe you could make a request for 
enhancement? But just looking at an old copy of Excel, it doesn't allow 
hyperlinked numbers either.

Other ideas:
1. Presumably the hyperlinked data is static - you could simply add 4 to the 
SUM() ;)
2. Have the links in an adjacent column
3. Have a hidden column with numbers, possibly even =VALUE(), and SUM that
4. Aha! - use =SUM(VALUE(A1:A2)) , entering by pressing CTRL-Shift-Enter - an 
array formula, which will convert to numbers before summing. Should appear as  
{=SUM(VALUE(A1:A2))}

Does that solve it?
Comment 4 tomnov 2006-11-11 15:48:20 UTC
issue is fixed successfully.
Comment 5 ace_dent 2008-05-17 21:58:21 UTC
The Issue you raised has been marked as 'Resolved' and not updated within the
last 1 year+. I am therefore setting this issue to 'Verified' as the first step
towards Closing it. If you feel this is incorrect, please re-open the issue and
add any comments.

Many thanks,
Andrew
 
Cleaning-up and Closing old Issues
~ The Grand Bug Squash, pre v3 ~
http://marketing.openoffice.org/3.0/announcementbeta.html
Comment 6 ace_dent 2008-05-18 00:03:15 UTC
As per previous posting: Verified -> Closed.
A Closed Issue is a Happy Issue (TM).

Regards,
Andrew