Conditional cell calculating logic

Hennie_vW

New Member
Joined
Dec 22, 2020
Messages
2
Office Version
  1. 2016
  2. 2010
Platform
  1. Windows
Good day, I am using an Excel spreadsheet to do various calculations (rows and columns). My challenge is that when there are negative numbers, they all have to be registered as 0 (zero). I never used the IF function in Excel before, so I tried it, but no luck. I may not understand it correctly. My initial entry/attempt in order to try and structure the conditional formula, was: =IF(C16<0,0,$E$6*C16). What I had wanted was that if the value in C16<0, D16 must=zero, otherwise if C16's value is calculated as being positive (>0), D16's value is to be calculated as being =$E$6*C16.

I would appreciate if someone could help.
Regards Hennie_vW
 

Excel Facts

Quick Sum
Select a range of cells. The total appears in bottom right of Excel screen. Right-click total to add Max, Min, Count, Average.
There is nothing wrong with your formula if you enter it in D16
 
Upvote 0
Thanks Arthurbr, at least it is encouraging. Yes it was entered in D16. I will try again and see if I could get the calculations to right.
Today time is limited, but I will follow up.
Regards Hennie_vW
 
Upvote 0

Forum statistics

Threads
1,214,405
Messages
6,119,315
Members
448,886
Latest member
GBCTeacher

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top