Return calculated value with some condition - 1. show result as 0 / 2.show result +1

newtoexcell

New Member
Joined
Oct 26, 2022
Messages
7
Office Version
  1. 2019
Platform
  1. Windows
Hi guys,

I would like some help here, same as mention in title but let me get into detail.

Let say I have number in A1 and B1, B1 suppose to minus with A1.

In C1, I need some formula which can return value with follows condition.

1. if result is positive and >0, +1 and show in C1
2. if result is 0, show 0 in C1
2. if result is negative, just show 0 in C1
 

Excel Facts

When did Power Query debut in Excel?
Although it was an add-in in Excel 2010 & Excel 2013, Power Query became a part of Excel in 2016, in Data, Get & Transform Data.
I am not sure I understand what you are trying to do. Do you just mean something like this /
Book1
ABC
1100601
Sheet1
Cell Formulas
RangeFormula
C1C1=0+((A1-B1)>0)
 
Upvote 0
Hi Alex, sorry for not being clear. Let me give you some scenario, hope it could help you.

1.if result is positive and >0, +1 and show in C1
Example: A1=60, B1=100, (B1-A1), C1 should be 41 (result =40 then +1)

2. if result is 0, show 0 in C1
Example: A1= 100, B1=100, (B1-A1), C1 should be 0 (no need to +1)

3. if result is negative, just show 0 in C1
Example: A1=100, B1=60, (B1-A1), C1 should be 0 (result =-40 but display as 0)
 
Upvote 0

Forum statistics

Threads
1,216,037
Messages
6,128,442
Members
449,453
Latest member
jayeshw

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