Formula

Johnboy28

Board Regular
Joined
Jun 22, 2013
Messages
198
Office Version
  1. 365
  2. 2019
  3. 2016
  4. 2013
  5. 2010
Platform
  1. Windows
I'm after a formula that can give me - if cell equals Zero it will return 0 (Not Blank), and will return 1 if greater then zero. Thank you



Total Feed CostResults
$25.00
$36.00
$25.00
$25.00
$0.00
$0.00
$0.00
$24.00
$21.00
 

Excel Facts

What does custom number format of ;;; mean?
Three semi-colons will hide the value in the cell. Although most people use white font instead.
How about

varios 23oct2024.xlsm
AB
1Total Feed CostResults
2$25.001
3$36.001
4$25.001
5$25.001
6$0.000
7$0.000
8$0.000
9$24.001
10$21.001
Hoja3
Cell Formulas
RangeFormula
B2:B10B2=IF(A2,1,0)
 
Upvote 0
If you are using your 365 version you can do all the rows at once without copying down by adapting either of the previous suggestions or yet another variation as below.

24 10 24.xlsm
ABCD
1Total Feed CostResultsResultsResults
2$25.00111
3$36.00111
4$25.00111
5$25.00111
6$0.00000
7$0.00000
8$0.00000
9$24.00111
10$21.00111
Zero or above
Cell Formulas
RangeFormula
B2:B10B2=IF(A2:A10,1,0)
C2:C10C2=SIGN(A2:A10)
D2:D10D2=--(A2:A10>0)
Dynamic array formulas.
 
Upvote 0
If you are using your 365 version you can do all the rows at once without copying down by adapting either of the previous suggestions or yet another variation as below.

24 10 24.xlsm
ABCD
1Total Feed CostResultsResultsResults
2$25.00111
3$36.00111
4$25.00111
5$25.00111
6$0.00000
7$0.00000
8$0.00000
9$24.00111
10$21.00111
Zero or above
Cell Formulas
RangeFormula
B2:B10B2=IF(A2:A10,1,0)
C2:C10C2=SIGN(A2:A10)
D2:D10D2=--(A2:A10>0)
Dynamic array formulas.
Thank you very much. Appreciate your help.
 
Upvote 0

Forum statistics

Threads
1,223,929
Messages
6,175,449
Members
452,642
Latest member
acarrigan

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