Take the 2-minute tour ×
Web Applications Stack Exchange is a question and answer site for power users of web applications. It's 100% free, no registration required.

I have a spreadsheet with invoice amounts. Each amount is a link to the given invoice. Can I use sum() and value() (or any other functions) to somehow use the displayed value for sum() (and not the actual hyperlink)?

Update: Sample Spreadsheet

share|improve this question
    
Best is to share a doc with us and show us the expected outcome. –  Jacob Jan Tuinstra Mar 9 at 21:27
    
@JacobJanTuinstra Good idea, added. Thanks! –  Mbrevda Mar 9 at 21:35

1 Answer 1

up vote 3 down vote accepted

Yes, but you have to use an Array Formula, like this:

=ArrayFormula(SUM(VALUE(A1:A7)))

I took the liberty to edit your Sample spreadsheet.

You can write

=SUM(VALUE(A1:A7))

and press ctrl + shft + enter to make it an Array formula.

About array formulas (from here):

"Single-cell" array formulas let you write formulas with array inputs, instead of array outputs. When you wrap a formula inside an =ARRAYFORMULA function, you can pass arrays and ranges to functions and operators that usually only take non-array arguments. Those functions and operators will apply to each entry in the arrays one at a time, and return a new array with all of the outputs.

It basically runs a function which only takes one cell (in this case the value-function) and runs it on every cell in the range.

share|improve this answer
    
Awesome! Can you please explain what ArrayFormula() dose? –  Mbrevda Mar 9 at 22:07
    
Sure, I edited my answer. –  Punchlinern Mar 9 at 22:11
    
Perfect, thanks! –  Mbrevda Mar 9 at 22:11
    
+1; Nice way to use the ARRAYFORMULA –  Jacob Jan Tuinstra Mar 10 at 6:53

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.