Avatar of PDIS
PDIS
 asked on

Excel formula needs to ignore empty cells

I need assistance with the following excel formula in cell f3

If (and b3, c3) b3-c3)
The intent is - Do only if there is a value in both b3 and c3

This formula would be copied down to the full column and then the values in the column would be averaged. I do not want to average values in that came from rows that did not have data in both columns B and C.
Microsoft ExcelMicrosoft ApplicationsSpreadsheets

Avatar of undefined
Last Comment
PDIS

8/22/2022 - Mon
ASKER CERTIFIED SOLUTION
Patrick Matthews

Log in or sign up to see answer
Become an EE member today7-DAY FREE TRIAL
Members can start a 7-Day Free trial then enjoy unlimited access to the platform
Sign up - Free for 7 days
or
Learn why we charge membership fees
We get it - no one likes a content blocker. Take one extra minute and find out why we block content.
Not exactly the question you had in mind?
Sign up for an EE membership and get your own personalized solution. With an EE membership, you can ask unlimited troubleshooting, research, or opinion questions.
ask a question
SOLUTION
Andrej Pirman

Log in or sign up to see answer
Become an EE member today7-DAY FREE TRIAL
Members can start a 7-Day Free trial then enjoy unlimited access to the platform
Sign up - Free for 7 days
or
Learn why we charge membership fees
We get it - no one likes a content blocker. Take one extra minute and find out why we block content.
Not exactly the question you had in mind?
Sign up for an EE membership and get your own personalized solution. With an EE membership, you can ask unlimited troubleshooting, research, or opinion questions.
ask a question
Rory Archibald

alternative to check for two numbers
=IF(COUNT(B3:C3)=2,B3-C3,"")
PDIS

ASKER
Thank you, both worked!
I started with Experts Exchange in 2004 and it's been a mainstay of my professional computing life since. It helped me launch a career as a programmer / Oracle data analyst
William Peck