I am using hyperlinks on some price values on cell in Google Docs. So my cells look like this:
=HYPERLINK("http://www.site.com/item","$25.00")
I am trying to perform a SUM
operation on a bunch of these cells but it was always returning 0. After investigating a little, I realized that it was because the value of the cell is not in fact the amount, but the hyperlink function. Is there a way to accomplish what I want while keeping the hyperlinks and the price in the same cell?
Best Answer
You can sum the values used in the
HYPERLINK
formula.Formula
Explained
The
LEN
formula determines the length of the string. TheRIGHT
formula allows you to extract characters from a string from the right side on. It uses the length of the string minus 1 (the$
). After that, the returned text in forced to be used as a value, through theVALUE
formula. AnARRAYFORMULA
makes it possible to use a range and theSUM
formula performs the mathematical summation.Screenshot
hyperlink
sum
Example
I've created an example file for you: Sum values used in hyperlinks