Combining an IF AND with IFNA amybe?

rbolinsky

New Member
Joined
Feb 15, 2021
Messages
12
Office Version
  1. 365
Platform
  1. Windows
So i have a formula that is working well for HVAC maintenance estimates and calculations. Recently I discovered that when an estimator zeroes out the # of operational inspections it leaves the previously-stored calculations that it brought in from another worksheet with the vlookup. As such, it throws numbers off in the final calculation. I think this is where the AND would come into play.

My formula that works under normal situations is: =IFNA(VLOOKUP($B2,Units!$A:$L,MATCH(N$1,Units!$A$1:$L$1,0),FALSE),0)

What I need is is that if an estimator zeroes out the # Operational Inspections in column M then it should remove the stored values brought in from the VLOOKUP in columns N and O and leave everything else as is. In the below Snip Row 4 is a primary example of this. In Row 4, the estimator Zeroed out the recommendation of # Operational Inspections. How would I modify my formula and still maintain the use of the IFNA function. If Excel returns the N/A in any of the fields it ruins the math.

1648729928398.png
 

Excel Facts

Remove leading & trailing spaces
Save as CSV to remove all leading and trailing spaces. It is faster than using TRIM().
How about
Excel Formula:
=IF($M2=0,0,IFNA(VLOOKUP($B2,Units!$A:$L,MATCH(N$1,Units!$A$1:$L$1,0),FALSE),0))
 
Upvote 0
Solution
How about
Excel Formula:
=IF($M2=0,0,IFNA(VLOOKUP($B2,Units!$A:$L,MATCH(N$1,Units!$A$1:$L$1,0),FALSE),0))
Thank you sir. Worked like a champ... my brain isnt working this morning.
 
Upvote 0
You're welcome & thanks for the feedback.
 
Upvote 0
What has this got to do with your original question?
 
Upvote 0

Forum statistics

Threads
1,214,970
Messages
6,122,514
Members
449,088
Latest member
RandomExceller01

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