The Origin Forum
File Exchange
Try Origin for Free
The Origin Forum
Home | Profile | Register | Active Topics | Members | Search | FAQ | Send File to Tech support
Username:
Password:
Save Password
Forgot your Password? | Admin Options

 All Forums
 Origin Forum
 Origin Forum
 Treat -- as zeros?
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic Lock Topic Edit Topic Delete Topic New Topic Reply to Topic

Tukulti-Apil-Esarra

USA
5 Posts

Posted - 11/10/2017 :  11:00:16 AM  Show Profile  Edit Topic  Reply with Quote  View user's IP address  Delete Topic
is it possible to treat the double dashes (--) or empty cells as zeros?

I have a column that sums up values in a few other columns. One of those columns have now stopped being filled with data. Because of this column now having empty cells or cells with --, the summation column does not calculate the sum. I can of course keep typing in zeros in this column but would prefer not to.

Example:

Col(A) | Col(B) | Col(C)=Col(A)+Col(B)
100 | 500 | 600
300 | 100 | 400
600 | 0 | 600
0 | 300 | 300
100 | 200 | 300
300 | -- | --
400 | -- | --

nick_n

Finland
125 Posts

Posted - 11/10/2017 :  12:01:20 PM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
Hi,
As a kind of workaround: Select column with "--" (col(B) in your case) -> "Ctrl+H" -> Find what "--" -> Replace with "0".
BR,

Nikolay
Go to Top of Page

Tukulti-Apil-Esarra

USA
5 Posts

Posted - 11/13/2017 :  4:54:37 PM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
Can I somehow fix this using row indices? I'm summing three columns. Can I specify to sum all three from rows 1 to e.g. 100 and then from row 101 sum only two of the columns?
Go to Top of Page

nick_n

Finland
125 Posts

Posted - 11/13/2017 :  5:57:23 PM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
Hi,
Yes, of course. Select output column -> right click -> Set column values (or Ctrl+Q) -> put your formula (eg Col(A)+Col(B)+col(C)) -> select desired rows range (1 - 100) -> ok. And the same for rest of rows with another formula. BR,



Nikolay
Go to Top of Page

Tukulti-Apil-Esarra

USA
5 Posts

Posted - 11/15/2017 :  09:58:46 AM  Show Profile  Edit Reply  Reply with Quote  View user's IP address  Delete Reply
Thanks. In column D I did Col(A)+Col(B)+col(C) for rows 1 to 100 with None Recalculate and then for the same column D did Col(A)+Col(B) for rows 101 to <auto> with Auto Recalculate.
Go to Top of Page
  Previous Topic Topic Next Topic Lock Topic Edit Topic Delete Topic New Topic Reply to Topic
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
The Origin Forum © 2020 Originlab Corporation Go To Top Of Page
Snitz Forums 2000