Use an if formula but ignore "blanks"

jdhfch

Board Regular
Joined
Jan 25, 2018
Messages
69
Office Version
  1. 365
Platform
  1. Windows
Hi,

I am trying to use an if function which I want it to populate a cell if the cell is not blank. The formula sees the cells that are "empty" as having content in, which I dont want.

The source cell formula is in cell N5274 =IFERROR(IF(L5272>0,VLOOKUP(F5272,List!A:A,1,FALSE)),""). This works ok

The formula I am trying to use in cell F5274 is =IF(E5274="Test",IF(N5274>0,1),0) - this doesnt work - it returns a 1 even in the cells that have returned a "" in N5274

Please can anyone help?
 

Excel Facts

Round to nearest half hour?
Use =MROUND(A2,"0:30") to round to nearest half hour. Use =CEILING(A2,"0:30") to round to next half hour.
Just add a condition.

I think you just need to do this:

=IF(N5274="";"";IF(E5274="Test",IF(N5274>0,1),0))

This way, if cell N5274 is empty (" "), it will return a "".

If this is not it, just post a sample of your data, to help solving the problem
 
Upvote 0
Solution
How about
Excel Formula:
=IF(E5274="Test",IF(N5274<>"",1,0),0)
 
Upvote 0
Just add a condition.

I think you just need to do this:

=IF(N5274="";"";IF(E5274="Test",IF(N5274>0,1),0))

This way, if cell N5274 is empty (" "), it will return a "".

If this is not it, just post a sample of your data, to help solving the problem
 
Upvote 0
Glad we could help & thanks for the feedback.
 
Upvote 0

Forum statistics

Threads
1,214,975
Messages
6,122,538
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