Spreadsheet formula

sdc83

New Member
Joined
Nov 26, 2020
Messages
14
Office Version
  1. 365
Platform
  1. Windows
Hi everyone struggling to make a formula work and would really appreciate some help. Below is what I need to do.

If cell A3 = “load” I need cell I3 to perform sum (I2+F3)
If cell A3 = “discharge” I need cell I3 to perform sum (I2-H3)
If cell A3 = “Clean” in need cell I3 to show Clean

I’m having trouble making all three work together in the same cell.
 

Excel Facts

Copy formula down without changing references
If you have =SUM(F2:F49) in F50; type Alt+' in F51 to copy =SUM(F2:F49) to F51, leaving the formula in edit mode. Change SUM to COUNT.
Hi everyone struggling to make a formula work and would really appreciate some help. Below is what I need to do.

If cell A3 = “load” I need cell I3 to perform sum (I2+F3)
If cell A3 = “discharge” I need cell I3 to perform sum (I2-H3)
If cell A3 = “Clean” in need cell I3 to show Clean

I’m having trouble making all three work together in the same cell.
Try

Book1
ABCDEFGHI
1
21
3clean21Clean
4
5
Sheet1
Cell Formulas
RangeFormula
I3I3=IF(A3="Load",I2+F3,IF(A3="Discharge",I2-H3,IF(A3="Clean","Clean","")))
 
Upvote 0
Untested

Please try:

Excel Formula:
= IFS(A3="","", A3 = “load” , I2+F3 , A3 = “discharge” , I2-H3 , A3 = “Clean” , "Clean")
 
Upvote 0
How about
Excel Formula:
=IF(A3="Clean",A3,IF(A3="load",I2+F3,IF(A3="discharge",I2-H3,"??")))
 
Upvote 0

Forum statistics

Threads
1,214,641
Messages
6,120,694
Members
448,979
Latest member
DET4492

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