Going from Bottom to top how to check if a cell contains a number, and if it does, then subtract that cell from the next number in the column

rsd007

New Member
Joined
Oct 24, 2022
Messages
38
Office Version
  1. 2019
Platform
  1. Windows
I am looking for formula to find the value in C if value in B column and subtract from the next number in upper B cell and my sheet is keep growing in top as new data is added in top line (27..........).

Thanks for all the help :)



ABC
27​
26​
41​
?
25​
24​
23​
22​
21​
20​
19​
33​
?
18​
17​
16​
9​
?
15​
14​
13​
12​
11​
6​
?
10​
5​
5-29=?
9​
8​
7​
29​
29-10=?
6​
5​
4​
3​
10​
10-40=?
2​
1​
40​
 
While I am considering that new information, what about the first two questions in my previous post?
List keep growing downwards. More entry every month some time every day. Some days no entry if no body drive.
 
Upvote 0

Excel Facts

Enter current date or time
Ctrl+: enters current time. Ctrl+; enters current date. Use Ctrl+: Ctrl+; Enter for current date & time.
List keep growing downwards. More entry every month some time every day. Some days no entry if no body drive.
That is not related to what I am asking about. My first 2 questions in post #8 were about XL2BB not working.
In what way is it not working?
At what point in the instructions in the link I provided does the problem occur?


needed other way subtracting 33-41= (-8); 9-33= (-24); 6-9= (-3); 5-6= (-1); 29-5= 24
Also ignore if blank or anything other then number.
Row 2 should be empty as it is the first entry and row 21 should be 29-5=24
Like this?

rsd007.xlsm
BC
1
241 
3 
4 
5A 
6 
7 
8 
933-8
10 
11 
129-24
13 
14 
15 
16 
176-3
185-1
19 
20X 
212924
22 
23 
Subtract (2)
Cell Formulas
RangeFormula
C2:C23C2=IF(ISNUMBER(B2),IFNA(B2-LOOKUP(9E+307,B$1:B1),""),"")
 
Upvote 0
Solution
While I am considering that new information, what about the first two questions in my previous post?

That is not related to what I am asking about. My first 2 questions in post #8 were about XL2BB not working.
I thought I also reply to your questions in Post#9.
Like this?

rsd007.xlsm
BC
1
241 
3 
4 
5A 
6 
7 
8 
933-8
10 
11 
129-24
13 
14 
15 
16 
176-3
185-1
19 
20X 
212924
22 
23 
Subtract (2)
Cell Formulas
RangeFormula
C2:C23C2=IF(ISNUMBER(B2),IFNA(B2-LOOKUP(9E+307,B$1:B1),""),"")
Thanks
 
Upvote 0

Forum statistics

Threads
1,224,609
Messages
6,179,881
Members
452,948
Latest member
Dupuhini

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