Using this Libre Calc statement: =if(B4=50,100)

  • Thread starter barryj
  • Start date
In summary, the conversation discusses using the IF statement in Libre Calc to display a certain value if a condition is met, and a different value if the condition is not met. The guide suggests using a blank space in the formula to achieve the desired result of leaving the cell empty if the condition is not met. The conversation concludes with the solution of using =if(B4=50,100,"").
  • #1
barryj
854
51
Homework Statement
I am need to use libre calc if function to perform calculations .
Relevant Equations
NA
Consider this Libre Calc if statement:
=if(B4=50,100) if B4 is 50 then 100 is displayed but if B4 is not 50 then FALSE is displayed.
I do not want FALSE displayed. I want the cell to be empty.

How can I do this?

Sorry if this is the wrong place to ask this.
 
Physics news on Phys.org
  • #2
HI,

Can't find a reference manual. Like Excel (?:) ), doesn't calc have something like IF(B4=50,100," ") ?

[edit] Ah, there's a guide, which says (p 255):

=IF(C31>140, “HIGH”, “OK”)

Logical functions can also be performed as​
represented by the IF statement which results in a​
conditional response based upon the data in the​
identified cell. In this example, if the contents of C31​
is greater than 140, then HIGH is displayed,​
otherwise OK is displayed.​
##\ ##
 
  • Like
Likes berkeman
  • #3
If it's like excel, you probably don't want the space between the quotation marks
 
  • Informative
  • Like
Likes berkeman and BvU
  • #4
Thanks =if(B4=50,100,"") works.
I think I tried that before but it works now. The "" is the trick.
Thanks all.
 
  • Like
Likes BvU and berkeman

Related to Using this Libre Calc statement: =if(B4=50,100)

1. What does the "if" statement do in Libre Calc?

The "if" statement in Libre Calc allows you to specify a condition and a result that will be displayed if the condition is met. If the condition is not met, you can also specify an alternative result.

2. How do I use the "if" statement in Libre Calc?

To use the "if" statement in Libre Calc, you can type "=if" into a cell and then specify the condition and result in parentheses, separated by a comma. For example, "=if(A1>10, "Yes", "No")" will display "Yes" if the value in cell A1 is greater than 10, and "No" if it is not.

3. What does the "B4=50" part of the statement mean?

The "B4=50" part of the statement is the condition that is being checked. In this case, it is checking if the value in cell B4 is equal to 50. If it is, the result specified after the comma will be displayed.

4. What does the "100" part of the statement mean?

The "100" part of the statement is the result that will be displayed if the condition is met. In this case, if the value in cell B4 is equal to 50, the cell containing the "if" statement will display 100.

5. Can I use multiple "if" statements in one cell in Libre Calc?

Yes, you can use multiple "if" statements in one cell in Libre Calc. This is known as a nested "if" statement, where the result for one "if" statement can be another "if" statement. However, it is important to keep track of the parentheses and commas to ensure the statements are written correctly.

Similar threads

  • Engineering and Comp Sci Homework Help
Replies
1
Views
2K
  • Precalculus Mathematics Homework Help
Replies
7
Views
1K
  • Quantum Interpretations and Foundations
2
Replies
38
Views
4K
  • Precalculus Mathematics Homework Help
Replies
4
Views
2K
Replies
9
Views
1K
  • Electrical Engineering
Replies
8
Views
943
  • Precalculus Mathematics Homework Help
Replies
19
Views
2K
  • Engineering and Comp Sci Homework Help
Replies
10
Views
1K
  • Engineering and Comp Sci Homework Help
Replies
3
Views
2K
  • Calculus and Beyond Homework Help
Replies
4
Views
1K
Back
Top