[Solved] Use of IF in spreadsheets

Discuss the spreadsheet application
Post Reply
colinopen
Posts: 4
Joined: Thu Dec 14, 2017 7:21 am

[Solved] Use of IF in spreadsheets

Post by colinopen »

Hi there
What is wrong with IF(B2*H2>0; 0; H2)
trying to get the result of B2 multiplied by H2 and give 0 or the result of H2 which is a cell containing the results of 2 cells multiplied.
Last edited by Hagar Delest on Thu Dec 14, 2017 10:44 pm, edited 1 time in total.
Reason: tagged [Solved].
Open Office 4 on Windows 10
User avatar
robleyd
Moderator
Posts: 5082
Joined: Mon Aug 19, 2013 3:47 am
Location: Murbko, Australia

Re: use of IF in spreadsheets

Post by robleyd »

Code: Select all

=IF(B2*H2>0; 0; H2)
Don't forget the = sign

Means if the product of B2 and H2 is greater than zero, show zero; otherwise show the content of H2

Is this what you want?
Cheers
David
OS - Slackware 15 64 bit
Apache OpenOffice 4.1.15
LibreOffice 24.2.2.2; SlackBuild for 24.2.2 by Eric Hameleers
colinopen
Posts: 4
Joined: Thu Dec 14, 2017 7:21 am

Re: use of IF in spreadsheets

Post by colinopen »

Just joined and very rusty on spreadsheets.
Thanks so much for the prompt response.
Open Office 4 on Windows 10
User avatar
robleyd
Moderator
Posts: 5082
Joined: Mon Aug 19, 2013 3:47 am
Location: Murbko, Australia

Re: use of IF in spreadsheets

Post by robleyd »

Cheers
David
OS - Slackware 15 64 bit
Apache OpenOffice 4.1.15
LibreOffice 24.2.2.2; SlackBuild for 24.2.2 by Eric Hameleers
Post Reply