PHPFixing
  • Privacy Policy
  • TOS
  • Ask Question
  • Contact Us
  • Home
  • PHP
  • Programming
  • SQL Injection
  • Web3.0

Wednesday, December 14, 2022

[FIXED] Why does Sheets/Excel allow entering in SUMing cells with string values but not strings themselves?

 December 14, 2022     arrays, excel, google-sheets, range, syntax     No comments   

Issue

I've noticed the following:

enter image description here

Basically, I can do:

=SUM(range)

When that includes a cell, and also the individual cells:

=SUM(cell1, cell2, ...)

But when I enter in the literal values it gives me an error if they're not all numeric:

=SUM(val1, val2, val3)

Why is this so?


Solution

in google sheets, if you want to pass a text string as an argument you can do:

=SUM(10, 20, 30, N("Hello"))

enter image description here

some people tend to use this in their complex formulae (not just SUM) as notes

enter image description here



Answered By - player0
Answer Checked By - Candace Johnson (PHPFixing Volunteer)
  • Share This:  
  •  Facebook
  •  Twitter
  •  Stumble
  •  Digg
Newer Post Older Post Home

0 Comments:

Post a Comment

Note: Only a member of this blog may post a comment.

Total Pageviews

Featured Post

Why Learn PHP Programming

Why Learn PHP Programming A widely-used open source scripting language PHP is one of the most popular programming languages in the world. It...

Subscribe To

Posts
Atom
Posts
Comments
Atom
Comments

Copyright © PHPFixing