Formula Question

MHowie

New Member
Joined
Jul 30, 2022
Messages
2
Office Version
  1. 365
Platform
  1. Windows
Hi,

If anyone can help with this one I'd be grateful.

I'm trying to make a formula for this situation -

If cells A1 or B1 are empty then C1 should not display anything at all.

If they aren't empty then C1 = 400-A1+B1

Thanks very much if you can help!

Mark
 

Excel Facts

Save Often
If you start asking yourself if now is a good time to save your Excel workbook, the answer is Yes
Hi & welcome to MrExcel.
How about
Excel Formula:
=IF(OR(A1="",B1=""),"",400-A1+B1)
 
Upvote 0
Welcome to the MrExcel board!

Try
Excel Formula:
=IF(COUNT(A1:B1)=2,400-A1+B1,"")
 
Upvote 0
Glad we could help & thanks for the feedback.
 
Upvote 0

Forum statistics

Threads
1,215,467
Messages
6,124,984
Members
449,201
Latest member
Lunzwe73

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