Help with "IF"

garretttpe

New Member
Joined
Feb 15, 2015
Messages
26
Hi All
Attached is a spread sheet and I want to be able to add or subtract numbers in a row if there is a I (Install) or R (removed) in the 1st cell. hard to explain and I hope seeing the spread sheet you get what I am trying to do. As of now the "weight" of the item I have to put a negative number for the row calculations to work and that is not right but the only way I know how.
thank you all very much for any help
test.xlsx
ABCDEFGHI
88/26/2021Data Transferred From Previous Chart C10,282.0231.472,380,020.41
98/26/2021Life Raft & VestsI99.8120.2011,995.9610,381.8230.402,392,016.37
108/31/2021Life Raft & VestsR-99.8120.20-11,995.9610,282.0231.472,380,020.41
119/12/2021Martin Baker Seat Right 6I15.0231.913,478.6510,297.0231.482,383,499.06
129/12/2021Martin Baker Seat Right 7I15.0242.003,630.0010,312.0231.492,387,129.06
139/12/2021Martin Baker Seat Right 8I15.0252.093,781.3510,327.0231.522,390,910.41
149/12/2021Martin Baker Seat Right 9I15.0262.183,932.7010,342.0231.562,394,843.11
159/12/2021Martin Baker Seat Right 10I15.0272.274,084.0510,357.0231.622,398,927.16
169/12/2021Martin Baker Seat Right 11I15.0282.364,235.4010,372.0231.702,403,162.56
179/12/2021Martin Baker Seat left 16I15.0246.783,701.7010,387.0231.722,406,864.26
189/12/2021Martin Baker Seat left 17I15.0266.874,003.0510,402.0231.772,410,867.31
199/12/2021Martin Baker Seat left 18I15.0286.964,304.4010,417.0231.852,415,171.71
209/12/2021Martin Baker Seat left 19I15.0307.054,605.7510,432.0231.962,419,777.46
21Martin Baker Seat left 17R-15.0266.87-4,003.0510,417.0231.912,415,774.41
22Martin Baker Seat left 18R-15.0286.96-4,304.4010,402.0231.832,411,470.01
23Martin Baker Seat left 19R-15.0307.05-4,605.7510,387.0231.722,406,864.26
24As you can see I have to make the "weight" a negative nuymber for the rest of the row to calculate and that is not correct, If there is a R in "C" then "F" should be subtracted from the previous entry "I" and opposite if there is an "I" in "C"
25
26
27
New Form C
Cell Formulas
RangeFormula
F9:F23F9=D9*E9
G9:G23G9=IF(D9=""," ",G8+D9)
H9:H23H9=IF(D9="","",I9/G9)
I9:I23I9=IF(D9="","",I8+(D9*E9))
 
I stand corrected, Works as I asked and thank you. My brain was also looking at column "G",. If R is in C then I need D subtracted also previous row G, If I is in C I need D added to Previous row G

thank you all and I am very sorry for not looking more closely at the formula, Been on the road with my plane the last week and kinda in a brain fog with numbers.
Thank you
 
Upvote 0

Excel Facts

Square and cube roots
The =SQRT(25) is a square root. For a cube root, use =125^(1/3). For a fourth root, use =625^(1/4).

Forum statistics

Threads
1,215,731
Messages
6,126,535
Members
449,316
Latest member
sravya

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