Help with Excel formula

flevina

New Member
Joined
Feb 25, 2022
Messages
3
Office Version
  1. 365
Platform
  1. Windows
Hi Floks,

I am writing code for the decrement the B4 cell value by 1 in Cell B5 when i enter the value in next cell.

EX: I have a value of in cell B4= 24, and wanted to write a formula on cell B5 where it will decreased the cell value by 1 every time when i keep entering the values in next each cell.

if i entered in B6, B5 value should be 23
and if i entered something in B7, B5 would be 22 like this.

please help to write a formula for this.

1646025663733.png
 

Excel Facts

Difference between two dates
Secret function! Use =DATEDIF(A2,B2,"Y")&" years"&=DATEDIF(A2,B2,"YM")&" months"&=DATEDIF(A2,B2,"MD")&" days"
See if this does what you want

22 02 28.xlsm
AB
1
2
3
424
521
6abc
734
82/05/2021
9
10
Decrement
Cell Formulas
RangeFormula
B5B5=B4-COUNTA(B6:B1000)
 
Upvote 0
Solution
You're welcome. Thanks for the follow-up. :)
 
Upvote 0

Forum statistics

Threads
1,214,643
Messages
6,120,702
Members
448,980
Latest member
CarlosWin

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